Traditional place categorization approaches in robot vision assume that training and test images have similar visual appearance. Therefore, any seasonal, illumination and environmental changes typically lead to severe degradation in performance. To cope with this problem, recent works have proposed to adopt domain adaptation techniques. While effective, these methods assume that some prior information about the scenario where the robot will operate is available at training time. Unfortunately, in many cases this assumption does not hold, as we often do not know where a robot will be deployed. To overcome this issue, in this paper we present an approach which aims at learning classification models able to generalize to unseen scenarios. Specifically, we propose a novel deep learning framework for domain generalization. Our method develops from the intuition that, given a set of different classification models associated to known domains (e.g. corresponding to multiple environments, robots), the best model for a new sample in the novel domain can be computed directly at test time by optimally combining the known models. To implement our idea, we exploit recent advances in deep domain adaptation and design a Convolutional Neural Network architecture with novel layers performing a weighted version of Batch Normalization. Our experiments, conducted on three common datasets for robot place categorization, confirm the validity of our contribution.
Disclaimer: This work has been accepted for publication in the IEEE Robotics and Automation Letters: doi: 10.1109/LRA.2018.2809700 link: https://ieeexplore.ieee.org/document/8302933/ Copyright: © 2018 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/ republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
In recent years we have witnessed great advancements in computer and robot vision thanks to deep learning models. In particular, convolutional neural networks (CNN) have reached outstanding performances in many different tasks such as object classification , depth estimation  and affordance prediction . Despite their effectiveness, CNNs have some drawbacks. First, they are data-hungry, i.e. very large labeled dataset are usually required for training. This is a major issue in robotics, where data acquisition and annotation is especially time consuming and often infeasible. Second, most CNN models are derived assuming that training and test data belong to the same distribution. This is a clear limitation for robots operating in the real world. In fact, robots should be able to function in completely different places, under many diverse environmental conditions: therefore, they cannot simply employ pre-trained models unable to generalize to arbitrary settings.
This work focuses on the problem of semantic place categorization from visual data, where these issues are especially relevant . Correctly identifying the semantic category of a place is important for robot localization, mapping and exploration [5, 6]. Unfortunately, environmental changes (e.g. due to the presence of people or obstacles and to changing lighting conditions) make this task extremely challenging.
Traditional place categorization approaches [7, 8, 9, 10] require labeled datasets of training images. While the resulting models are very accurate when test samples are similar to training data, their performance significantly degrade when the robot collects images with very different visual appearance . To address this issue, recent works have exploited domain adaptation (DA) techniques [12, 13, 14]. These methods develop models which are meant to be effective in the scenario where the robot will operate, i.e. the target domain. However, since few target data are often available, DA attempts to transfer useful knowledge from a larger set of source data (e.g. previously collected by other robots or derived from publicly-available datasets).
While domain adaptation algorithms provide effective solutions, they require some prior knowledge of the target domain at training time, e.g. to have access to target data. Unfortunately, this information may not always be available. Consider for instance an household robot: since the number of possible customers is huge, it is inconceivable to collect data for each possible house and application scenario. In this paper, we argue that a more relevant problem in the context of semantic place categorization is domain generalization (DG). Opposite to DA, where target data are exploited to produce a classifier accurate under specific working conditions, the idea behind DG is to learn a domain agnostic model applicable to any unseen target domain. In other words, in this paper we are interested in learning a place categorization model which is as general as possible and employable by different robots and in various environmental conditions.
While many strategies are possible for addressing domain generalization [15, 16], in this paper we propose a novel deep learning framework. Our approach develops from the idea that, given data from multiple source domains and the associated models, the best model for the target domain can be generated on-the-fly when a novel sample arrives by optimally combining the precomputed models from source domains (see Fig.1). To implement this idea we design a novel CNN architecture which relies on two main components. First, inspired by recent works on domain adaptation [17, 18], we construct multiple source models by embedding into a common CNN few domain-specific Batch Normalization layers. In this way, different classifiers can be built keeping the number of parameters limited. Second, we design a lateral network branch which computes the likelihood that a certain instance belongs to a given domain. When applied to a novel target sample, this branch calculates its probabilities to be part of the different source domains. These values are used to construct the target classifier performing a combination of known source models. To this aim, the novel Weighted Batch Normalization (WBN) layers are introduced. We demonstrate the effectiveness of the proposed DG approach with extensive experiments on three datasets, namely the COsy Localization Database (COLD) , the Visual Place Categorization (VPC) dataset  and the Specific PlacEs Dataset (SPED) . Moreover, we show how the proposed framework can be employed where no prior information about source domains is available at training time: given a training set, our model can be used to automatically cluster training data and learning multiple models, discovering latent domains and associated classifiers.
To summarize, the main contribution of this paper is twofold. Firstly, we introduce the problem of domain generalization for semantic place recognition and we present the first deep learning framework for addressing it. Secondly, we show how explicitly embedding domain information into learning is beneficial and permits to significantly increase classification accuracy over domain-agnostic approaches.
Ii Related Work
Devising models which are robust to domain shift is of fundamental importance for developing robotic systems working in the wild. Therefore, several recent works have focused on learning models which are as much as possible invariant to seasonal [21, 22], illumination [23, 24, 25, 26] and environmental [27, 28] changes. While several tasks such as place recognition , SLAM , semantic segmentation  benefit from these type of models, in this paper we specifically consider the problem of semantic place categorization from visual data.
Standard approaches addressing this task extract global features, either hand-crafted [7, 29, 8] or CNN-based , from the input images and subsequently train a classifier to discriminate among a given set of categories. Other methods consider extracting local features, either through a fully-convolutional neural network  or regions of interest pooling . Differently, some approaches attempt to classify places analyzing the occurrences of specific objects and derive object-level information either adopting CNNs  or object templates . However, none of these methods is effective when tested in cross-domain conditions (see for instance experimental results in [10, 8, 32]).
To address the problem of robustness to varying environmental conditions, some works considered domain adaptation and transfer learning techniques. For instance,  proposes an approach based on adaptive support vector machine. In  a supervised transfer learning approach based on Least Square SVM is described. In  an unsupervised technique selects the source data useful for place recognition in the target domain. Similarly,  introduces a transfer learning approach based on sparse coding. Despite their effectiveness, all these methods assume the availability of some information for the target domain. This is a clear limitation, as in many cases a robot operates in completely unknown scenarios. Therefore, our work specifically tackles the problem of domain generalization. To our knowledge, no previous works have proposed a DG method for robot place categorization.
Domain generalization  has been recently studied in the literature, e.g. in the context of visual object recognition and action classification [34, 16]. However, most previous works adopt hand-crafted features and, to our knowledge, this is the first method proposing an end-to-end deep learning architecture for DG in robot-vision.
Iii Domain Generalization with Weighted Batch Normalization
In this section we present our novel approach for domain generalization. We first focus on the closely-related problem of domain adaptation, briefly describing a recent deep learning model  for coping with domain shift by adopting a revised version of Batch Normalization (BN) . We then show how a similar strategy can be employed to address the more challenging problem of domain generalization, introducing the proposed Weighted Batch Normalization layers.
Iii-a Domain Adaptation through Batch Normalization
Several previous works have considered the problem of domain adaptation in the context of semantic place categorization [33, 13]. Indeed, modern robotic platforms require classification models which are robust to variations in the environmental conditions. Unfortunately, even state-of-the-art methods based on powerful CNNs [10, 9] tend to loose effectiveness when changes in illumination conditions, sensors or environments occur. Therefore, recent works have focused on developing domain adaptation methods for deep architectures . The unsupervised DA problem is especially relevant in robotics, as annotating data is often practically infeasible when a robotic platform is deployed in a novel scenario. Formally, this problem can be stated as follows. Given a set of labeled images from a source domain (a.k.a. the source set), where denote the images collected by a robot or obtained from publicly-available datasets and are the labels indicating the rooms types (e.g. corridor, office, …), and an unlabeled set of images from a target domain (a.k.a. target set) corresponding to visual data collected by a robot in the novel scenario, we are interested in learning a classification model from and which accurately classify the target data.
Recent works [18, 17, 37] have shown that an effective strategy for unsupervised DA consists in embedding into CNN architectures specific Domain Alignment Batch Normalization (DA-BN) layers. DA-BN layers are derived from the common BN technique  adopted for avoiding internal covariate shift within deep neural networks.
The principle of BN is simple: the input distribution of a layer is kept constant by imposing a normalization of the input features. Denoting by the input of BN for a given feature channel and spatial location, BN operates by replacing with:
where is a scale factor and is a bias term. The components and are respectively the mean and the variance computed over the training set , w.r.t. the chosen layer and feature. At training time, the statistics are approximated through the samples of the current batch, while at test time the global estimation is used. Figure (a)a illustrates a common CNN with BN layers inserted after each fully-connected.
The main idea behind the design of DA-BN layers is to perform the normalization using domain-dependent statistics. In this way, the alignment between different domains is realized by forcing source and target feature distributions to match the same reference distribution, a standard Gaussian in this case. Formally, samples from the source and the target domains are normalized according to their associated statistics , , i.e.:
A key aspects of the methods in [17, 37] is to implement two different predictors for source and target data without requiring additional domain-specific parameters. In other words, DA-layers are embedded in a standard architecture, e.g. AlexNet, and the same network parameters are shared by the source and the target predictors. During training, is computed minimizing a classification loss (see Fig. (b)b). It is worth noting that, analogously to BN, DA-BN layers can be embedded into many different types of architectures.
Iii-B Domain Generalization with Weighted BN
As stated in Section I, one issue with DA methods is that they require the presence of a target set in the training phase. This implies that data collected by a robot in the scenario of interest should be available for learning the classification model. However, a more realistic situation is when a robot is employed in a completely unseen environment. As an example, consider a service robot: it is unfeasible to collect data for all possible working environments. Therefore, in this work we focus on domain generalization.
Iii-B1 Weighted Batch Normalization for DG
Formally, the DG problem can be stated as follows. Suppose we have a set corresponding to the union of data from source domains. The source sets correspond, e.g., to data acquired by multiple robots in different environments. We can write , where is an image, its corresponding label and is the domain to which the image belongs. No data are available for the target domain. DG aims at learning a model from which performs well on previously unseen target data.
Given the data from the source domains a set of domain-specific classifiers can be obtained by extending (2) to a multi-domain formulation:
where the statistics are specific for the domain and is an indicator function that gives value 1 if and 0 otherwise.
While knowledge about domains is available at training time for source data, we do not know a priori the domain of a target sample at test phase. To solve this problem, we propose to replace the hard assignment of (3) with a soft assignment. Given a set of weights , we perform feature normalization with Weighted Batch Normalization layers:
where and . The intuition behind this choice is deriving a classification model for the target domain as a combination of models from the source domains.
In order to compute the weights , we propose to employ a separate network branch which originates from the first few convolutional layers of the main network (see Fig. (c)c). This choice is motivated by the fact that end-to-end training is allowed and the number of parameters is kept limited. The specific architecture of the branch may be variable (see Sect. III-B3), with the only restriction that its final output must be a probability vector of dimension , corresponding to the number of known domains.
Analogously to what stated for DA-BN layers, the different source classifiers can be implemented by embedding WBN layers into a common CNN architecture. Let us denote by the parameters shared across the main network and the lateral branch. The network branch that produces the domain assignment weights has parameters denoted by , while the parameters are shared across the domains but contribute only to the final classification and not to the assignment. During training we minimize the following loss:
The loss is the sum of two terms, one considering place label information for accurate recognition, the other enforcing the lateral branch to successfully compute the correct domain.
Iii-B2 Discovering latent source domains
A drawback of the proposed DG approach is the need of multiple predefined source domains during training. In practice this information may not always be available and we may have access to a single training set. However, even images from the same training set can have different visual appearance, e.g. corresponding to multiple illumination conditions. In this case, it is reasonable to attempt to automatically discover the latent domains inside the training set and use this information in the proposed DG framework.
Formally, in this scenario we have still a source dataset . However, the domain information is missing, i.e. the source images do not have a domain label associated. Interestingly, our framework can be easily extended to this setting by entirely relying on the proposed soft assignment strategy. Our intuition is that, since similar input images will tend to produce similar outputs in the lateral network branch, implicitly visual data will be automatically clustered, enabling a latent domain discovery process.
In this case, no domain loss is considered during training. Assuming the existence of latent domains, the statistics for the -th domain can be computed by means of the weighting parameters . In particular, at training time it is possible to approximately estimate the statistics by:
with and is the number of samples in the current batch. As for standard BN, these values update the global estimate of the statistics employed at test time. Since the definition of domain can be subtle and the number of domains unknown, we believe that this formulation provides a more generic framework for addressing DG.
Iii-B3 Implementation details
To implement the proposed DG framework, similarly to DA-BN, we replace each BN with a number of WBN layers equal to the domains available for training. For computing the assignment weights the lateral branch takes as input the last frozen layer, applying a ReLU non linearity followed by a fully-connected layer and a softmax activation. In case the input is taken from a convolutional layer, a global pooling is applied before the lateral branch. In the large scale experiments on SPED, the lateral branch takes as input the first convolutional layer but two convolutional layers are added before the global pooling. These layers have the same parameters of conv2 and conv3 of the main network. From the assignment, we perform a weighted normalization of the input, summing the results obtained from all the domains. The scale and the bias parameters are shared across the domains. For the loss functions and we choose a log-loss, with the input normalized through the softmax operator.
Iv Experimental Results
In this section we demonstrate the effectiveness of our domain generalization approach for semantic place categorization. We first perform a preliminary experiment to show that, when samples from the target domain are available (i.e. we consider a domain adaptation setting), the adoption of domain-specific batch normalization layers into a CNN as in [37, 17] is beneficial and guarantees a significant improvement in terms of recognition accuracy (Subsection IV-B1). In Subsection IV-B2 we test the proposed approach in the more challenging task of domain generalization and compare it with state-of-the-art methods, while in Subsection IV-B3 we provide further results in a large scale outdoor scenario.
Iv-a Experimental settings
The COLD Database contains three datasets of indoor scenes acquired in different laboratories and from different robots. The COLD-Freiburg (Fr) has 26 image sequences collected in the Autonomous Intelligent Systems Laboratory at the University of Freiburg, with a camera mounted on an ActivMedia Pioneer-3 robot. COLD-Ljubljana (Lj) contains 18 sequences acquired from an iRobot ATRV-Mini platform at the Visual Cognitive Systems Laboratory of University of Ljubljana. In the COLD-Saarbrücken (Sa) an ActivMedia PeopleBot has been employed to gather 29 sequences inside the Language Technology Laboratory at the German Research Center for Artificial Intelligence in Saarbrücken.
The VPC dataset contains images acquired from several rooms of 6 different houses with multiple floors. The images are acquired by means of a camcorder placed on a rolling tripod, simulating a mobile robotic platform. The dataset contains 11 semantic categories, but only 5 are common to all houses: bedroom, bathroom, kitchen, living room and dining-room. Following previous works [4, 8, 32], we use the common categories in our experiments.
SPED is a large scale dataset introduced in the context of place recognition. It contains images of 2543 outdoor cameras collected from the Archive of Many Outdoor Scenes (AMOS)  during February and August 2014111The full dataset is currently not available, but the authors provided us a subset with about 500 images per camera corresponding to 900 categories..
Iv-A2 Baseline architectures
For COLD and VPC we perform experiments with two common architectures: AlexNet  and ResNet . For AlexNet we use the standard architecture pre-trained on Imagenet . In all the experiments, we fine-tune the last two fully-connected layers, rescaling the input images to 227 227 pixels. For ResNet we consider the 10 layers version of the architecture, again pre-trained on ImageNet. In all the experiments, we rescale the input images to 224x224 pixels, fine-tuning the network starting from the last residual block. Both the networks are trained with a weight decay of 0.0005 and an initial learning rate of 0.001, while the initial learning-rate of the final classifier is set to 0.01. The learning rate is dropped of a 0.1 factor after of the iterations. For the experiments on COLD, we use a batch-size of 256 for AlexNet and 64 for ResNet, training the networks for 1000 iterations. For VPC, we set the batch size to 128 and 64 for AlexNet and ResNet respectively, training the networks for 2000 iterations. The training parameters are the same for our method and the baselines and fine-tuning is performed for all the models.
The proposed approach can be applied to common CNNs by simply replacing standard BN layers with our WBN layers. While for ResNet BN layers are already employed, this is not true for AlexNet. For these experiments we employ a variant of AlexNet where BN layers are inserted after each fully-connected layer.
For SPED we use AlexNet and the AMOSNet architecture, following . AMOSNet is very similar to AlexNet, with the first fully-connected layer replaced by a convolutional layer and a pooling operation. We follow the same protocol of , using the same hyper-parameters for training. We train both networks from scratch, applying BN or WBN layers after each layer with parameters, except the classifier.
The evaluation is performed using a NVIDIA GeForce 1070 GTX GPU, implementing all the models with the popular Caffe  framework. For the baseline AlexNet architecture we take the pre-trained model available in Caffe, while for ResNet we consider the model from . The code implementing the proposed method is publicly available222https://github.com/mancinimassimiliano/caffe.
Iv-B1 Domain Adaptation
We first perform some preliminary experiments to demonstrate that applying domain-specific batch normalization layers as proposed in  is beneficial for transferring domain knowledge in the context of robot place categorization. Note that in this case, data from the target domain are available, either labeled or unlabeled. As our goal is to demonstrate the importance of source and target specific BN layers in our application scenario, we do not consider the entropy loss used in  in our experiments.
Following previous works on domain adaptation , we consider pair of sequences extracted from the COLD dataset. Similarly to , we take pairs where either different robots or lighting conditions are present333The pair containing sequence A2 of Saarbrücken sunny has been excluded from our analysis as data are not available anymore.. Specifically, we consider four pairs of videos: Freiburg Cloudy (Fr.C)-Saarbrücken Cloudy (Sa.C), Freiburg Cloudy-Saarbrücken Night (Sa.N), Ljubljana Sunny (Lj.S)-Freiburg Cloudy and Ljubljana Sunny-Saarbrücken Night. As in , for Freiburg Cloudy and Ljubljana Sunny we use the standard sequence A1, for Saarbrücken Cloudy the standard sequence A2 and for Saarbrücken Night the extended sequence A1. With respect to , we focus on a slightly different scenario, where the two domains share common categories. In particular, we take the four common classes/rooms among all the different sequences: printer area, corridor, bathroom and office (obtained by merging 1-person and 2-persons office).
We perform experiments in multiple settings, i.e. considering labeled data from all the four categories and progressively discarding labels for the frames associated to certain categories. In practice, unlabeled images are still fed to the network (and contribute to the computation of BN statistics), but they do not have any loss term associated. For each pair of sequences, we take 5 random splits, where of the data of each sequence are used for training and the other are used for testing. Inside the splits, all possible configurations are considered (i.e. if for a sequence we test the configuration where 1 class lacks of labeled data, all the possible choices of that class are tested). Since the datasets are unbalanced, we report the results as average accuracy per class on the target domain, averaging the results across all the possible configurations and splits.
Figure 3 compares the results obtained using domain-specific BN layers (DA-BN), with those we get adopting the traditional AlexNet model (Base) and its batch-normalized version (BN). The figure clearly shows the advantages of exploiting domain priors when data for the target domain are available. This advantage is remarkable when the number of labeled classes for the target domain decreases. We ascribe this behavior to the fact that, by considering domain-specific statistics in BN, we are effectively normalizing the features of each domain, without recurring to a unified estimate and, implicitly, to an approximate normalization. Indeed, the normalization obtained with DA-BN produces an automatic feature alignment which helps the classifier to learn domain-independent prediction functions, increasing the generalization capabilities of the model. Notice that the increase in accuracy is less pronounced when only 1 labeled class is used in the target set. A possible reason is that in this case the unbalanced number of samples per class negatively affect the performance.
Iv-B2 Domain generalization
While in the previous experiments we exploit data from the target domain during learning, in this section we assume that the robot will be employed in an unseen environment, i.e. we focus on the more challenging scenario of domain generalization. Our experiments aim to demonstrate the effectiveness of our approach in learning effective classification models in case of varying environmental conditions (e.g. illuminations, laboratories). In particular, we test two different variants of the proposed approach. In the first case (WBN) we consider the presence of domain priors at training time, as in Section III-B1. In the second variant, WBN, we do not assume to have knowledge about domains at training time, thus our model just relies on the soft-assignment (Section III-B2).
We first perform experiments on the COLD database. For each laboratory and illumination condition we consider the standard sequences 1 of part A, except for Saarbrücken Cloudy, for which we take sequence 2 due to known acquisition issues444http://www.cas.kth.se/COLD/bugs.php and Saarbrücken Sunny, for which we take part B since sunny sequences for part A are not available. As in the previous section, we consider the same 4 classes shared between the sequences, reporting the average accuracy per class. In these experiments we consider both AlexNet and ResNet comparing our approach with baseline models obtained adding traditional BN layers to the same architectures.
Firstly, we consider different lighting conditions, i.e. we assume that the domain shift is due to changes of illuminations. To this extent we train the network on sequences of the same laboratory, training on two lighting conditions (e.g. sunny and cloudy) and testing on the third (e.g. night). The results are reported in Table I.
As expected, when knowledge about domains is available (WBN), improved classification accuracy can be obtained, in general, with respect to a domain agnostic classifier. Interestingly, for both networks the result of our approach without domain priors is either comparable or surpasses the baseline in almost all settings. This suggests that the network is able to latently discover clusters of samples and effectively using this information for learning robust classification models.
Secondly, we perform a similar analysis to Table I but considering changes of robotic platform/environment. We keep constant the lighting condition, training on two laboratories and testing on the third. Table II shows the obtained results. Again, in most cases exploiting domain priors brings benefits in term of performances, for both networks. The results of Tables I and II show that the benefits of our WBN layer, with and without domain loss, are not limited to a particular type of domain shift (i.e. changes in robots, environment or illumination condition), demonstrating that our approach provides a general and effective strategy to address domain variations. In both experiments, there are few cases in which standard BN achieves comparable or slightly superior results w.r.t. WBN. A possible reason is that in some situations the ability of our model to generalize to novel settings may be hindered by the small number or by the specific characteristics of the available source domains.
In order to verify the ability of WBN to discover latent domains, Fig. 4 shows the distribution of the values computed for the images of the original source domains associated to one of the experiments in Table II. The plots associated to other experiments are similar and we do not report them due to lack of space. Since we consider two latent domains in these experiments and , we report only the values computed for . Different colors represent the original source domains. As the figure shows, the lateral branch computes different assignments for the samples of the different original source domains. As a result, the latent source domains extracted by WBN tend to correspond to the original source domains used by WBN.
In another series of experiments we consider the scenario where both illumination and laboratory change. We performed 27 different experiments, corresponding to the case where Saarbrücken is considered as target domain. Figure 5 report the histogram of the gains in accuracy of our approach AlexNet+WBN* w.r.t. AlexNet+BN. As shown in Fig. 5, in most of the cases our model leads to an increase in accuracy between 1-5%. In only 5 out of 27 experiments, our model does not produce benefits.
In order to compare our model with the state-of-the art approaches, we consider the VPC dataset. VPC has been used in previous works to test the DG abilities of different methods. Following the standard experimental protocol of , we evaluate our model using 5 houses for training and 1 for test, averaging the results between the 6 configurations. For each house we report the average accuracy per class. Table III compares the result of our models with baseline deep architectures, with and without traditional BN layers. We consider both the case where domain information is available (WBN) and where it is not (WBN). Analogously to what observed in the experiments on COLD dataset, the accuracy increases when WBN is adopted, both in case of AlexNet and ResNet architectures. Interestingly, having domain priors during training produce a boost of performances for ResNet, while for AlexNet this is not the case. This suggests that different features have a different impact on our model. Features of the very last layers, as in AlexNet, may not be enough domain discriminative, especially in case of limited shift within the source domains. In those cases, a soft-assignment can provide a more effective strategy for clustering samples.
|AlexNet + BN||54.5||54.6||55.6||69.7||41.8||45.9||53.7|
|AlexNet + WBN||54.7||51.9||61.8||70.6||43.9||46.5||54.9|
|AlexNet + WBN||53.5||54.6||55.7||68.1||44.3||49.9||54.3|
|ResNet + WBN||55.7||49.5||64.7||70.2||42.1||52.0||55.7|
|ResNet + WBN||56.8||50.9||64.1||69.3||45.1||51.6||56.5|
Finally, Table IV compares the results obtained with our approach with those of state-of-the-art methods. Specifically we consider the method in , where SIFT  and CENTRIST (CE) features  are provided as input to a nearest neighbor classifier, and the approach in , where the same classifier is employed but using Histogram of Oriented Uniform Patterns (HOUP) as input. For sake of completeness, we also report the results obtained by exploiting also the temporal information between images. For this setting, we report the performances of the CENTRIST-based approach of  coupled with Bayesian Filtering (BF) and the results of  which used again a Bayesian Filter together with object templates. As shown in the Table, applying deep-learning techniques already guarantees an increase in performances of about with respect to the state-of-the-art. Introducing WBN inside the network, allows a further accuracy gain.
Iv-B3 Large scale experiments
In this section we show the results obtained when our method is applied to a large scale dataset of outdoor scenes, i.e. the SPED dataset. In order to employ SPED as a DG benchmark, we split the dataset in two sets, February and August, considering the months of data acquisition. Since no other automatic training data splits are possible using timestamps, in these experiments we do not use domain supervision and only consider WBN with two latent domains. The choice of having two domains is motivated by the fact that the dataset contains images collected at different times of the day and thus we assume that the latent domains automatically discovered by our method correspond to ”night” and ”day”.
Results are shown in Table V. WBN provides a clear gain in all considered settings and for all considered architectures. The improvement of 4% obtained in the case ”August-to-February” for both networks is remarkable given the very large number of classes and the lack of domain supervision.
V Discussion and Conclusions
We presented a deep learning model for addressing DG in the context of semantic place categorization. Our approach exploits a weighted formulation of BN to learn robust classifiers which can be applied to previously unseen target domains. Our experiments demonstrated that, by adopting our WBN layers, place categorization accuracy can be significantly increased and state-of-the-art performance on the VPC benchmark can be obtained. The effectiveness of our method is also confirmed by experiments on a large scale dataset of outdoor scenes. In future works we plan to further explore our DG framework, analyzing the impact of computing different weighting vectors for different layers and exploiting different structures for the lateral network branch. We believe that the generality of our framework also permits to exploit additional sources of knowledge, such as web images  and synthetic data . For instance, we can think of building a large training set of images through web queries and employ the unsupervised version of our algorithm to infer the latent source domains useful for DG.
-  K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in CVPR, 2016.
-  D. Xu, E. Ricci, W. Ouyang, X. Wang, and N. Sebe, “Multi-scale continuous crfs as sequential deep networks for monocular depth estimation,” CVPR, 2017.
-  L. Porzi, S. R. Buló, A. Penate-Sanchez, E. Ricci, and F. Moreno-Noguer, “Learning depth-aware deep representations for robotic perception,” IEEE RA-L, vol. 2, no. 2, pp. 468–475, 2017.
-  J. Wu, H. I. Christensen, and J. M. Rehg, “Visual place categorization: Problem, dataset, and algorithm,” in IROS, 2009.
-  C. Stachniss, O. M. Mozos, and W. Burgard, “Speeding-up multi-robot exploration by considering semantic place information,” in ICRA, 2006.
-  I. Kostavelis and A. Gasteratos, “Semantic mapping for mobile robotics tasks: A survey,” Robotics and Autonomous Systems, vol. 66, pp. 86–103, 2015.
-  J. Wu and J. M. Rehg, “Centrist: A visual descriptor for scene categorization,” IEEE T-PAMI, vol. 33, no. 8, pp. 1489–1501, 2011.
-  E. Fazl-Ersi and J. K. Tsotsos, “Histogram of oriented uniform patterns for robust place recognition and categorization,” IJRR, vol. 31, no. 4, pp. 468–483, 2012.
-  P. Uršič, A. Leonardis, M. Kristan, et al., “Part-based room categorization for household service robots,” in ICRA, 2016.
-  M. Mancini, S. Rota Bulò, E. Ricci, and B. Caputo, “Learning deep nbnn representations for robust place categorization,” IEEE RA-L, vol. 2, no. 3, pp. 1794–1801, 2017.
-  A. Pronobis, B. Caputo, P. Jensfelt, and H. I. Christensen, “A realistic benchmark for visual indoor place recognition,” Robotics and autonomous systems, vol. 58, no. 1, pp. 81–96, 2010.
-  S. Prasath Elango, T. Tommasi, and B. Caputo, “Transfer learning of visual concepts across robots: A discriminative approach,” Idiap, Tech. Rep., 2012.
-  G. Costante, T. A. Ciarfuglia, P. Valigi, and E. Ricci, “A transfer learning approach for multi-cue semantic place recognition,” in IROS, 2013.
-  Z. Kira, “Transfer of sparse coding representations and object classifiers across heterogeneous robots,” in IROS, 2014.
-  K. Muandet, D. Balduzzi, and B. Schölkopf, “Domain generalization via invariant feature representation,” in ICML, 2013.
-  A. Khosla, T. Zhou, T. Malisiewicz, A. A. Efros, and A. Torralba, “Undoing the damage of dataset bias,” in ECCV, 2012.
-  F. M. Carlucci, L. Porzi, B. Caputo, E. Ricci, and S. R. Bulò, “Just dial: Domain alignment layers for unsupervised domain adaptation,” in ICIAP, 2017.
-  Y. Li, N. Wang, J. Shi, J. Liu, and X. Hou, “Revisiting batch normalization for practical domain adaptation,” 2017.
-  A. Pronobis and B. Caputo, “COLD: COsy Localization Database,” IJRR, vol. 28, no. 5, pp. 588–594, 2009.
-  Z. Chen, A. Jacobson, N. Sunderhauf, B. Upcroft, L. Liu, C. Shen, I. Reid, and M. Milford, “Deep learning features at scale for visual place recognition,” arXiv preprint arXiv:1701.05105, 2017.
-  T. Kanji, “Cross-season place recognition using nbnn scene descriptor,” in IROS, 2015.
-  A. Viswanathan, B. R. Pires, and D. Huber, “Vision-based robot localization across seasons and in remote locations,” in ICRA, 2016.
-  N. Carlevaris-Bianco and R. M. Eustice, “Learning visual feature descriptors for dynamic lighting conditions,” in IROS, 2014.
-  Y. Lu and D. Song, “Robustness to lighting variations: An rgb-d indoor visual odometry using line segments,” in IROS, 2015.
-  J. Mount and M. Milford, “2d visual place recognition for domestic service robots at night,” in ICRA, 2016.
-  B. Upcroft, C. McManus, W. Churchill, W. Maddern, and P. Newman, “Lighting invariant urban street classification,” in ICRA, 2014.
-  M. J. Milford and G. F. Wyeth, “Seqslam: Visual route-based navigation for sunny summer days and stormy winter nights,” in ICRA, 2012.
-  T. Tsukamoto and K. Tanaka, “Self-localization using visual experience across domains,” arXiv preprint arXiv:1509.07618, 2015.
-  A. Pronobis, B. Caputo, P. Jensfelt, and H. I. Christensen, “A discriminative approach to robust visual place recognition,” in IROS, 2006.
-  B. Zhou, A. Lapedriza, J. Xiao, A. Torralba, and A. Oliva, “Learning deep features for scene recognition using places database,” in NIPS, 2014.
-  Y. Liao, S. Kodagoda, Y. Wang, L. Shi, and Y. Liu, “Understand scene categories by objects: A semantic regularized scene classifier using convolutional neural networks,” in ICRA, 2016.
-  H. Yang and J. Wu, “Object templates for visual place categorization.” in ACCV, 2012, pp. 470–483.
-  J. Luo, A. Pronobis, and B. Caputo, “Svm-based transfer of visual knowledge across robotic platforms,” 2007.
-  Z. Xu, W. Li, L. Niu, and D. Xu, “Exploiting low-rank structure from latent domains for domain generalization,” in ECCV, 2014.
-  S. Ioffe and C. Szegedy, “Batch normalization: Accelerating deep network training by reducing internal covariate shift,” in ICML, 2015.
-  M. Wulfmeier, A. Bewley, and I. Posner, “Addressing appearance change in outdoor robotics with adversarial domain adaptation,” arXiv preprint arXiv:1703.01461.
-  F. M. Carlucci, L. Porzi, B. Caputo, E. Ricci, and S. R. Bulò, “Autodial: Automatic domain alignment layers,” 2017.
-  N. Jacobs, N. Roman, and R. Pless, “Consistent temporal variations in many outdoor scenes,” in CVPR, 2007.
-  A. Krizhevsky, I. Sutskever, and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,” in NIPS, 2012.
-  J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “Imagenet: A large-scale hierarchical image database,” in CVPR, 2009.
-  Y. Jia, E. Shelhamer, J. Donahue, S. Karayev, J. Long, R. Girshick, S. Guadarrama, and T. Darrell, “Caffe: Convolutional architecture for fast feature embedding,” in ACM Multimedia, 2014.
-  M. Simon, E. Rodner, and J. Denzler, “Imagenet pre-trained models with batch normalization,” arXiv preprint arXiv:1612.01452, 2016.
-  D. G. Lowe, “Distinctive image features from scale-invariant keypoints,” IJCV, vol. 60, no. 2, pp. 91–110, 2004.
-  S. Song, L. Zhang, and J. Xiao, “Robot in a room: Toward perfect object recognition in closed environments,” CoRR, abs/1507.02703, 2015.
-  J. McCormac, A. Handa, S. Leutenegger, and A. J. Davison, “Scenenet rgb-d: Can 5m synthetic images beat generic imagenet pre-training on indoor segmentation,” in CVPR, 2017.