scieee AI-readable full text Open interactive document viewer

Segment tracking via a spatiotemporal linking process including feedback stabilization in an n-d lattice model

Dellen, Babette,Aksoy, Eren Erdal,Wörgötter, Florentin

Abstract

This article is an open-access article distributed under the terms and conditions of the Creative Commons Attribution license.

Full text

Sensors 2009,9, 9355-9379; doi:10.3390/s91109355 OPEN ACCESS sensors ISSN 1424-8220 www.mdpi.com/journal/sensors Article Segment Tracking via a Spatiotemporal Linking Process including Feedback Stabilization in an n-D Lattice Model Babette Dellen 1,2,?, Eren Erdal Aksoy 3and Florentin W¨ org¨ otter 3 1Bernstein Center for Computational Neuroscience G¨ ottingen, Max-Planck Institute for Dynamics and Self-Organization, Bunsenstrasse 10, 37073 G¨ ottingen, Germany 2Institut de Rob` otica i Inform` atica Industrial (CSIC-UPC), Llorens i Artigas 4-6, 08028 Barcelona, Spain 3Bernstein Center for Computational Neuroscience G¨ ottingen, Department for Computational Neuroscience, III. Physikalisches Institut, Georg-August University G¨ ottingen - Biophysik, Friedrich-Hund Platz 1, 37077 G¨ ottingen, Germany; E-Mails: [email protected] (E.A.); wor[email protected] (F.W.) ?Author to whom correspondence should be addressed; E-Mail: [email protected]; Tel.: +49-551-391-0765; Fax: +49-551-397-720. Received: 7 August 2009; in revised form: 5 November 2009 / Accepted: 9 November 2009 / Published: 20 November 2009 Abstract: Model-free tracking is important for solving tasks such as moving-object tracking and action recognition in cases where no prior object knowledge is available. For this purpose, we extend the concept of spatially synchronous dynamics in spin-lattice models to the spatiotemporal domain to track segments within an image sequence. The method is related to synchronization processes in neural networks and based on superparamagnetic clustering of data. Spin interactions result in the formation of clusters of correlated spins, providing an automatic labeling of corresponding image regions. The algorithm obeys detailed balance. This is an important property as it allows for consistent spin-transfer across subsequent frames, which can be used for segment tracking. Therefore, in the tracking process the correct equilibrium will always be found, which is an important advance as compared with other more heuristic tracking procedures. In the case of long image sequences, i.e., movies, the algorithm is augmented with a feedback mechanism, further stabilizing segment tracking. Keywords: model-free segment tracking; image motion; image segmentation Sensors 2009,99356 1. Introduction How can me make sense out of a complex visual scene having no or only little prior knowledge about its contents and the objects therein? Such problems occur, for example, if we wish to learn cause-effects in an hitherto unknown environment. Vice versa, many object definitions are only meaningful within the context of a given scenario and a set of possible actions. Object tracking, i.e., the assignment of consistent labels to objects in different frames of a video, is important for solving various tasks in the field of computer vision, including automatic surveillance, human-computer interaction and traffic monitoring [1]. Most object tracking algorithms require that predefined objects of interests are detected in the first frame or in every frame of the movie. However, in an unknown scenario, the tracking of image segments, presumably representing parts of objects, allows to postpone object definition to a later step of the visual-scene analysis. Several approaches for segment tracking have been proposed in the context of video segmentation [2–9]. Some approaches rely on segmenting each frame independently, e.g., by classifying pixels into regions based on similarity in the feature space, followed by a segment matching step based on their low-level features [2–5]. Other methods use motion projection to link segments, i.e., the position of a segment in a future frame is estimated from its current position and motion features [6–9]. Cremers (2003) tracked motion segments by jointly solving motion segmentation and motion estimation by minimizing a single energy functional [10]. In the works described above, assumptions of the nature of objects being tracked or the data itself is being made either in the tracking procedure itself (matching assumptions) or already in the segmentation step, for example by assuming a priori a data model of some kind. In our work, we aim to reduce a priori assumptions on the data by choosing a data-driven method, i.e., superparamagnetic clustering of data, for the segmentation procedure. Superparamagnetic clustering finds the equilibrium states of a ferromagnetic Potts model defined by an energy function in the superparamagnetic phase [11–17]. The Potts model [11] is a generalization of the Ising model [18] which describes a system of interacting granular ferromagnets or spins, that can be in qdifferent states, characterizing the pointing direction of the respective spin vectors. Depending on the temperature, i.e., disorder introduced to the system, the spin system can be in the paramagnetic, the superparamagnetic, or the ferromagnetic phase. In the ferromagnetic phase, all spins are aligned, while in the paramagnetic phase the system is in a state of complete disorder. In the superparamagnetic phase regions of aligned spins coexists. Blatt et al. (1998) applied the Potts model to the image segmentation problems in a way that in the superparamagnetic phase regions of aligned spins correspond to a natural partition of the image data [15]. Finding the image partition corresponds to the computation of the equilibrium states of the Potts model. Importantly, the energy function used here only consists of interaction terms and does not contain a data term, hence no prior data model needs to be assumed, e.g. total number of segments or a priori defined pixel-label assignments. In this sense, the method is model free. In contrast, methods which find solutions by computing the minimum of an energy function usually require a data term—otherwise only trivial solutions are obtained. Hence, the equilibrium-state approach to the image segmentation problem has to be considered as fundamentally different from approaches finding the minimum energy configuration of energy functions in Markov random fields [19,20]. As a Sensors 2009,99357 consequence, the method is non-parametric and thus more generic, only requiring a pixel-pixel similarity criterium, e.g., gray value, color or texture, to be defined without making any further prior assumptions about the data. The equilibrium states of the Potts model have been approximated in the past using the Metropolis-Hastings algorithm with annealing [21] and the methods on cluster updating, which are known to accelerate the equilibration of the system by shortening the correlation times between distant spins. Prominent algorithms are Swendsen-Wang [22], Wolff [23], and energy-based cluster updating (ECU) [16,17]. In addition, the ECU algorithm has been shown to provide stable segmentation results over a larger temperature range (which is the main control parameter) than Swendsen-Wang [16,17]. All of these methods obey detailed balance, ensuring convergence of the system to the equilibrium state. However, convergence has only been shown to be polynomial for special cases of the Potts model. The Potts model is known to be NP hard in the general case. The relaxation processes which can be emulated in spin-lattice models are often being used as approximations for synchronization processes within neural assemblies [12–17]. In our method, tracking of segments is accomplished through simultaneous segmentation of adjacent frames which are linked using local correspondence information, e.g., computed via standard algorithms for optic flow [24]. By performing motion projection and image segmentation within a single process we do not require any explicit matching of image segments, thus further reducing a priori assumptions that have to be made about the data. Synchronizing the segmentation process of adjacent frames has further the advantage that partitioning instabilities can be reduced. Usually, the segmentation (or partition) of an image is sensitive to global and local changes of the image, i.e., small changes in illumination, the appearance/disappearance of objects parts, causing the partition to change from one frame to the next. To further stabilize segment tracking in the case of long image sequences, we developed a feedback control mechanism, which allows segmentation instabilities, e.g., sudden disappearances of segments, to be detected and removed by adjusting a control parameter of the segmentation algorithm. Thus, the main contribution here is the development of a data-driven, model-free tracking algorithm, i.e., no prior object knowledge is required in order to track image segments from frame to frame. Potential applications include moving object detection and tracking, and action recognition and classification from movies [25]. The paper is structured as follows: In Section 2, we extend the method of superparamagnetic clustering in spin models to the temporal dimension and introduce the controller algorithm. We also discuss the method in front of the background of energy minimization methods in Markov random fields. In Section 3, we first verify the core algorithm using short image sequences because these are more suitable to introduce and test the method. We further investigate the sensitivity of the algorithm to system parameters and noise. Then, we demonstrate that segment tracking can be achieved for real movies. The performance of the method is quantified in terms of partitioning consistency along an artificial image sequence. In Section 4, the results are discussed. 2. Algorithmic Framework Segment tracking can be roughly divided into the following subtasks: (i) image segmentation, (ii) linking (tracking), and (iii) stabilization (tracking). The third point acknowledges that segments, unlike Sensors 2009,99358 objects, are not per se stable entities, but are sensitive to changes in the visual scene. Subtasks (i–ii) will be solved using a conjoint spin-relaxation process emulated in an n-dimensional (n-D) lattice, which defines the core algorithm (Section 2.1). Local correspondence information for linking is obtained using standard algorithms for either stereo or optic flow [24,26]. The conjoint segmentation approach has the advantage that the spin-relaxation processes of adjacent images synchronize, reducing partitioning instabilities. Since simultaneous segmentation of long image sequences is practically impossible due to the high computational costs, we usually split the image sequence into a sequence of pairs. For example, the subsequent frames t0,t1and t2are split into two pairs {t0, t1}and {t1, t2}, where the last frame of previous pair is identical to the first frame of the next pair. If a segment of the last frame of {t0, t1} and a segment of the first frame of {t1, t2}occupy the same image region, we can assign the same segment label to both segments. This way segments can be tracked through the entire sequence. Since the algorithm preserves detailed balance (Section 2.1), spins can be transferred from one frame to the next, greatly reducing the number of iterations required to achieve a stable segmentation. We further stabilize segment tracking by introducing a feedback controller (Section 2.2). In long image sequences, partitioning instabilities are likely to arise at some point during the tracking process. Thus, segments may be lost due to merging or splitting of segments. The feedback controller detects these kind of instabilities and adjusts a control parameter of the core algorithm to recover the original segments. 2.1. Core Algorithm The method of superparamagnetic clustering has been previously used to segment single images [15–17]. Applying this framework to image sequences requires spin interactions to take place across frames. Due camera and object motion the images undergo changes during the course of time. To connect different frames, the mapping from one frame to the next needs to be known at least in some approximation. We solve this problem in the following way: Point correspondences, derived using algorithms for disparity or optic-flow computation, can be incorporated into the Potts model [11] by allowing spins belonging to different frames of the image sequence to interact if the respective pixels belong to locally corresponding image points. Then, spins belonging to the different frames of the sequences are relaxed simultaneously, resulting in a synchronized segmentation of the images of the sequence. The inter-frame spin interactions cause the spins of corresponding image regions to align, and, thus, they will be assigned to the same segment. Since the formation of segments is a collective process, the point correspondences do not have to be very accurate nor does the algorithm require point correspondences for each pixel. It is usually sufficient if the available correspondences capture the characteristics of the scene only roughly. The aim of this work is to find corresponding image regions in image sequences, i.e., stereo pairs and motion sequences. The segment tracking task is formulated as follows. Given an image sequence S containing points p(x, y, t)with coordinates (x, y, t)as elements, where xand ylabel the position within each image, while tlabels the frame number, then we want to find a partitioning P= P 1, .., P Mof S in Mgroups such that Sensors 2009,99359 (i) P i∩ P j= 0 and P i6= Ø for all groups (ii) if point p∈ P i, then s(p, P i)> s(p, P j), where sis a function measuring the average distance of a point to the elements of a group and i6=j (iii) if p(xi, yi, ti)∈ P r, then p(xi+4xi, yi+4yi, ti+ 1) ∈ P r, where 4xiand 4yiare the shifts of point p(xi, yi, ti)along the xand yaxes, respectively, from frame tito frame ti+ 1. To perform this task, we assign a spin variable σi(or label) to each pixel (or site) iof the image sequence. To incorporate constraints in the form of local correspondence information, we distinguish between neighbors within a single frame (2D bonds) and neighbors across frames (n-D bonds). We create a 2D bond (i, k)2Dbetween two pixels within the same frame with coordinates (xi, yi, ti)and (xk, yk, tk)if |(xi−xk)| ≤ ε2D(1) |(yi−yk)| ≤ ε2D(2) ti=tk(3) where ε2Dis the 2D-interaction range of the spins, a parameter of the system. Across frames, we create a n-D bond (i, j)nD between two spins iand jif |(xi+dx ij −xj)| ≤ εnD (4) |(yi+dy ij −yj)| ≤ εnD (5) ti6=tj(6) aij > τ (7) where εnD is the n-D interaction range. The values dx ij and dy ij are the shifts of the pixels between frames tiand tjalong the axis xand y, respectively, obtained from the optic-flow map or disparity map. The parameters aij ∈[0,1] are the respective amplitudes (or confidences) of the optic-flow or stereo algorithm. A large amplitude suggests a large confidence in the computed local correspondence. Parameter τis a threshold, removing all local correspondences having a small amplitude. We define for every bond on the lattice the distance 4ij =|gi−gj|(8) where giand gjare the feature vectors, e.g., gray value, color, or texture, of the pixels iand j, respectively. The mean distance ¯ 4is obtained by averaging over all bonds. We further define an interaction strength Jij = 1 − 4ij /¯ 4(9) Sensors 2009,99360 The spin model is now implemented such a way that neighboring spins with similar color have the tendency to align. We use a q-state Potts model [11] with the Hamiltonian H=−X hiki2D Jikδ(σi−σk)−X hijinD Jijδ(σi−σj)(10) Here, hiki2Dand hijinD denote that i, k and i, j are connected by bonds (i, k)2Dand (i, j)nD, respectively. The Kronecker δfunction is defined as δ(a) = 1 if a= 0 and zero if otherwise. The segmentation problem is then solved by finding clusters of correlated spins in the low temperature equilibrium states of the Hamiltonian H. The temperature parameter determines the amount of disorder introduced to the system. The spin states have to be observed over several iterations to identify clusters as groups of correlated spins. The total number Mof segments is then determined by counting the computed segments. The spin states σican take integer values between 1and q, where qis a parameter of the algorithm. The number of segments is not constrained by the parameter q. Please note that segment labels are not identical to spin states. Spins which belong to the same segment are always in the same spin state, however, the reverse is not necessarily true. Note that the local correspondences used in the algorithm to create n-D bonds are precomputed and are not altered or optimized when computing the equilibrium state. The computation of local correspondences is not the aim of this paper. We find the equilibrium spin configuration using a clustering algorithm. In a first step, “satisfied” bonds, i.e., bonds connecting spins having identical spin values σi=σj, are identified. Then, in a second step, the satisfied bonds are “frozen” with a some probability Pij. Pixels connected by frozen bonds define a cluster, which are updated by assigning to all spins inside the same clusters the same new value [22]. In the method of superparamagnetic clustering proposed by Blatt et al. (1996) [15] this is done independently for each cluster. In this paper, we will employ the method of energy-based cluster updating (ECU), where new values are assigned in consideration of the energy gain calculated for a neighborhood of the regarded cluster [16,17]. A schematic of the spin system of an image sequence is depicted in Figure 1A. The ECU algorithm computing the equilibrium of Hconsists of the following steps: 1. Initialization: A spin value σibetween 1 and qis assigned randomly to each spin i. Each spin represents a pixel of the image sequence. 2. Computing bond freezing probabilities: If two spins iand jare connected by a bond and are in the same spin state σi=σj, then the bond is frozen with a probability Pij = 1 −exp(−0.5Jij/T)(11) Negative probabilities are set to zero. 3. Cluster identification: Pixels which are connected by frozen bonds define a cluster. A pixel belonging to a cluster uhas by definition no frozen bond to a pixel belonging to a different cluster v. Sensors 2009,99361 4. Cluster updating: We perform a Metropolis update [22,27] that updates all spins of each cluster simultaneously to a common new spin value. The new spin value for a cluster cis computed considering the energy gain obtained from a cluster update to a new spin value wk, where the index kdenotes the possible spin values between 0and q, respectively. Note that this new spin value is, once chosen, a constant and has to be distinguished from the spin variables σi. Updating the respective cluster to the new value results in a new spin configuration Wc k. Figure 1. A The spin states (upward and downward pointing arrows) of pixels i,k, and jare shown before and after a spin update for two adjacent frames tand t+1 of an image sequence. The white and black circles indicate pixels of small and large gray values, respectively. Pixel iinteracts with pixels kand jin its 2D and 3D neighborhood (shaded areas), respectively, which are in the same spin state. BPairwise (3D) segmentation of movies. A feedback controller detects segmentation instabilities and adjusts the control parameter Tof the core algorithm (3D segmentation) to recover lost segments. d Framet Frame t+1 Before Update After Update ij i i j k k 3D 2D A B j Controller 3D Segmentation Frame number T The probability for the choosing the new spin value wkfor cluster c is computed by considering the interactions of all spins in the cluster cwith those outside the cluster, assuming that all spins of the cluster are updated to the new spin value wk, giving an energy E(Wc k) = X i∈c£−X hiji2D ck6=cj ηJijδ(σi−σj)−X hijinD ck6=cj ηaijJij δ(σi−σj)¤ (12) Sensors 2009,99362 where hiki2D, ck6=cjand hijinD, ck6=cjare the noncluster neighborhoods of spin i. Here, Nis the total number of pixels of the image sequence. The constant ηis chosen to be 0.5. Similar to a Gibbs sampler, the selecting probability P(Wc k)for choosing the new spin value to be wkis given by P(Wc k) = exp(E(Wc k))/ q X l=1 exp(E(Wc l)) (13) 5. Iteration: The new spin states are returned to step 2 of the algorithm, and steps 2–5 are repeated, until the total number of clusters stabilizes, i.e., the change of the number of clusters is small compared to the change of the number clusters during the first ten iterations (see also Figure 5F). In practice, we usually use a fixed number of iterations. 6. Segments are defined as groups of correlated spins and can be extracted using a thresholding procedure. All pairs of pixels connected by a bond (i, j)with c(σi, σj)> θ are considered to be friends, i.e., they must belong to the same segment. The function ccomputes the correlation of the spin states of iand jover several iterations. Then, all mutual friends are assigned to the same segment. Finally, Mis determined by counting the total number of segments. In practice, we find it sufficient to take the clusters found in the last iteration as segments. In an earlier study we had provided evidence that this algorithm obeys detailed balance. The full proof shall not be repeated here and can be found in [16]. Detailed balance assures that the proposed algorithm computes an equilibrium spin configuration of the energy function and that this is Boltzmann distributed. However, the equilibrium might not be found in polynomial time (see Section 2.3). The consequence of detailed balance is that spin states can be transferred across image pairs, where spins are being calculated for one pair (the first pair) and then pixels in the next two frames (the second pair) are just assigned these spins from where on a new relaxation process starts (see Figure 5for an example). Hence, the relaxation process for the second pair (and all to follow) is much faster when using spin transfer and the system will always arrive at the thermodynamic equilibrium making spin-transfer based segmentation concordant across frames. Note, this property allows consistent segment tracking across many frames without additional assumptions (see Figure 5), which requires more effort with other methods. The following should be noted. In this method, bonds between adjacent frames are created from the precomputed optic-flow or disparity maps and frozen with a probability that depends on the feature similarity of the respective corresponding pixels. Whether these bonds are frozen in the final configuration (i.e., the respective proposed point correspondences are accepted), and thus promote the formation of a certain segment correspondence, is decided inherently by finding the equilibrium state of Equation 10. This procedure makes the method more robust against errors in the optic-flow or disparity map. 2.2. Feedback Control Segmentation instabilities arising during the tracking process can be partly removed by adjusting the temperature parameter of the core algorithm. The temperature choice affects the formation of segments, Sensors 2009,99363 hence, a segment which has been lost in a previous frame can sometimes be recovered by increasing the temperature for a certain period. The feedback controller tracks the size of the segments and reacts if the size of a segment changes suddenly. The first controller function Pj C(t) =    1if 4Sj(t)< τ1, exp [−4Sj(t)/α]/β otherwise,(14) measures the probability of change of segment j, where Sj(t)is the size of segment jat frame tand 4Sj(t) = Sj(t)−Sj(t−1), and α,β,τ1are constant parameters. The history of segment jin terms of occurrence is captured by the second controller function Pj H(t) = 0.4Hj(t−1) + 0.3Hj(t−2) + 0.2Hj(t−3) + 0.1Hj(t−4) (15) with Hj(t) = 1 if Sj(t)>0and zero otherwise. Segmentation instabilities may cause a segment to be lost, for example through segment merging or splitting. We define two threshold parameters τ2and τ3. An unexpected segment loss is detected by the controller if the conditions Sj= 0 (16) PC< τ2(17) and PH> τ3(18) are fulfilled. An unexpected segment appearance is detected by the controller if the conditions PC< τ2(19) and PH< τ3(20) are fulfilled. The identities of the affected segments are stored by the controller. The temperature of the core algorithm is varied using predefined temperature steps 4T. The segmentation is repeated at the new temperature T+4Tonly for the affected segments of the frames. If the lost segments can be recovered at one of these temperatures, the affected segments are relabeled accordingly. Furthermore, the new temperature T+4Tvalues of the affected segments are inherited to the next frame in order to prevent the same segmentation error. Note that the temperature value can be increased to a predefined maximum value, otherwise undesired artifacts might be observed. A schematic of the entire system, i.e., core algorithm with feedback control, is presented in Figure 1B. 2.3. Comparison with Energy-Minimization-Based Methods in Markov Random Fields The method described in this paper is compared with energy minimization in Markov random fields. Similarities and differences of the approaches are analyzed and summarized in this section. Particular attention is given to combinatorial graph cuts methods, which have provided powerful computer vision algorithms for stereo, motion, image restoration, and image segmentation in recent years [19,20]. Sensors 2009,99370 Figure 5. A Three frames of a walking sequence, labeled t0,t1, and t2, respectively. B Optic-flow vectors coding the mapping from frame t0to t1, and t1to t2.CSpin states after 100 iterations. DSpin states for a sequence consisting of frames t0and t1.ESpin states for a sequence consisting of t1and t2.FThe number of clusters as a function of the iteration number for the first sequence containing frame t0and t1(dashed line) and for the second sequence containing frame t1and t2(solid line). GEnlarged plot of the second sequence. t t t0 1 2 A 0 20 40 60 80 0.5 1 1.5 2 2.5 3x104 Iteration 0 20 40 60 80 0.49 0.5 0.51 0.52 x10 Number of clusters B C D E FG t0 t1 4 Number of clusters Iteration When analyzing long motion sequences, it is inefficient to apply the algorithm to all frames at once because the computational costs increase with the number of pixels. Hence, we split the sequences in Sensors 2009,99371 pairs of two frames at a time, where the last frame of the previous sequence is identical with the first frame of the next sequence. Then, we initialize the spin states of each sequence with the final spin states of the previous sequence. The spin states for the first sequence containing frame t0and t1after 100 iterations are shown in Figure 5D. Then, the algorithm is applied to the next pair, containing frame t1and t2, where the spin states of both frame have been initialized to the final spin states of frame t1 of the previous sequence. The spin states after 13 iterations are shown in Figure 5E, demonstrating that the number of iterations required to achieve a satisfying segmentation result is greatly reduced by this technique. The number of clusters for the first sequence and the second sequence are displayed as a function of the iteration number in Figure 5F, dashed and solid line, respectively. The number of clusters for the second sequence is plotted as a function of the iteration number at a different scale (Figure 5G). Initially, the number of clusters decreases slightly and then approaches a stable state. In a motion sequence, the number of clusters is expected not to change much from one frame to the next. Mainly the boundaries of the clusters reorganize during the first iterations. The segments of adjacent image pairs are connected as follows. Two segments belonging to the segmentation of frame t1of pair {t0, t1}and frame t1of pair {t1, t2}, respectively, are assigned the same label if they occupy the same region in image frame t1. For this purpose, we compute the percentage of the cluster areas which overlap in the image space. If the overlap is larger than a fixed threshold, the clusters are assigned the same label. This way we can track the segment through the whole sequence. 3.2. Segment Tracking with Feedback Stabilization We add feedback control (see Section 2.2) with parameters α= 200 pixels, β= 0.8,τ1= 50 pixels, τ2= 0.9, and τ3= 0.6to the core algorithm with temperature T= 0.05 and apply the algorithm to long image sequences. The first movie shows a hand taking a red apple from a plate with several fruits. A few frames of the movie are depicted in the upper panel of Figure 6A. If the core algorithm is applied at constant temperature without feedback control, the red segment and the light pink segment, representing the respective parts of the red apple and the orange, are lost at frame number 45 due a segmentation instability: The red segment and the light pink segment merge and form a new segment, colored in light blue (see Figure 6A, middle panel). If feedback control is included, this segmentation instability is detected and the original segments can be recovered by increasing the temperature in steps of 4T= 0.15. As a consequence, the segments can be continuously tracked, as shown in Figure 6A (lower panel). The segments representing the cup could be recovered using the same mechanism. The work of the feedback controller is further illustrated in Figure 6B, where the segment size is plotted as a function of the frame number for the segments representing the red apple and the orange without and with feedback control, depicted as red, blue, brown and green lines, respectively. At frame number 45 the segment sizes of the red apple and the orange drop unexpectedly to zero (red and blue lines), thus indicating a segmentation instability (see Section 2.2). As a consequence, the feedback controller is activated and the temperature of the core algorithm is increased until the original segments are recovered (brown and green lines). The results for the whole movie are shown in Figure 7A. We further applied the algorithm to another movie, showing the filling of a cup with sugar (Figure 7B). The movie is challenging because it contains light reflexions and changing shadows. However, the algorithm is capable of tracking the main segments of the movie, i.e., the two cups and the hand. Sensors 2009,99372 Figure 6. Feedback control for segmentation stabilization. AA few frames of a movie showing a hand taking a red apple from a plate are shown together with the results of the core algorithm without and with feedback control (upper, middle, and lower panel, respectively). BThe segment size is plotted as a function of the frame number for the segments representing the red apple and the orange without and with feedback control, depicted as red, blue, brown and green lines, respectively. At frame number 45 the segment sizes of the red apple and the orange drop unexpectedly to zero (red and blue lines), and the feedback control is activated, increasing the temperature Tuntil the original segments are recovered (brown and green lines). 0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 0 100 200 300 400 500 600 700 800 Frame Number Segment size [number of pixels] Feedback control activated Red apple (no feedback) Red apple (with feedback) Orange (no feedback) Orange (with feedback) A B We obtained similar segment-tracking results for other real movies, e.g., Moving Object, Making Sandwich, Opening a Book. Results can be found at http://www.nld.ds.mpg.de/∼eren/Movies.html. Sensors 2009,99373 Figure 7. Segment tracking for real movies. AThe algorithm (with feedback control) is applied to a movie showing a hand taking an apple from a plate (upper panel). The corresponding segment-tracking results are depicted below. BThe results of the algorithm (with feedback control) for a movie showing the filling of a cup are shown. Segment-tracking results for other real movies can be found at http://www.nld.ds.mpg.de/∼eren/Movies.html/. A B We use an artificial image sequence to demonstrate that both 3D linking and feedback control improve consistency of the partitioning into segments of adjacent frames. The original image consists of 4×4 uniformly-valued squares. By adding Gaussian noise to the image, we create an image sequence of 40 frames (see Figure 8A). We apply the algorithm at T= 0.1(i) without 3D linking and without feedback, (ii) with 3D linking and without feedback, and (iii) with 3D linking and with feedback. Example segmentation results are presented in Figure 8B. For case (i), the partitioning is often changing from frame to frame. The labels of adjacent frames only correspond to each other by chance, since no linking in 3D is employed (independent segmentations). For case (ii), the partitioning is more stable, but breaks Sensors 2009,99374 still occur frequently. These breaks can be largely prevented by feedback control. We quantify the stability of adjacent image partitions by computing the spatial gradient for each segmented frame. We find a partition boundary if the gradient is larger than zero. The partition-boundary images of adjacent frames are then subtracted, the absolute value is taken, and the sum is computed over all pixels, which we call here the partition error. In Figure 8C, the histograms of the partition error over the whole sequence are shown for all three cases (i-iii) with mean partition errors (averaged over all frames) of 35.72,19.44, and 2.59, respectively. Figure 8. Improving partitioning consistency using 3D linking and feedback control. A From the original image consisting of 4×4uniformly-valued squares, a static image sequence is created by adding Gaussian noise to each frame. BSegmentation results for our algorithm without 3D linking (no tracking), with 3D linking, and with both 3D linking and feedback control. CRespective histograms showing the number of frames as a function of the partition errors (see text). 0 20 40 60 80 0 5 10 15 20 25 30 35 0 20 40 60 80 0 5 10 15 20 25 30 35 0 20 40 60 80 0 5 10 15 20 25 30 35 A B C 2D 3D 3D + feedback 18 19 20 21 22 15 16 17 Frame 3D + feedback 3D 2D Partition error [pixels] Number Number Number Sensors 2009,99375 4. Discussion We presented an algorithm for model-free segment tracking based on a novel, conjoint framework, combining local correspondences and image segmentation to synchronize the segmentation of adjacent images. The algorithm provides a partitioning of the image sequence in segments, such that points in a segment are more similar to each other than to points in another segment, and such that corresponding image points belong to the same segment. We tested the method on various synthetic and real image sequences, and showed stable and reliable results overall, thus fulfilling the most important requirement of segmentation algorithms. The method leads to the formation of stable region correspondences despite largely incomplete disparity or optic-flow maps. Similar algorithms for the extraction of region correspondences could potentially be constructed using other image segmentation algorithms, i.e., methods based on agglomerative clustering [36,37]. We decided to use physics-based model for its conceptual simplicity which allowed us to integrate local correspondence information in a straightforward way. It further has the advantage that the interacting parts are inherently converging to the equilibrium state and thus are not being trapped in local extrema (detailed balance). As a consequence, the result is independent of the initial conditions, allowing us to apply the algorithm to long image sequences via spin-states transfer. This allows for consistent segment tracking across many frames without additional assumptions, which is most of the time not immediately possible with other methods. In addition, no assumptions about the underlying data are required, e.g. the number of segments, leading to a model-free segmentation. This has the consequence that a single pixel of distinct gray value (compared to its neighbors) might define a single segment. In algorithms, which partition the image into a fixed and usually small number of segments, this phenomenon does not occur. This, however, is a problem as in all realistic situations one never knows how many segments exist and self-adjustment of the total number of segments is, thus, usually desired as compared to a pre-defined maximal number. We further introduced a feedback controller which allows to detect segmentation instabilities, i.e., merging and splitting of segments. The feedback controller adjusts the control parameter of the core algorithm in order to recover the original segments. This allows keeping track of segment even in long movies. Segment tracking has been performed previously in the context of video segmentation [2–9]. Our method differs from these approaches in the choice of the segmentation algorithm, the way linking is achieved, and the addition of a feedback controller which detects segmentation instabilities. Superparamagnetic clustering allows a model-free unsupervised segmentation of the image sequences, including a self-adjustment of the total number of segments. Linking is introduced trough local correspondence information which synchronizes the spin-relaxation process of adjacent images. This approach has the advantage that the partitions of adjacent images are less prune to partitioning instabilities (see also Figure 8). Further, our method does not require corresponding regions to fulfill any segment similarity criterium. Finally, feedback control allows segmentation instabilities occurring in long sequences to be removed by assuming that “good” segments change their size in a continuous “predictable” manner. Sensors 2009,99376 There have been a few other approaches combining image segmentation with correspondence information. The work by Toshev et al. [38] uses a joint-image graph containing edges representing intra-image similarities and inter-image feature matches to compute matching regions. Joint segmentation has also been employed by Rother et al. [39] using histogram matching. The controller employed in this model serves the detection and removal of segmentation instabilities. No assumptions about the objects giving rise to the measurements, i.e., segments, are made here, except from that they cannot appear and disappear all of a sudden (object constancy) and are thus in some way predictable. Predictable behavior of objects provides the basis for tracking methods using optimal filters such as the Kalman filter [40], interacting multiple models [41], or particle filters [42]. In these cases however stronger assumptions about the nature of the objects are being made. Both some knowledge of the dynamics of objects (as then reflected by the measurements) and their appearance is assumed [43]. In the context of specific applications as for example the tracking of moving objects, Kalman-filter-based motion could potentially be combined with our method. Kumar et al. (2006) proposed a method for multitarget tracking in which blobs, i.e., connected regions obtained from segmenting moving foreground objects via a background substraction method, are tracked with a Kalman filter while handling splits and merges between blobs. Certain elements of this approach may provide a means for further advancing the segment-tracking procedure described in this paper. The method described here is related to energy minimization in Markov random fields which has been used to solve vision problems many times before [19,29,44–47] (see also Section 2.3). While the algorithmic procedures used to find the energy minimum share features with the ones employed by our method, fundamental differences exist between the methods. Superparamagnetic clustering aims at finding the equilibrium states of a Potts model without external field or data energy term at a certain temperature, and not a global energy minimum. Formulating vision problems in terms of energy minimization requires a data penalty term (or external field), necessitating some prior knowledge about the data that is being modeled. Hence, the solutions have to be considered less generic and quite different to ours by nature. The algorithm has potential applications in model-free moving object detection and tracking by merging coherently moving segments (Gestalt law of common fate). The method is further applicable to action-recognition tasks, where certain characteristic action patterns are inferred from the spatiotemporal relationships of segments. First results for this problem are reported in [25]. In the future, texture cues may be incorporated into the algorithm to allow tracking of segments defined by texture. Currently, the algorithm requires ≈4-5s per frame for images of size 160×140 pixels and ≈43 s per frame for images of size 360 ×240 pixels (Taking-an-apple sequence) on an Intel Dual Core CPU with 3.16 GHz RAM (for each core). Since our goal is the development of a vision-front end for real-time video segment tracking on top of which other algorithms, i.e., moving-object detection/tracking and action recognition, can be applied, we are currently investigating ways to improve computation time. Faster processing on a CPU could be achieved by improving the cluster identification step using a faster algorithm [48] and by applying the algorithm not to the pixels itself, but to atomic regions obtained from Canny edge detection followed by edge tracing and contour closing. The latter technique has been used before to improve speed in energy minimization [29]. Furthermore we are currently developing a parallel implementation on GPUs. So far, we reached frame rates between ≈10 −23 frames/s for images of Sensors 2009,99377 size 360 ×240 pixels (certain algorithmic procedures of the method have been replaced by alternative computation schemes to match the requirements of the parallel architecture). Acknowledgment We thank Sinan Kalkan for valuable discussion. The work has received support from the German Ministry for Education and Research (BMBF) via the Bernstein Center for Computational Neuroscience (BCCN) G¨ ottingen under Grant No. 01GQ0430 and the EU Project PACO-PLUS under Contract No. 027657. References 1. Yilmaz, A.; Javed, O.; Shah, M. Object tracking: a survey. ACM Comput. Surv. 2006,38, 1–45. 2. Choi, J.G.; Lee, S.W.; Kim, S.D. Spatio-temporal video segmentation using a joint similarity measure. IEEE Trans. Circuits Syst. Video Technol. 1997,7, 279–286. 3. Salembier, P.; Marques, F. Region-based representations of image and video: Segmentation tools for multimedia services. IEEE Trans. Circuits Syst. Video Technol. 1999,9, 1147–1169. 4. Tuncel, E.; Onural, L. Utilization of the recursive shortest spanning tree algorithm for video-object segmentation by 2-D affine motion modeling. IEEE Trans. Circuits Syst. Video Technol. 2000, 10, 776–781. 5. Deng, Y.; Manjunath, B.S. Unsupervised segmentation of color-texture regions in images and video. IEEE Trans. Pattern Anal. Machine Intell. 2001,23, 800–810. 6. Patras, L.; Hendriks, E.A.; Lagendijk, R.L. Video segmentation by MAP labeling of watershed segments. IEEE Trans. Pattern Anal. Machine Intell. 2001,23, 326–332. 7. Yokoyama, Y.; Miyamoto, Y.; Ohta, M. Very low bit rate video coding using arbitrarily shaped region-based motion compensation. IEEE Trans. Circuits Syst. Video Technol. 1995,5, 500–507. 8. Wang, D. Unsupervised video segmentation based on waterheds and temporal tracking. IEEE Trans. Circuits Syst. Video Technol. 1998,8, 539–546. 9. Mezaris, V.; Kompatsiaris, I.; Strintzis, M.G. Video object segmentation using Bayes-based temporal tracking and trajectory-based region merging. IEEE Trans. Circuits Syst. Video Technol. 2004,14, 782–795. 10. Cremers, D. A variational framework for image segmentation combining motion estimation and shape regularization. In Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Madison, WI, USA, 2003; pp. 53–58. 11. Potts, R.B. Some generalized order-disorder transformations. Proc. Cambridge Philos. Soc. 1952, 48, 106–109. 12. Geman, D.; Geman, S.; Graffigne, C.; Dong, P. Boundary detection by constrained optimization. IEEE Trans. Patt. Anal. Mach. Int. 1990,12, 609–628. 13. Vorbr¨ uggen, J.C. Zwei Modelle zur datengetriebenen Segmentierung visueller Daten. Harri Deutsch: Frankfurt am Main, Germany, 1995. Sensors 2009,99378 14. Eckes, C.; Vorbr¨ uggen, J.C. Combining data-driven and model-based cues for segmentation of video sequences. In Proceedings of WCNN World Conference on Neural Networks, San Diego, CA, USA, 1996. 15. Blatt, M.; Wiseman, S.; Domany, E. Superparametric clustering of data. Phys. Rev. Lett. 1996, 76, 3251–3254. 16. Opara, R.; W¨ org¨ otter, F. A fast and robust cluster update algorithm for image segmentation in spin-lattice models without annealing – visual latencies revisited. Neural Comput. 1998, 10, 1547–1566. 17. von Ferber, C.; W¨ org¨ otter, F. Cluster update algorithm and recognition. Phys. Rev. E 2000, 62, 1461–1664. 18. Ising, E. Beitrag zur Theorie des Ferromagnetismus. Zeitschrift f¨ ur Physik 1925,31, 253–258. 19. Boykov, Y.; Veksler, O.; Zabih, R. Fast Approximate Energy Minimization via Graph Cuts. IEEE Trans. Patt. Anal. Mach. Int. 1999,23, 2001. 20. Boykov, Y.; Kolmogorov, V. An experimental comparison of min-cut/max-flow algorithms for energy minmization in vision. IEEE Trans. PAMI 2004,26, 1124–1137. 21. Geman, D.; Geman, S. Stochastic relaxation, Gibbs distributions, and the Bayesian restoration of images. IEEE Trans. Patt. Anal. Mach. Int. 1984,6, 721–741. 22. Swendsen, R.; Wang, S. Nonuniversal critical dynamics in Monte Carlo simulations. Phys. Rev. Lett. 1987,76, 86–88. 23. Wolff, U. Collective Monte Carlo updating for spin systems. Phys. Rev. Lett. 1989,62, 361–364. 24. Barron, J.L.; Fleet, D.J.; Beauchemin, S.; Burkitt, T. Performance of optical flow techniques. Int. J. Comput. Vis. 1994,12, 43–77. 25. Aksoy, E.E.; W¨ org¨ otter, F.; Dellen, B. Recognizing object-action relations from semantic scene graphs. 2009, submitted. 26. Sabatini, S.P.; Gastaldi, G.; Solari, F.; Diaz, J.; Ros, E.; Pauwels, K.; Hulle, K.M.M.V.; Pugeault, N.; Kr¨ uger, N. Compact and Accurate Early Vision Processing in the Harmonic Space. In Proceedings of International Conference on Computer Vision Theory and Applications (VISAPP), Barcelona, Spain, 2007. 27. Metropolis, N.; Rosenbluth, A.W.; Rosenbluth, A.H.T.; Teller, E. Equations of state calculations by fast computing machines. J. Chem. Phys. 1953,21, 1087–1091. 28. Felzenszwalb, P.; Huttenlocher, D.P. Efficient Belief Propagation for Early Vision. In Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Washington, DC, USA, 2004; pp. 261–268. 29. Barbu, A.; Zhu, S.C. Generalizing Swendson-Wang to sampling arbitrary posterior probabilities. Trans. Pattern Anal. Mach. Intell. 2005,27, 1239–1253. 30. Wolff, U. Collective monte carlo updating for spin systems. Phys. Rev. Lett. 1989,62, 361–364. 31. Cooper, C.; Frieze, A.M. Mixing properties of the Swendsen-Wang process on certain classes of graphs. Random Struct. Algorithm. 1999,15, 241–261. 32. Gore, V.K.; Jerrum, M.R. The Swendsen-Wang Process Does Not Always Mix Rapidly. ACM: El Paso, TX, USA, 1996; pp. 674–681. Sensors 2009,99379 33. Onsager, L. Crystal Statistic. I. Two-dimensional model with an order-disorder transition. Phys. Rev. 1944,64, 117–149. 34. Lucas, B.D.; Kanade, T. An iterative image registration technique with an application to stereo vision. In Proceedings of DARPA IU Workshop, Pittsburgh, PA, USA, 1981, pp. 121–130. 35. Dellen, B.; W¨ org¨ otter, F. A local algorithm for the computation of optic flow via constructive interference of global Fourier components. In Proceedings of British Machine Vision Conference, Leeds, UK, 2008, Vol. 2, pp. 795–804. 36. Ward, J.H. Hierarchical grouping to optimize an objective function. J. Am. Statistical Assoc. 1963, 58, 236–244. 37. Fr¨ anti, P.; Virmajoki, O.; Hautama¨ aki, V. Fast agglomerative clustering using a k-nearest neighbor graph. IEEE Trans. Pattern Anal. Mach. Intell. 2006,28, 1875–1881. 38. Toshev, A.; Shi, J.; Daniilidis, K. Image matching via saliency region correspondences. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, Minneapolis, MN, USA, 2007. 39. Rother, C.; Minka, T.; Blake, A.; Kolmogorov, V. Cosegmentation of Image Pairs by Histogram Matching - Incorporating a Global Constraint into MRFs. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, Washington, DC, USA, 2006; pp. 993–1000. 40. Kalman, R.E. A new approach to linear filtering and prediction problems. J. Basic Eng. 1960, 82, 35–45. 41. Mazor, E.; Averbuch, A.; Bar-Shalom, Y.; Dayan, J. Interacting multiple model methods in target tracking: A survey. IEEE Trans. Aerosp. Electron. Syst. 1998,34, 103–123. 42. Arulampalam, M.; Maskell, S.; Gordon, N.; Clapp, T. A tutorial on particle filters for online nonlinear/nonGaussian bayesian tracking. IEEE Trans. Signal Process. 2002,50, 174–188. 43. Kumar, P.; Ranganath, S.; Sengupta, K.; Weimin, H. Cooperative Multitarget Tracking With Efficient Split and Merge Handling. IEEE Trans. Circ. Syst. Video. T. 2006,16, 1477–1490. 44. Greig, D.; Porteous, B.; Seheult, A. Exact maximum a posteriori estimation for binary images. Appl. Stat.-J. Roy. Stat. Soc. B 1989,31, 271–279. 45. Ferrari, P.; Frigessi, A.; de Sa, P. Fast approximate maximum a posteriori restoration of multicolour images. Appl. Stat.-J. Roy. Stat. Soc. B 1995,57, 485–500. 46. Roy, S.; Cox, I. A maximum-flow formulation of the n-camera stereo correspondence problem. In Proceedings of International Conference on Computer Vision, Bombay, India, 1998. 47. Ishikawa, H.; Geiger, D. Occlusions, discontinuities, and epipoloar lines in stereo. In Proceedings of European Conference on Computer Vision, Freiburg, Germany, 1998; pp. 232–248. 48. He, L.; Chao, Y.; Suzuki, K.; Wu, K. Fast connected-component labeling. Pattern Recognit. 2009, 42, 1977–1987. c °2009 by the authors; licensee Molecular Diversity Preservation International, Basel, Switzerland. This article is an open-access article distributed under the terms and conditions of the Creative Commons Attribution license http://creativecommons.org/licenses/by/3.0/.