usage:tracking_algorithm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
usage:tracking_algorithm [2019/08/07 21:41] – [Appendix: Normalisation of correlated displacement spaces] pseudomoanerusage:tracking_algorithm [2019/08/19 15:30] (current) – [Appendix: Normalisation of correlated displacement spaces] pseudomoaner
Line 8: Line 8:
 ===== A note on notation ===== ===== A note on notation =====
  
 +Throughout this page, the term `feature' will be used in a generic sense. It can in principle be applied to any quantitative property of an object, however in FAST's default state the set of features is restricted to object centroid ($x$,$y$), length, width, area, orientation, and the mean and standard deviation of the pixel intensities associated with the object in each imaging channel. These are the features available for measurement using the [[usage:feature_extraction|feature extraction]] module. Following measurement, these features are stored as a feature vector $\mathbf{f}_{t,i}$ for object $i$ in frame $t$. In subsequent sections, the subscript $i$ will generally be omitted for brevity. Depending on context, $\mathbf{f}_{t}$ will also sometimes be expressed as $f_{t,\phi}$, allowing explicit indexing over each feature $\phi$.
 ===== The challenge of tracking ===== ===== The challenge of tracking =====
  
Line 36: Line 37:
 <imgcaption Fig2|Flowchart of major elements of the feature tracking algorithm. Different versions of the feature space (raw, $\mathbf{f}$, regularised, $\bar{\mathbf{f}}$ and normalised, $\hat{\mathbf{f}}$) are indicated at the points in the algorithm at which they are generated.>{{ :usage:trackingflowchart.png?500 }}</imgcaption> <imgcaption Fig2|Flowchart of major elements of the feature tracking algorithm. Different versions of the feature space (raw, $\mathbf{f}$, regularised, $\bar{\mathbf{f}}$ and normalised, $\hat{\mathbf{f}}$) are indicated at the points in the algorithm at which they are generated.>{{ :usage:trackingflowchart.png?500 }}</imgcaption>
  
-FAST adopts a two pronged approach to tracking (<imgref Fig2>). The first prong is to make all features directly comparable by shifting and rescaling $\mathbf{f}$ to generate the **normalised feature space** $\hat{\mathbf{f}}_t$. The corresponding \textbf{normalised displacement space} $\Delta \hat{\mathbf{f}}_t$ is isotropic and zero-centred, resolving the problems of feature drift and anisotropy. $\Delta \hat{\mathbf{f}}_t$ is normalised on a frame-by-frame basis, allowing dynamic changes in the statistical properties of features to be captured and accounted for.+FAST adopts a two pronged approach to tracking (<imgref Fig2>). The first prong is to make all features directly comparable by shifting and rescaling $\mathbf{f}$ to generate the **normalised feature space** $\hat{\mathbf{f}}_t$. The corresponding **normalised displacement space** $\Delta \hat{\mathbf{f}}_t$ is isotropic and zero-centred, resolving the problems of feature drift and anisotropy. $\Delta \hat{\mathbf{f}}_t$ is normalised on a frame-by-frame basis, allowing dynamic changes in the statistical properties of features to be captured and accounted for.
  
 The second prong is to adaptively vary the detection threshold to account for variations in system density and feature usefulness. To assist in this second task, the concept of feature **reliability** is introduced. This is a joint measure of the noise associated with each feature and the range of values it can take, and represents the usefulness of each feature for distinguishing different link options in the normalised displacement space. Reliability can be combined across features to give a single **trackability** score for each timepoint. This is a user-directed heuristic measure of dataset quality which can be used for quality control and automated purging of low-quality sections of tracking datasets. The second prong is to adaptively vary the detection threshold to account for variations in system density and feature usefulness. To assist in this second task, the concept of feature **reliability** is introduced. This is a joint measure of the noise associated with each feature and the range of values it can take, and represents the usefulness of each feature for distinguishing different link options in the normalised displacement space. Reliability can be combined across features to give a single **trackability** score for each timepoint. This is a user-directed heuristic measure of dataset quality which can be used for quality control and automated purging of low-quality sections of tracking datasets.
Line 42: Line 43:
 At the core of the FAST tracking algorithm is a machine learning protocol that automatically determines the necessary dataset statistics. A training set of object links is first created using a high stringency, classical tracking algorithm. This training set is then used to estimate the reliability of each feature and the trackability of the dataset, as well as the values of $\mathbf{\mu}_t$ and $\mathbf{\Sigma}_t$. These statistics are then used to generate $\Delta \hat{\mathbf{f}}_t$ and to calculate the adaptive threshold for each timepoint. At the core of the FAST tracking algorithm is a machine learning protocol that automatically determines the necessary dataset statistics. A training set of object links is first created using a high stringency, classical tracking algorithm. This training set is then used to estimate the reliability of each feature and the trackability of the dataset, as well as the values of $\mathbf{\mu}_t$ and $\mathbf{\Sigma}_t$. These statistics are then used to generate $\Delta \hat{\mathbf{f}}_t$ and to calculate the adaptive threshold for each timepoint.
  
-For simplicity, I will here limit the description of the tracking algorithm to the case that $\mathbf{\Sigma}_t$ is diagonal, //i.e.// that all features are independent from each other. Extension of the algorithm to the case where correlations exist between features is fairly simple, and is provided in the final section. This is the version of the algorithm employed by the full version of FAST. However, as we will see, the assumption of feature independence makes the role of each mathematical operation easier to understand.+For simplicity, I will here limit the description of the tracking algorithm to the case that $\mathbf{\Sigma}_t$ is diagonal, //i.e.// that all features are independent from each other. Extension of the algorithm to the case where correlations exist between features is fairly simple, and is provided in the [[usage:tracking_algorithm#appendixnormalisation_of_correlated_displacement_spaces|final section]] of this page. This is the version of the algorithm employed by the full version of FAST. However, as we will see, the assumption of feature independence makes the role of each mathematical operation easier to understand.
  
 ===== Collection of the training dataset ===== ===== Collection of the training dataset =====
Line 140: Line 141:
 where $\Gamma()$ indicates the gamma function. To assign $\beta_t$, the user defines a target ambiguous assignment probability $p$. This is then transformed to $\beta_t$ through the above equation for each timepoint. Note that $\beta_t$ is calculated according to the metric of the normalised feature space, meaning it is not reliant upon the ad-hoc definition of `regions of ambiguity' previously discussed. where $\Gamma()$ indicates the gamma function. To assign $\beta_t$, the user defines a target ambiguous assignment probability $p$. This is then transformed to $\beta_t$ through the above equation for each timepoint. Note that $\beta_t$ is calculated according to the metric of the normalised feature space, meaning it is not reliant upon the ad-hoc definition of `regions of ambiguity' previously discussed.
  
-Defining $\beta_t$ in this way allows us to automatically change the stringency of the tracking algorithm according to the properties of the dataset. When a system is at low density or the degree of movement is small, ambiguous links will occur fairly rarely and link assignment need not be very stringent. At the other extreme, with high levels of system noise or high system density, ambiguous links will be common. Links should therefore only be assigned when the evidence for object identity between frames is extremely strong, //i.e.// $\beta_t$ should be made extremely stringent to ensure that incorrect links are not accepted.+Defining $\beta_t$ in this way allows us to automatically change the stringency of the tracking algorithm according to the properties of the dataset. When a system is at low density or the degree of movement is small, ambiguous links will occur fairly rarely and link assignment need not be very stringent. At the other extreme, with high levels of system noise or high system density, ambiguous links will be common. Links should therefore only be assigned when the evidence for object identity between frames is extremely strong, //i.e.// $\beta_t$ should be made extremely small to ensure that incorrect links are not accepted.
  
 ===== High-fidelity linking and gap closure ===== ===== High-fidelity linking and gap closure =====
Line 164: Line 165:
 ===== Appendix: Normalisation of correlated displacement spaces ===== ===== Appendix: Normalisation of correlated displacement spaces =====
  
-From equation \ref{eq:NormalizedRepresentation}, we have:+From the equation at the end of the [[usage:tracking_algorithm#the_challenge_of_tracking|introductory section]], we have:
  
 \begin{equation} \begin{equation}
Line 170: Line 171:
 \end{equation} \end{equation}
  
-\noindent +where $\mathbf{w}_t$ indicates a random vector drawn from the distribution $\mathcal{N}(\mathbf{\mu}_t, \mathbf{\Sigma}_t)$ with location $\mathbf{\mu}_t$ and covariance matrix $\mathbf{\Sigma}_t$.
-where $mathbf{w}_t$ indicates a random vector drawn from the distribution $\mathcal{N}(\mathbf{\mu}_t, \mathbf{\Sigma}_t)$ with location $\mathbf{\mu}_t$ and covariance matrix $\mathbf{\Sigma}_t$.+
  
 $\mathbf{\mu}_t$ can be calculated from the training feature displacement set $\mathbf{f}_{t,i}$ simply by finding the sample average for each feature, as for the uncorrelated case. To relax the requirement that $\mathbf{\Sigma}_t$ be diagonal, it can be estimated as the sample covariance matrix: $\mathbf{\mu}_t$ can be calculated from the training feature displacement set $\mathbf{f}_{t,i}$ simply by finding the sample average for each feature, as for the uncorrelated case. To relax the requirement that $\mathbf{\Sigma}_t$ be diagonal, it can be estimated as the sample covariance matrix:
Line 198: Line 198:
 \begin{equation} \begin{equation}
  \hat{\mathbf{f}}_{t} = \mathbf{B}_t\mathbf{f}_{t},  \hat{\mathbf{f}}_{t} = \mathbf{B}_t\mathbf{f}_{t},
 +\end{equation}
 +
 +\begin{equation}
  \hat{\mathbf{f}}_{t+1} = \mathbf{B}_t(\mathbf{f}_{t + 1} - \mathbf{\mu}_t).  \hat{\mathbf{f}}_{t+1} = \mathbf{B}_t(\mathbf{f}_{t + 1} - \mathbf{\mu}_t).
 \end{equation} \end{equation}
  
-Feature reliability is not easy to define in this new space, as $\mathbf{B}_t$ will not in general preserve the orientation of the feature axes. This contrasts to the case when $\mathbf{\Sigma}_t$ was diagonal, where $\mathbf{B}_t$ scaled the feature space parallel to each feature axis. However, the volume of the space can still be defined as the volume of the $\Phi$-parallelotope corresponding to the transformed feature domain, //i.e.// the parallelotope with corners at positions $\mathbf{p}_t = \mathbf{B}_t\mathbf{E}_t$ where $\mathbf{E}_t$ is the matrix with diagonal elements that are the extent $e_{t,\phi}$ of each feature. The feature density is then given as:+Feature reliability is not easy to define in this new space, as $\mathbf{B}_t$ will not in general preserve the orientation of the feature axes. This contrasts to the case when $\mathbf{\Sigma}_t$ was diagonal, where $\mathbf{B}_t$ scaled the feature space parallel to each feature axis. However, the volume of the space can still be defined as the (hyper)volume of the $\Phi$-parallelotope corresponding to the transformed feature domain, //i.e.// the parallelotope with corners at positions $\mathbf{p}_t = \mathbf{B}_t\mathbf{E}_t$ where $\mathbf{E}_t$ is the matrix with diagonal elements that are the extent $e_{t,\phi}$ of each feature. The feature density is then given as:
  
 \begin{equation} \begin{equation}
  • usage/tracking_algorithm.1565210502.txt.gz
  • Last modified: 2019/08/07 21:41
  • by pseudomoaner