<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Modular Novelty Detection System for Driving Scenarios</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Maike Rees</string-name>
          <email>maike.rees@gmx.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Melanie Senn</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pratik P. Brahma</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Astrid Laubenheimer</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Karlsruhe University of Applied Sciences</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Volkswagen Group of America, Inc., Electronics Research Laboratory</institution>
        </aff>
      </contrib-group>
      <fpage>167</fpage>
      <lpage>172</lpage>
      <abstract>
        <p>Unsupervised novelty detection has many applications in various fields of current research. This work proposes a new combination of commonly used novelty detection techniques applied on an automotive dataset. The goal is to differentiate between known and novel driving scenarios. The presented method is unsupervised and combines a convolutional autoencoder, a principal component analysis and a nonlinear one-class support vector machine. The strength of the presented approach is its modularity. Visualization and interpretation of lower dimensional features ensure transparency about what the model learns. A module can be derived from an existing function (e.g. a previous classification task) or specifically be designed for the application domain. Additionally, it can be replaced when the context changes. The approach is also implemented with respect to limited compute capabilities, allowing its application in an autonomous vehicle. The achieved results are satisfying, especially when compared to a similar supervised approach and the visualization complies to the intuitive expectations.</p>
      </abstract>
      <kwd-group>
        <kwd>novelty detection</kwd>
        <kwd>convolutional autoencoder</kwd>
        <kwd>principal component analysis</kwd>
        <kwd>one-class support vector machine</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Many supervised machine learning techniques require large labeled data sets.
Novelty detection can reduce the amount of data that needs expensive
handlabeling by performing a binary classification into normal and novel data.
Normal data belongs to classes that are known by a model and can therefore be
automatically labeled. Novel data belongs to classes that this model has never
seen during its training and therefore needs hand-labeling. This classification is
also valuable for the retraining of a model: It already performs sufficiently well
on normal data and thus only has to be adapted (retrained) to the novel
samples. Both presented applications suggest a one class classification as solution
approach: The model knows the normal data to such an extend that when
presented a novel data sample, the output is significantly different to the output of
normal inputs. This significant deviation can be measured as novelty score and a
threshold determines the classification. For novelty detection, a high true positive
2
rate (every novelty is detected) and a low false positive rate (not many normal
samples are missclassified) are desired. Working with novelties poses multiple
challenges. We assume that novelties are rare, resulting in heavily unbalanced
data sets. Additionally, due to the curse of dimensionality, every data sample can
be characterized as novel when enough dimensions are used for the detection.
This also means that if an algorithm is trained on various kinds of novelties, most
likely there will be another kind of novelty that the algorithm misclassifies. The
following section gives an overview of related approaches. Section 3 describes the
proposed approach in detail. Section 4 presents the experiments and Section 5
their results and discussion. Section 6 concludes.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Novelty detection is related to anomaly, outlier and corner case detection and
subject to research in various fields of studies like medicine [
        <xref ref-type="bibr" rid="ref10 ref8">10, 8</xref>
        ], robot systems
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and image recognition [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The survey by Pimental [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] groups novelty
detection approaches into probabilistic, distance based, reconstruction based and
domain based approaches. The latter find a boundary around the known domain
data and detect every sample outside this boundary as novelty. One-class
support vector machines (1CSVMs), introduced by Schoelkopf et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] for novelty
detection, are an example of such an approach.
      </p>
      <p>
        Marsland [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] presents different novelty detection approaches in learning
systems, like neural networks. Generative adversarial networks (GANs) are a new
type of neural networks that also find application for novelty detection [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. GANs
consist of a generator and a discriminator part that compete in the training
process to improve the final result. Seeboeck et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] combine three autoencoders
with a linear 1CSVM for outlier detection to a modular novelty detection
approach. Erfani et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] combine a linear 1CSVM with a deep belief network.
Utkin et al. [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] combine autoencoders and a siamese network to a siamese
autoencoder for anomaly detection in multi robot systems. Nguyen and Vien [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]
use an end-to-end approach including a convolutional autoencoder (ConvAE)
and Fourier features where the training of each part is directly dependent of the
other modules.
      </p>
      <p>
        In safety critical applications like autonomous driving, it is important to know
what a learning system actually learns. Saliency maps [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] are an often used
technique to get an understanding of the intermediate steps in neural networks.
They show which neurons in each layer are activated for a given input.
      </p>
      <p>
        The approach presented in this work focuses on the advantages of a
modular approach to include visualizations of intermediate results: A ConvAE
extracts features from the input data, a principal component analysis (PCA) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
reduces the dimension of resulting features which are then visualized. A
nonlinear 1CSVM detects the novelties based on these low-dimensional features.
Due to the similarity of the input data, both in content and image sizes, the
ConvAE used for feature extraction in this approach is inspired by Hasan et al.
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], who use the ConvAE to learn temporal regularities in videos.
      </p>
    </sec>
    <sec id="sec-3">
      <title>System Overview</title>
      <p>
        Three modules constitute the proposed novelty detection system: a ConvAE, a
PCA and a 1CSVM, see Fig. 1. A ConvAE is a kind of neural network that
consists of an encoding and a decoding part. The encoder extracts condensed
high-level features from the input image. The decoder then reconstructs the
image based on these features. The ConvAE is trained unsupervised, minimizing
the reconstruction error (difference) between input and reconstructed image, the
exact architecture is depicted in Fig. 2. Deep neural networks like ConvAEs tend
to disentangle manifolds. Thus, the resulting feature space becomes more linear
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The PCA is a linear transformation that finds the directions with the highest
variance in the data, the so-called principal components (PCs). The PCA is
applied to reduce the dimensions of the features: They can be visualized more
easily and the following 1CSVM is more efficient on lower input dimensions.
A 1CSVM finds a hyperplane, defined by support vectors, that surrounds its
training data [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]: data that is not similar to the training data lays outside of
this hyperplane and is classified as novel. The features that characterize the
novelties are expected to be highly non-linear, therefore a non-linear 1CSVM
with a radial basis function (rbf) kernel is implemented. The computation of the
1CSVM requires the parameters ν and γ: ν is the lower bound on the fraction
of support vectors, meaning that at least the ratio of ν samples of the training
data are used as the support vectors. ν is also the upper bound on the fraction of
outliers in the training data, meaning that a maximum of the ratio of ν samples
of the training data lie outside the 1CSVM. γ is the kernel parameter of the rbf
4
kernel, which uses a gaussian distribution to compute the similarity between two
samples. γ can be interpreted as the inverse of the standard deviation. A high
γ means that the samples need to be close together to be treated as similar,
whereas a low γ means that they can be far away and still be treated as similar.
If not otherwise specified, writing 1CSVM refers to the non-linear 1CSVM.
      </p>
      <p>The major computation of all three modules takes place during training.
The inference is very efficient since the input image is solely parsed through the
network and the resulted features are inserted in the computed equations.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>The RGB images in the dataset have a size of 640x400 pixels. The images were
taken by a front camera in a car and labeled according to five classes: urban
street and highway images are normal classes. Connector (ramp on and off the
highway), parking (open parking lot) and (urban) construction zones are
novelties. The training dataset consists of 2028 urban and 2029 highway images. The
test dataset consists of 688 urban, 512 highway, 204 parking, 43 construction and
736 connector images, see examples in Fig.3. The loss function of the ConvAE
is the mean squared error. As the first layers of the ConvAE contain the simple
features such as edges and the high-level features are desired to detect
novelties, the bottleneck layer (3rd convolution layer) is the input to the PCA. The
1CSVM is computed on the PCs of the train images. 1CSVMs with different
input dimensions and γ values are compared. Experiments showed, that varying
the ν value has no noteworthy impact on the results.</p>
    </sec>
    <sec id="sec-5">
      <title>Results and Discussion</title>
      <p>Fig. 4 shows the first two PCs of the extracted features of each test sample. The
normal classes are not separable in this plot. This is expected, due to the way
the ConvAE is trained: it is not discriminative and not using any information
about the underlying class structure of the dataset. Highway and urban roads
both have features in common that are significant for reconstruction. Fig. 4 also
shows that parking and construction samples are not clearly separable from the
normal data, but separable from each other. The PCA is only suitable for
novelty detection, when the variation in the features that characterize the novelties</p>
      <p>
        Modular Novelty Detection System for Driving Scenarios
5
Fig. 5. ROC curves of the 1CSVM with
Fig. 4. The first two PCs of test images. varying γs and ν = 0.05.
is not lost by computing the PCA. Shuy et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] propose an approach using
the first and the last PCs for novelty detection. Fig. 5 shows the Receiver
Operator Characteristics (ROC) curves of the results of 1CSVMs. The 1CSVMs
using seven input dimensions are better in detecting both types of novelties.
The PCs are sorted in descending order of their variance on the training data.
The results show, that adding the next PC to the input of the 1CSVM improves
the final result. But the size of the improvement decreases per additional PC.
Using more dimensions results in higher computing time, both at training and
at inference. This poses a trade-off between the best results and a feasible time
complexity. To achieve a good true positive rate the γ value has to be higher for
construction than for parking. This means that the construction novelties are
harder to separate from the normal data, compared to the parking data. This
is in agreement with the results from the PCA, plotted in Fig. 4. Table 1 shows
the exact detection results. It also shows the results using a supervised
convolutional neural network (CNN) instead of the unsupervised ConvAE for feature
extraction. The CNN was trained on the classification into urban and highway.
It performs slightly better, but also needs labeled training data.
      </p>
      <p>ConvAE + 1CSVM (unsup.)
tp (%) fp (%) γ
parking 98,5 15,8 15</p>
      <p>100 24,7 35
construction 41,9 15,8 15
97,7 24,7 35
The features of the input images are reduced by a factor of six in the ConvAE
and by a factor of 18285 with the PCA: The higher dimension reduction takes</p>
      <p>M. Rees et al.
place using a linear transformation instead of exploiting the non-linear power of
the ConvAE.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>The proposed novelty detection approach combines three modules: a
convolutional autoencoder for feature extraction, a principal component analysis for
dimension reduction and visualization and a non-linear one-class support vector
machine for novelty detection. The results of the experiments comply with the
intuitive expectations, achieve the goal of reducing the amount of data that needs
hand-labeling and are close to a similar supervised approach. More complicated
novelties are harder to detect, which can be seen in the increased false positive
rate. Future work includes extensive hyperparameter tuning for the ConvAE,
reducing the features in its bottleneck layer to observe the reciprocity between
non-linear feature extraction and linear dimension reduction, automatically
determining the ideal γ and ν parameters of the 1CSVM as well as model ensembles
combining supervised and unsupervised approaches.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Brahma</surname>
            ,
            <given-names>P.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>She</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Why deep learning works: A manifold disentanglement perspective</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Erfani</surname>
            ,
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rajasegarar</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karunasekera</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leckie</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>High-dimensional and large-scale anomaly detection using a linear one-class SVM with deep learning</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Hasan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Choi</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Neumann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Roy-Chowdhury</surname>
            ,
            <given-names>A.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Davis</surname>
            ,
            <given-names>L.S.</given-names>
          </string-name>
          :
          <article-title>Learning temporal regularity in video sequences</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Jolliffe</surname>
          </string-name>
          , I.T.:
          <article-title>Principal Component Analysis</article-title>
          . Springer New York (
          <year>1986</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Marsland</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Novelty Detection in Learning Systems</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Nguyen</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vien</surname>
            ,
            <given-names>N.A.</given-names>
          </string-name>
          :
          <article-title>Scalable and interpretable one-class svms with deep learning and random fourier features</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Pimentel</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Clifton</surname>
            ,
            <given-names>D.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Clifton</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tarassenko</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>A review of novelty detection</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Schlegl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Seebck</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Waldstein</surname>
            ,
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidt-Erfurth</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Langs</surname>
          </string-name>
          , G.:
          <article-title>Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Scho¨lkopf,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Williamson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Smola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Shawe-Taylor</surname>
          </string-name>
          , J.,
          <string-name>
            <surname>Platt</surname>
          </string-name>
          , J.:
          <article-title>Support Vector Method for Novelty Detection</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Seebck</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Waldstein</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klimscha</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gerendas</surname>
            ,
            <given-names>B.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Donner</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schlegl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidt-Erfurth</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Langs</surname>
          </string-name>
          , G.:
          <article-title>Identifying and Categorizing Anomalies in Retinal Imaging Data</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Shyu</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>S.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sarinnapakorn</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>A Novel Anomaly Detection Scheme Based on Principal Component Classifier</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Simonyan</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vedaldi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Deep inside convolutional networks: Visualising image classification models and saliency maps</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Utkin</surname>
            ,
            <given-names>L.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaborovsky</surname>
            ,
            <given-names>V.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lukashin</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popov</surname>
            ,
            <given-names>S.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Podolskaja</surname>
            ,
            <given-names>A.V.</given-names>
          </string-name>
          :
          <string-name>
            <given-names>A Siamese</given-names>
            <surname>Autoencoder</surname>
          </string-name>
          <article-title>Preserving Distances for Anomaly Detection in Multi-robot Systems</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>