{"title": "Context-Sensitive Decision Forests for Object Detection", "book": "Advances in Neural Information Processing Systems", "page_first": 431, "page_last": 439, "abstract": "In this paper we introduce Context-Sensitive Decision Forests - A new perspective to exploit contextual information in the popular decision forest framework for the object detection problem. They are tree-structured classifiers with the ability to access intermediate prediction (here: classification and regression) information during training and inference time. This intermediate prediction is available to each sample, which allows us to develop context-based decision criteria, used for refining the prediction process. In addition, we introduce a novel split criterion which in combination with a priority based way of constructing the trees, allows more accurate regression mode selection and hence improves the current context information. In our experiments, we demonstrate improved results for the task of pedestrian detection on the challenging TUD data set when compared to state-of-the-art methods.", "full_text": "Context-Sensitive Decision Forests\n\nfor Object Detection\n\nPeter Kontschieder1\n\nSamuel Rota Bul`o2 Antonio Criminisi3\n\nPushmeet Kohli3 Marcello Pelillo2 Horst Bischof1\n\n1ICG, Graz University of Technology, Austria\n2DAIS, Universit`a Ca\u2019 Foscari Venezia, Italy\n\n3Microsoft Research Cambridge, UK\n\nAbstract\n\nIn this paper we introduce Context-Sensitive Decision Forests - A new perspective\nto exploit contextual information in the popular decision forest framework for the\nobject detection problem. They are tree-structured classi\ufb01ers with the ability to\naccess intermediate prediction (here: classi\ufb01cation and regression) information\nduring training and inference time. This intermediate prediction is available for\neach sample and allows us to develop context-based decision criteria, used for\nre\ufb01ning the prediction process. In addition, we introduce a novel split criterion\nwhich in combination with a priority based way of constructing the trees, allows\nmore accurate regression mode selection and hence improves the current context\ninformation. In our experiments, we demonstrate improved results for the task of\npedestrian detection on the challenging TUD data set when compared to state-of-\nthe-art methods.\n\nIntroduction and Related Work\n\n1\nIn the last years, the random forest framework [1, 6] has become a very popular and powerful tool\nfor classi\ufb01cation and regression problems by exhibiting many appealing properties like inherent\nmulti-class capability, robustness to label noise and reduced tendencies to over\ufb01tting [7]. They\nare considered to be close to an ideal learner [13], making them attractive in many areas of com-\nputer vision like image classi\ufb01cation [5, 17], clustering [19], regression [8] or semantic segmenta-\ntion [24, 15, 18]. In this work we show how the decision forest algorithm can be extended to include\ncontextual information during learning and inference for classi\ufb01cation and regression problems.\nWe focus on applying random forests to object detection, i.e. the problem of localizing multiple\ninstances of a given object class in a test image. This task has been previously addressed in random\nforests [9], where the trees were modi\ufb01ed to learn a mapping between the appearance of an image\npatch and its relative position to the object category centroid (i.e. center voting information). During\ninference, the resulting Hough Forest not only performs classi\ufb01cation on test samples but also casts\nprobabilistic votes in a generalized Hough-voting space [3] that is subsequently used to obtain object\ncenter hypotheses. Ever since, a series of applications such as tracking and action recognition [10],\nbody-joint position estimation [12] and multi-class object detection [22] have been presented. How-\never, Hough Forests typically produce non-distinctive object hypotheses in the Hough space and\nhence there is the need to perform non-maximum suppression (NMS) for obtaining the \ufb01nal results.\nWhile this has been addressed in [4, 26], another shortcoming is that standard (Hough) forests treat\nsamples in a completely independent way, i.e. there is no mechanism that encourages the classi\ufb01er\nto perform consistent predictions.\nWithin this work we are proposing that context information can be used to overcome the aforemen-\ntioned problems. For example, training data for visual learning is often represented by images in\nform of a (regular) pixel grid topology, i.e. objects appearing in natural images can often be found in\na speci\ufb01c context. The importance of contextual information was already highlighted in the 80\u2019s with\n\n1\n\n\fFigure 1: Top row: Training image, label image, visualization of priority-based growing of tree (the lower,\nthe earlier the consideration during training.). Bottom row: Inverted Hough image using [9] and breadth-\ufb01rst\ntraining after 6 levels (26 = 64 nodes), Inverted Hough image after growing 64 nodes using our priority queue,\nInverted Hough image using priority queue shows distinctive peaks at the end of training.\n\na pioneering work on relaxation labelling [14] and a later work with focus on inference tasks [20]\nthat addressed the issue of learning within the same framework. More recently, contextual infor-\nmation has been used in the \ufb01eld of object class segmentation [21], however, mostly for high-level\nreasoning in random \ufb01eld models or to resolve contradicting segmentation results. The introduc-\ntion of contextual information as additional features in low-level classi\ufb01ers was initially proposed\nin the Auto-context [25] and Semantic Texton Forest [24] models. Auto-context shows a general\napproach for classi\ufb01er boosting by iteratively learning from appearance and context information. In\nthis line of research [18] augmented the feature space for an Entanglement Random Forest with a\nclassi\ufb01cation feature, that is consequently re\ufb01ned by the class posterior distributions according to\nthe progress of the trained subtree. The training procedure is allowed to perform tests for speci\ufb01c,\ncontextual label con\ufb01gurations which was demonstrated to signi\ufb01cantly improve the segmentation\nresults. However, the\nIn this paper we are presenting Context-Sensitve Decision Forests - A novel and uni\ufb01ed interpreta-\ntion of Hough Forests in light of contextual sensitivity. Our work is inspired by Auto-Context and\nEntanglement Forests, but instead of providing only posterior classi\ufb01cation results from an earlier\nlevel of the classi\ufb01er construction during learning and testing, we additionally provide regression\n(voting) information as it is used in Hough Forests. The second core contribution of our work is\nrelated to how we grow the trees: Instead of training them in a depth- or breadth-\ufb01rst way, we pro-\npose a priority-based construction (which could actually consider depth- or breadth-\ufb01rst as particular\ncases). The priority is determined by the current training error, i.e. we \ufb01rst grow the parts of the tree\nwhere we experience higher error. To this end, we introduce a uni\ufb01ed splitting criterion that esti-\nmates the joint error of classi\ufb01cation and regression. The consequence of using our priority-based\ntraining are illustrated in Figure 1: Given the training image with corresponding label image (top\nrow, images 1 and 2), the tree \ufb01rst tries to learn the foreground samples as shown in the color-coded\nplot (top row, image 3, colors correspond to index number of nodes in the tree). The effects on the\nintermediate prediction quality are shown in the bottom row for the regression case: The \ufb01rst image\nshows the regression quality after training a tree with 6 levels (26 = 64 nodes) in a breadth-\ufb01rst way\nwhile the second image shows the progress after growing 64 nodes according to the priority based\ntraining. Clearly, the modes for the center hypotheses are more distinctive which in turn yields to\nmore accurate intermediate regression information that can be used for further tree construction.\nOur third contribution is a new family of split functions that allows to learn from training images\ncontaining multiple training instances as shown for the pedestrians in the example. We introduce a\ntest that checks the centroid compatibility for pairs of training samples taken from the context, based\non the intermediate classi\ufb01cation and regression derived as described before. To assess our contribu-\ntions, we performed several experiments on the challenging TUD pedestrian data set [2], yielding a\nsigni\ufb01cant improvement of 9% in the recall at 90% precision rate in comparison to standard Hough\nForests, when learning from crowded pedestrian images.\n\n2\n\n\f2 Context-Sensitive Decision Trees\nThis section introduces the general idea behind the context-sensitive decision forest without refer-\nences to speci\ufb01c applications. Only in Section 3 we show a particular application to the problem\nof object detection. After showing some basic notational conventions that are used in the paper, we\nprovide a section that revisits the random forest framework for classi\ufb01cation and regression tasks\nfrom a joint perspective, i.e. a theory allowing to consider e.g. [1, 11] and [9] in a uni\ufb01ed way.\nStarting from this general view we \ufb01nally introduce the context-sensitive forests in 2.2.\nNotations.\nIn the paper we denote vectors using boldface lowercase (e.g. d, u, v) and sets by\nusing uppercase calligraphic (e.g. X , Y) symbols. The sets of real, natural and integer numbers are\ndenoted with R, N and Z as usually. We denote by 2X the power set of X and by 1 [P ] the indicator\nfunction returning 1 or 0 according to whether the proposition P is true or false. Moreover, with\nP(Y) we denote the set of probability distributions having Y as sample space and we implicitly\nassume that some \u03c3-algebra is de\ufb01ned on Y. We denote by \u03b4(x) the Dirac delta function. Finally,\nEx\u223cQ [f (x)] denotes the expectation of f (x) with respect to x sampled according to distribution Q.\n2.1 Random Decision Forests for joint classi\ufb01cation and regression\nA (binary) decision tree is a tree-structured predictor1 where, starting from the root, a sample is\nrouted until it reaches a leaf where the prediction takes place. At each internal node of the tree the\ndecision is taken whether the sample should be forwarded to the left or right child, according to a\nbinary-valued function. In formal terms, let X denote the input space, let Y denote the output space\nand let T dt be the set of decision trees. In its simplest form a decision tree consists of a single node\n(a leaf ) and is parametrized by a probability distribution Q \u2208 P(Y) which represents the posterior\nprobability of elements in Y given any data sample reaching the leaf. We denote this (admittedly\nrudimentary) tree as LF (Q) \u2208 T td. Otherwise, a decision tree consists of a node with a left and\na right sub-tree. This node is parametrized by a split function \u03c6 : X \u2192 {0, 1}, which determines\nwhether to route a data sample x \u2208 X reaching it to the left decision sub-tree tl \u2208 T dt (if \u03c6(x) = 0)\nor to the right one tr \u2208 T dt (if \u03c6(x) = 1). We denote such a tree as ND (\u03c6, tl, tr) \u2208 T td. Finally,\na decision forest is an ensemble F \u2286 T td of decision trees which makes a prediction about a data\nsample by averaging over the single predictions gathered from all trees.\nInference. Given a decision tree t \u2208 T dt, the associated posterior probability of each element in\nY given a sample x \u2208 X is determined by \ufb01nding the probability distribution Q parametrizing the\nleaf that is reached by x when routed along the tree. This is compactly presented with the following\nde\ufb01nition of P (y|x, t), which is inductive in the structure of t:\nif t = LF (Q)\nif t = ND (\u03c6, tl, tr) and \u03c6(x) = 0\nif t = ND (\u03c6, tl, tr) and \u03c6(x) = 1 .\n\n\uf8f1\uf8f2\uf8f3Q(y)\n\nP (y | x, tl)\nP (y | x, tr)\n\nP (y | x, t ) =\n\n(1)\n\nFinally, the combination of the posterior probabilities derived from the trees in a forest F \u2286 T dt can\nbe done by an averaging operation [6], yielding a single posterior probability for the whole forest:\n\nP (y|x,F) =\n\n1\n|F|\n\nP (y|x, t) .\n\n(2)\n\n(cid:88)\n\nt\u2208F\n\nRandomized training.\nA random forest is created by training a set of random decision trees independently on random\nsubsets of the training data D \u2286 X\u00d7Y. The training procedure for a single decision tree heuristically\noptimizes a set of parameters like the tree structure, the split functions at the internal nodes and the\ndensity estimates at the leaves in order to reduce the prediction error on the training data. In order\nto prevent over\ufb01tting problems, the search space of possible split functions is limited to a random\nset and a minimum number of training samples is required to grow a leaf node. During the training\nprocedure, each new node is fed with a set of training samples Z \u2286 D. If some stopping condition\nholds, depending on Z, the node becomes a leaf and a density on Y is estimated based on Z.\nOtherwise, an internal node is grown and a split function is selected from a pool of random ones in\na way to minimize some sort of training error on Z. The selected split function induces a partition\n\n1we use the term predictor because we will jointly consider classi\ufb01cation and regression.\n\n3\n\n\fof Z into two sets, which are in turn becoming the left and right childs of the current node where\nthe training procedure is continued, respectively.\nWe will now write this training procedure in more formal terms. To this end we introduce a function\n\u03c0(Z) \u2208 P(Y) providing a density on Y estimated from the training data Z \u2286 D and a loss function\nL(Z | Q) \u2208 R penalizing wrong predictions on the training samples in Z, when predictions are given\naccording to a distribution Q \u2208 P(Y). The loss function L can be further decomposed in terms of a\nloss function (cid:96)(\u00b7|Q) : Y \u2192 R acting on each sample of the training set:\n\nL(Z | Q) =\n\n(cid:96)(y | Q) .\n\n(3)\n\n(cid:88)\n\n(x,y)\u2208Z\n\nAlso, let \u03a6(Z) be a set of split functions randomly generated for a training set Z and given a split\nfunction \u03c6 \u2208 \u03a6(Z), we denote by Z \u03c6\nr the sets identi\ufb01ed by splitting Z according to \u03c6, i.e.\n\nl and Z \u03c6\n\nZ \u03c6\nl = {(x, y) \u2208 Z : \u03c6(x) = 0}\n\nand\n\nZ \u03c6\nr = {(x, y) \u2208 Z : \u03c6(x) = 1} .\n\nWe can now summarize the training procedure in terms of a recursive function g : 2X\u00d7Y \u2192 T ,\nwhich generates a random decision tree from a training set given as argument:\n\n(cid:40)LF (\u03c0(Z))\n\n(cid:16)\n\nND\n\n\u03c6, g(Z \u03c6\n\ng(Z) =\n\n(cid:17)\n\nl ), g(Z \u03c6\nr )\n(cid:110)\n\nL(Z \u03c6(cid:48)\n\nif some stopping condition holds\notherwise .\n\n(4)\n\n(cid:111)\n\nHere, we determine the optimal split function \u03c6 in the pool \u03a6(Z) as the one minimizing the loss we\nincur as a result of the node split:\n\n\u03c6 \u2208 arg min\n\nl ) + L(Z \u03c6(cid:48)\n\nr ) : \u03c6(cid:48) \u2208 \u03a6(Z)\n\n(5)\nwhere we compactly write L(Z) for L(Z|\u03c0(Z)), i.e. the loss on Z obtained with predictions driven\nby \u03c0(Z). A typical split function selection criterion commonly adopted for classi\ufb01cation and re-\ngression is information gain. The equivalent counterpart in terms of loss can be obtained by using\na log-loss, i.e. (cid:96)(y|Q) = \u2212 log(Q(y)). A further widely used criterion is based on Gini impurity,\nwhich can be expressed in this setting by using (cid:96)(y|Q) = 1 \u2212 Q(y).\nFinally, the stopping condition that is used in (4) to determine whether to create a leaf or to continue\nbranching the tree typically consists in checking |Z|, i.e. the number of training samples at the node,\nor the loss L(Z) are below some given thresholds, or if a maximum depth is reached.\n2.2 Context-sensitive decision forests\nA context-sensitive (CS) decision tree is a decision tree in which split functions are enriched with the\nability of testing contextual information of a sample, before taking a decision about where to route\nit. We generate contextual information at each node of a decision tree by exploiting a truncated\nversion of the same tree as a predictor. This idea is shared with [18], however, we introduce some\nnovelties by tackling both, classi\ufb01cation and regression problems in a joint manner and by leaving\na wider \ufb02exibility in the tree truncation procedure. We denote the set of CS decision trees as T .\nThe main differences characterizing a CS decision tree t \u2208 T compared with a standard decision\ntree are the following: a) every node (leaves and internal nodes) of t has an associated probability\ndistribution Q \u2208 P(Y) representing the posterior probability of an element in Y given any data\nsample reaching it; b) internal nodes are indexed with distinct natural numbers n \u2208 N in a way to\npreserve the property that children nodes have a larger index compared to their parent node; c) the\nsplit function at each internal node, denoted by \u03d5(\u00b7|t(cid:48)) : X \u2192 {0, 1}, is bound to a CS decision\ntree t(cid:48) \u2208 T , which is a truncated version of t and can be used to compute intermediate, contextual\ninformation.\nSimilar to Section 2.1 we denote by LF (Q) \u2208 T the simplest CS decision tree consisting of a single\nleaf node parametrized by the distribution Q, while we denote by ND (n, Q, \u03d5, tl, tr) \u2208 T , the rest of\nthe trees consisting of a node having a left and a right sub-tree, denoted by tl, tr \u2208 T respectively,\nand being parametrized by the index n, a probability distribution Q and the split function \u03d5 as\ndescribed above.\nAs shown in Figure 2, the truncation of a CS decision tree at each node is obtained by exploiting\nthe indexing imposed on the internal nodes of the tree. Given a CS decision tree t \u2208 T and m \u2208 N,\n\n4\n\n\f1\n\n1\n\n2\n\n4\n\n2\n\n4\n\n3\n\n6\n\n5\n\n3\n\n(a) A CS decision tree t\n\n(b) The truncated version t(<5)\n\nFigure 2: On the left, we \ufb01nd a CS decision tree t, where only the internal nodes are indexed. On the right, we\nsee the truncated version t(<5) of t, which is obtained by converting to leaves all nodes having index \u2265 5 (we\nmarked with colors the corresponding node transformations).\nwe denote by t(<m) a CS decision tree derived from t in which only the internal nodes having index\n< m are kept and the internal nodes with index \u2265 m having a parent with index < m, or being the\nroot node, are converted into leaves. Finally, all nodes left-over are pruned away.\nInference. The inference process, given a CS decision tree t \u2208 T , is equivalent to the one intro-\nduced for standard decision trees, with the only difference that a split function in a node indexed\nby n can use the truncated version of the same decision tree t(<n) to additionally exploit contex-\ntual information while taking decisions about where to route samples. In the speci\ufb01c, the posterior\nprobability of y \u2208 Y given a sample x \u2208 X is inductively de\ufb01ned as:\n\n\uf8f1\uf8f2\uf8f3Q(y)\n\nP (y | x, t) =\n\n(6)\n\nP (y | x, tl)\nP (y | x, tr)\n\nif t = LF (Q)\nif t = ND (n,\u00b7, \u03d5, tl, tr) and \u03d5(x| t(<n)) = 0\nif t = ND (n,\u00b7, \u03d5, tl, tr) and \u03d5(x| t(<n)) = 1 .\nThe same posterior probabilities with respect to a forest F \u2286 T can be obtained as in (2).\nPrioritized node training. The training process for CS decision forests consists in training an\nensemble of CS decision trees independently on random subsets of the training set D \u2286 X \u00d7 Y.\nEach CS decision tree is trained in an iterative way and, similar to the case of standard decision\ntrees, a decision about whether to branch new nodes or produce a leaf is taken based on a subset\nof the training samples Z \u2286 D. However, in contrast to the standard setting, the learning process\ndepends on the order in which nodes of the tree are grown because split functions depend on t(<m)\nwhich in turn is affected by the node ordering. In other words, we impose an explicit ordering on\nthe recursive calls of function g described in Equation (4). This ordering is determined by means\nof a priority queue, where the priority associated to each function call is determined according to\na cost value. This cost can for instance be the depth at which a new node will be grown by the\nrecursive call, in which case we enforce a breadth-\ufb01rst ordering, or the negative loss \u2212L(Z) de\ufb01ned\nas in (3), Z being the subset of the training data argument of the function call. This second option\nis particularly interesting because it forces the tree to split \ufb01rst the nodes where the training error\nmeasured in terms of the loss function is the highest. This indeed allows to reduce the uncertainty\nuniformly during the tree growth and in turn results in more reliable contextual information.\nWhenever a new node is grown, it takes the time at which it was extracted from the priority queue\nas index. It is easy to see that the indexing deriving from this procedure never violates the property\nthat children of a node have an index larger than the parent node. The split function selection is\nperformed according to (5), the only difference being the type of split functions that are generated,\nwhich can exploit t(<m) to test contextual information.\n3 Application to Object Detection\nIn this section we employ the CS decision trees for the problem of object detection, following a\nsolution setting similar to [9]. Speci\ufb01cally, we adopt a patch-based abstraction of an image and the\naim of the tree-based predictor is to jointly predict, for each patch, the foreground/background class\nit belongs to and a displacement vector pointing to the object\u2019s center. By collecting all the object\nposition hypotheses from all foreground patches, we can setup a Hough space in which objects can\nbe detected from the vote modes.\nAn image I : Z2 \u2192 F is a function mapping pixels to elements of a feature space F. The fea-\nture space here may include a variety of image cues, like color information, gradients, \ufb01lter bank\n\n5\n\n\fresponses, etc. . We denote by I(u) \u2208 F the feature vector associated to pixel u and by I the set of\nimages, and by I(u)k the kth element of the feature vector associated to u. The input space X for\nour learning problem is a set of patches, each represented as a pair (u, I) \u2208 Z2 \u00d7 I, pixel u being\nthe center of the patch in image I.\nThe output space Y is a set of pairs (c, d), where c \u2208 {0, 1} is a binary class label indicating the\npresence of an object and d \u2208 Z2 is the displacement of the object\u2019s center. Hence, if a training\nsample (u, I) \u2208 X has (c, d) \u2208 Y as the ground-truth prediction then we have in image I at location\nu either a background pixel (c = 0) or a foreground pixel (c = 1), i.e. belonging to an object and,\nif the second case holds, u + d is the center of the object to which the pixel belongs. Note that Y\nencodes both the classi\ufb01cation and regression part of the object detection task.\nThe loss function (cid:96)(c, d|Q) that we employ for the computation of L(Z|Q) in (3) is given by\n\n(cid:96)(c, d| Q) = E(c(cid:48),d(cid:48))\u223cQ [1 [c (cid:54)= c(cid:48)] + 1 [(c, c(cid:48)) = (1, 1)] (1 \u2212 K\u03c3(d \u2212 d(cid:48)))]\n\n(7)\nwhere K\u03c3(x) = exp(\u2212(cid:107)x(cid:107)2/\u03c32). This quantity measures the expected loss that we incur by pre-\ndicting (c(cid:48), d(cid:48)) in place of (c, d), where (c(cid:48), d(cid:48)) is sampled according to Q. The term under expec-\ntation behaves as a 0/1 loss for all combinations of class labels, excepting the case c = c(cid:48) = 1\nwhere also the correct prediction of the displacement vector is taken into account. Indeed, even if a\npixel belonging to an object is correctly labelled, we incur a high loss if the object\u2019s center position\nestimation is completely wrong. This is taken into account with the second term.\nThe density estimation function \u03c0(Z), which generates the posterior distributions stored in the tree\nleaves, is different depending if we are at an internal node or at a leaf of the tree. In both cases\nit provides distributions that factorize in two marginal distributions, for the class labels and the\ndisplacement vector, respectively. The marginal over the class labels is always a discrete distribution\nproviding the probability of drawing a sample of a given class from the set Z. The difference is\nwith respect to the marginal over the displacement vector. We have a point-wise and uni-modal\ndistribution at the internal nodes, while we keep track of multiple modes at the leaves.\nLet q \u2208 P({0, 1}) be the marginal distribution over the class labels de\ufb01ned as q(c) = |Zc|/|Z|,\nwhere Z0 and Z1 are the sets of background and foreground samples in Z, respectively. At the\ninternal node level \u03c0(Z) returns a probability distribution Qn \u2208 P(Y) de\ufb01ned as\n\nQn (c, d) = q(c)\u03b4(d \u2212 d\u2217) .\n\nHere, d\u2217 represents the single point-wise mode of the marginal distribution with respect to d (i.e. the\nsecond term), which is determined in a way to minimize the loss L(Z|Qn) over the training samples.\nA local solution of the minimization problem can be found by iterating the following procedure2\n\nd\u2217 \u2190 (cid:88)\n\n(cid:46) (cid:88)\n\n(cid:88)\n\nd K\u03c3(d \u2212 d\u2217)\n\nK\u03c3(d \u2212 d\u2217) .\n\n(x,(c,d))\u2208Z1\n\n(x,(c,d))\u2208Z1\n\nAt the leaf level, instead, \u03c0(Z) returns a probability distribution Ql \u2208 P(Y) de\ufb01ned as:\n\nQl (c, d) = q(c)\n\n(x,(c(cid:48),d(cid:48)))\u2208Z1\n\n\u03b4(d \u2212 d(cid:48))/|Z1| .\n\nHere, the second term, i.e. the marginal over d, is uniform over the set of displacement vectors\nbelonging to foreground samples reaching the leaf.\nWe de\ufb01ne \ufb01nally a novel type of split function, which performs a test by exploiting the contextual\ninformation. This test is particularly interesting because it allows to check whether two pixels are\nexpected to belong to the same object instance. The new split function \u03d5(cs)(u, I|t, h1, h2, \u03c4 ) takes\nas input a sample (u, I) \u2208 X and it is parametrized by a CS decision tree t \u2208 T that is used\nfor generating the contextual information, by two relative displacement vectors h1, h2 \u2208 R2 that\nidentify the position of two pixels relative to u and by a threshold \u03c4. The de\ufb01nition of our context-\nsensitive split functions \u03d5(cs) is as follows:\n\n\u03d5(cs)(u, I|t, h1, h2, \u03c4 ) = 1(cid:2)E(c,d,c(cid:48),d(cid:48))\u223cP1\u00b7P2 [1 [(c, c(cid:48)) = (1, 1)]K\u03c3(d \u2212 d(cid:48))] < \u03c4(cid:3)\n\n(8)\n\n2In the experiments conducted, we never exceeded 10 iterations for \ufb01nding a mode.\n\n6\n\n\fwhere Pj = P (\u00b7|(u + hj, I), t), with j = 1, 2, are the posterior probabilities obtained from tree t\ngiven samples at position u+h1 and u+h2 of image I, respectively. Please note that this test should\nnot be confused with the regression split criterion in [9], which tries to partition the training set in a\nway to group examples with similar voting direction and length. Besides the novel context-sensitive\nsplit function we employ also standard split functions performing tests on X as de\ufb01ned in [24].\n\n4 Experiments\nTo assess our proposed approach, we have conducted several experiments on the task of pedestrian\ndetection. Detecting pedestrians is very challenging for Hough-voting based methods as they typ-\nically exhibit strong articulations of feet and arms, yielding to non-distinctive hypotheses in the\nHough space. We evaluated our method on the TUD pedestrian data base [2] in two different ways:\nFirst, we show our detection results with training according to the standard protocol using 400\ntraining images (where each image contains a single annotation of a pedestrian) and evaluation on\nthe Campus and Crossing scenes, respectively (Section 4.1). With this experiment we show the\nimprovement over state-of-the-art approaches when learning can be performed with simultaneous\nknowledge about context information. In a second variation (Section 4.2), we use the images of\nthe Crossing scene (201 images) as a training set. Most images of this scene contain more than\nfour persons with strong overlap and mutual occlusions. However, instead of using the original an-\nnotation which covers only pedestrians with at least 50% overlap (1008 bounding boxes), we use\nthe more accurate, pixel-wise ground truth annotations of [23] for the entire scene that includes all\npersons and consists of 1215 bounding boxes. Please note that this annotation is even more detailed\nthan the one presented in [4] with 1018 bounding boxes. The purpose of the second experiment is\nto show that our context-sensitive forest can exploit the availability of multiple training instances\nsigni\ufb01cantly better than state-of-the-art.\nThe most related work and therefore also the baseline in our experiments is the Hough Forest [9]. To\nguarantee a fair comparison, we use the same training parameters for [9] and our context sensitive\nforest: We trained 20 trees and the training data (including horizontally \ufb02ipped images) was sampled\nhomogeneously per category per image. The patch size was \ufb01xed to 30 \u00d7 30 and we performed\n1600 node tests for \ufb01nding the best split function parameters per node. The trees were stopped\ngrowing when < 7 samples were available. As image features, we used the the \ufb01rst 16 feature\nchannels provided in the publicly available Hough Forest code of [9]. In order to obtain the object\ndetection hypotheses from the Hough space, we use the same Non-maximum suppression (NMS)\ntechnique in all our experiments as suggested in [9]. To evaluate the obtained hypotheses, we use\nthe standard PASAL-VOC criterion which requires the mutual overlap between ground truth and\ndetected bounding boxes to be \u2265 50%. The additional parameter of (7) was \ufb01xed to \u03c3 = 7.\n4.1 Evaluation using standard protocol training set\nThe standard training set contains 400 images where each image comes with a single pedestrian\nannotation. For our experiments, we rescaled the images by a factor of 0.5 and doubled the train-\ning image set by including also the horizontally \ufb02ipped images. We randomly chose 125 training\nsamples per image for foreground and background, resulting in 2 \u00b7 400 \u00b7 2 \u00b7 125 = 200k training\nsamples per tree. For additional comparisons, we provide the results presented in the recent work\non joint object detection and segmentation of [23], from which we also provide evaluation results\nof the Implicit Shape Model (ISM) [16]. However, please note that the results of [23] are based on\na different baseline implementation. Moreover, we show the results of [4] when using the provided\ncode and con\ufb01guration \ufb01les from the \ufb01rst authors homepage. Unfortunately, we could not reproduce\nthe results of the original paper.\nFirst, we discuss the results obtained on the Campus scene. This data set consists of 71 images\nshowing walking pedestrians at severe scale differences and partial occlusions. The ground truth\nwe use has been released with [4] and contains a total number of 314 pedestrians. Figure 3, \ufb01rst\nrow, plot 1 shows the precision-recall curves when using 3 scales (factors 0.3, 0.4, 0.55) for our\nbaseline [9] (blue), results from re-evaluating [4] (cyan, 5 scales), [23] (green) and our Context-\nSensitive Forest without and with using the priority queue based tree construction (red/magenta). In\ncase of not using the priority queue, we trained the trees according to a breadth-\ufb01rst way. We obtain\na performance boost of \u2248 6% in recall at a precision of 90% when using both, context information\nand the priority based construction of our forest. The second plot in the \ufb01rst row of Figure 3 shows\nthe results when the same forests are tested on the Crossing scene, using the more detailed ground\n\n7\n\n\fFigure 3: Precision-Recall Curves for detections, Top row: Standard training (400 images), evaluation on\nCampus and Crossing (3 scales). Bottom row: Training on Crossing annotations of [23], evaluation on Campus,\n3 and 5 scales. Right images: Qualitative examples for Campus (top 2) and Crossing (bottom 2) scenes. (green)\ncorrectly found by our method (blue) ground truth (red) wrong association (cyan) missed detection.\ntruth annotations. The data set shows walking pedestrians (Figure 3, right side, last 2 images) with\na smaller variation in scale compared to the Campus scene but with strong mutual occlusions and\noverlaps. The improvement with respect to the baseline is lower (\u2248 2% gain at a precision of 90%)\nand we \ufb01nd similar developments of the curves. However, this comes somewhat expectedly as the\ntraining data does not properly re\ufb02ect the occlusions we actually want to model.\n4.2 Evaluation on Campus scene using Crossing scene as training set\nIn our next experiment we trained the forests (same parameters) on the novel annotations of [23]\nfor the Crossing scene. Please note that this reduces the training set to only 201 images (we did not\ninclude the \ufb02ipped images). Qualitative detection results are shown in Figure 3, right side, images\n1 and 2. From the \ufb01rst precison-recall curve in the second row of Figure 3 we can see, that the\nmargin between the baseline and our proposed method could be clearly improved (gain of \u2248 9%\nrecall at precision 90%) when evaluating on the same 3 scales. With evaluation on 5 scales (factors\n0.34, 0.42, 0.51, 0.65, 0.76) we found a strong increase in the recall, however, at the cost of loosing\n2 \u2212 3% of precision below a recall of 60%, as illustrated in the second plot of row 2 in Figure 3.\nWhile our method is able to maintain a precision above 90% up to a recall of \u2248 83%, the baseline\nimplementation drops already at a recall of \u2248 20%.\n5 Conclusions\nIn this work we have presented Context-Sensitive Decision Forests with application to the object de-\ntection problem. Our new forest has the ability to access intermediate prediction (classi\ufb01cation and\nregression) information about all samples of the training set and can therefore learn from contextual\ninformation throughout the growing process. This is in contrast to existing random forest methods\nused for object detection which typically treat training samples in an independent manner. More-\nover, we have introduced a novel splitting criterion together with a mode isolation technique, which\nallows us to (a) perform a priority-driven way of tree growing and (b) install novel context-based\ntest functions to check for mutual object centroid agreements. In our experimental results on pedes-\ntrian detection we demonstrated superior performance with respect to state-of-the-art methods and\nadditionally found that our new algorithm can signi\ufb01cantly better exploit training data containing\nmultiple training objects.\n\nAcknowledgements. Peter Kontschieder acknowledges \ufb01nancial support of the Austrian Science\nFund (FWF) from project \u2019Fibermorph\u2019 with number P22261-N22.\n\n8\n\n00.10.20.30.40.50.60.70.80.9100.10.20.30.40.50.60.70.80.91TUD Campus (3 scales)RecallPrecision  Baseline Hough ForestBarinova et al. CVPR\u201910, 5 scalesProposed Context\u2212Sensitive, No Priority QueueProposed Context\u2212Sensitive, With Priority QueueRiemenschneider et al. ECCV\u20191200.10.20.30.40.50.60.70.80.9100.10.20.30.40.50.60.70.80.91TUD\u2212Crossing (3 scales)RecallPrecision  Baseline Hough ForestBarinova et al. CVPR\u201910Proposed Context\u2212Sensitive, No Priority QueueProposed Context\u2212Sensitive, With Priority QueueRiemenschneider et al. ECCV\u201912 (1 scale)Leibe et al. IJCV\u201908 (1 scale)00.10.20.30.40.50.60.70.80.9100.10.20.30.40.50.60.70.80.91TUD Campus (3 scales)RecallPrecision  Baseline Hough ForestProposed Context\u2212Sensitive, No Priority QueueProposed Context\u2212Sensitive, With Priority Queue00.10.20.30.40.50.60.70.80.9100.10.20.30.40.50.60.70.80.91TUD Campus (5 scales)RecallPrecision  Baseline Hough ForestProposed Context\u2212Sensitive, No Priority QueueProposed Context\u2212Sensitive, With Priority Queue\fReferences\n[1] Y. Amit and D. Geman. Shape quantization and recognition with randomized trees. Neural Computation,\n\n1997.\n\n[2] M. Andriluka, S. Roth, and B. Schiele. People-tracking-by-detection and people-detection-by-tracking.\n\nIn (CVPR), 2008.\n\n[3] D. H. Ballard. Generalizing the hough transform to detect arbitrary shapes. Pattern Recognition, 13(2),\n\n1981.\n\n[4] O. Barinova, V. Lempitsky, and P. Kohli. On detection of multiple object instances using hough trans-\n\nforms. In (CVPR), 2010.\n\n[5] A. Bosch, A. Zisserman, and X. Mu\u02dcnoz. Image classi\ufb01cation using random forests and ferns. In (ICCV),\n\n2007.\n\n[6] L. Breiman. Random forests. In Machine Learning, 2001.\n[7] A. Criminisi, J. Shotton, and E. Konukoglu. Decision forests: A uni\ufb01ed framework for classi\ufb01cation, re-\ngression, density estimation, manifold learning and semi-supervised learning. In Foundations and Trends\nin Computer Graphics and Vision, volume 7, pages 81\u2013227, 2012.\n\n[8] A. Criminisi, J. Shotton, D. Robertson, and E. Konukoglu. Regression forests for ef\ufb01cient anatomy\n\ndetection and localization in CT scans. In MICCAI-MCV Workshop, 2010.\n\n[9] J. Gall and V. Lempitsky. Class-speci\ufb01c hough forests for object detection. In (CVPR), 2009.\n[10] J. Gall, A. Yao, N. Razavi, L. Van Gool, and V. Lempitsky. Hough forests for object detection, tracking,\n\nand action recognition. (PAMI), 2011.\n\n[11] P. Geurts, D. Ernst, and L. Wehenkel. Extremely randomized trees. Machine Learning, 2006.\n[12] R. Girshick, J. Shotton, P. Kohli, A. Criminisi, and A. Fitzgibbon. Ef\ufb01cient regression of general-activity\n\nhuman poses from depth images. In (ICCV), 2011.\n\n[13] T. Hastie, R. Tibshirani, and J. H. Friedman. The Elements of Statistical Learning. Springer, 2009.\n[14] R. A. Hummel and S. W. Zucker. On the foundations of relaxation labeling. (PAMI), 5(3):267\u2013287, 1983.\n[15] P. Kontschieder, S. Rota Bul`o, H. Bischof, and M. Pelillo. Structured class-labels in random forests for\n\nsemantic image labelling. In (ICCV), 2011.\n\n[16] B. Leibe, A. Leonardis, and B. Schiele. Robust object detection with interleaved categorization and\n\nsegmentation. (IJCV), 2008.\n\n[17] R. Mar\u00b4ee, P. Geurts, J. Piater, and L. Wehenkel. Random subwindows for robust image classi\ufb01cation. In\n\n(CVPR), 2005.\n\n[18] A. Montillo, J. Shotton, J. Winn, J. E. Iglesias, D. Metaxas, and A. Criminisi. Entangled decision forests\n\nand their application for semantic segmentation of CT images. In (IPMI), 2011.\n\n[19] F. Moosmann, B. Triggs, and F. Jurie. Fast discriminative visual codebooks using randomized clustering\n\nforests. In (NIPS), 2006.\n\n[20] M. Pelillo and M. Re\ufb01ce. Learning compatibility coef\ufb01cients for relaxation labeling processes. (PAMI),\n\n16(9):933\u2013945, 1994.\n\n[21] A. Rabinovich, A. Vedaldi, C. Galleguillos, E. Wiewiora, and S. Belongie. Objects in context. In (ICCV),\n\n2007.\n\n[22] N. Razavi, J. Gall, and L. Van Gool. Scalable multi-class object detection. In (CVPR), 2011.\n[23] H. Riemenschneider, S. Sternig, M. Donoser, P. M. Roth, and H. Bischof. Hough regions for joining\n\ninstance localization and segmentation. In (ECCV), 2012.\n\n[24] J. Shotton, M. Johnson, and R. Cipolla. Semantic texton forests for image categorization and segmenta-\n\ntion. In (CVPR), 2008.\n\n[25] Z. Tu. Auto-context and its application to high-level vision tasks. In (CVPR), 2008.\n[26] O. Woodford, M. Pham, A. Maki, F. Perbet, and B. Stenger. Demisting the hough transform for 3d shape\n\nrecognition and registration. In (BMVC), 2011.\n\n9\n\n\f", "award": [], "sourceid": 222, "authors": [{"given_name": "Peter", "family_name": "Kontschieder", "institution": null}, {"given_name": "Samuel", "family_name": "Bul\u00f2", "institution": null}, {"given_name": "Antonio", "family_name": "Criminisi", "institution": null}, {"given_name": "Pushmeet", "family_name": "Kohli", "institution": null}, {"given_name": "Marcello", "family_name": "Pelillo", "institution": null}, {"given_name": "Horst", "family_name": "Bischof", "institution": null}]}