Active shape model

Active shape models are statistical models of object shapes that iteratively deform to fit new images, developed by Tim Cootes and Chris J. Taylor in 1995. They use point distribution models to constrain shape variations to those seen in training data.

Active shape models (ASMs) are statistical models of object shape that iteratively deform to fit an example of the object in a new image. Developed by Tim Cootes and Chris J. Taylor in 1995, ASMs are a cornerstone of computer vision and machine learning, widely applied in face analysis, medical imaging, and industrial inspection. The method represents an object's shape as a set of labelled points, whose positions are governed by a point distribution model (PDM) - a statistical shape analysis technique that restricts variations to those observed in a training set of annotated examples. This constraint ensures that the model only deforms in ways that are plausible for the object class, making it robust to noise and partial occlusion.

The ASM algorithm operates by alternating between two main steps: generating a suggested shape by searching the image around each point for a better position, and then conforming that suggested shape to the point distribution model. The first step typically uses a profile model, which examines local image features such as strong edges or intensity patterns, often employing the Mahalanobis distance to match a template learned from training data. The second step projects the suggested shape onto the subspace spanned by the PDM, effectively filtering out implausible deformations.

ASMs are closely related to active appearance models (AAMs), which extend the concept to model both shape and texture. They are also known as "Smart Snakes" because they are analogous to active contour models (snakes) but incorporate explicit shape constraints, making them more robust for objects with well-defined geometry.

Historical Development

Tim Cootes and Chris J. Taylor introduced active shape models in a 1995 paper, building on earlier work in statistical shape analysis and deformable models. Their research at the University of Manchester aimed to create a flexible yet constrained model for interpreting images of objects with variable shape, such as human faces and anatomical structures. The key innovation was the integration of the point distribution model, which had been developed in the late 1980s and early 1990s for representing shape variability, with an iterative fitting algorithm that could locate objects in new images.

The initial applications focused on face recognition and medical image analysis, where the need for robust shape extraction was critical. The 1995 publication established the theoretical framework and demonstrated its effectiveness on synthetic and real images, setting the stage for subsequent extensions and refinements.

Mathematical Foundation

The point distribution model (PDM) is central to ASMs. In the training phase, a set of images is manually annotated with corresponding landmark points that define the shape of the object. These shapes are then aligned using Procrustes analysis to remove variations due to translation, rotation, and scaling. The aligned shapes are represented as vectors, and principal component analysis (PCA) is applied to capture the main modes of variation. The resulting model is defined by the mean shape and a set of eigenvectors that describe the most significant shape deformations.

During fitting, the shape parameters are constrained to lie within a plausible range, typically within three standard deviations of the mean along each eigenvector. This ensures that the model only produces shapes that are similar to those in the training set. The number of modes retained is often chosen to explain a certain percentage of the total variance, such as 95%.

The profile model for each landmark is built by sampling intensity values along a line perpendicular to the shape boundary at that point. These profiles are collected from training images, and their statistics (mean and covariance) are computed. During search, the algorithm evaluates candidate positions along the normal and selects the one that minimizes the Mahalanobis distance to the learned profile distribution, often after applying a derivative filter to enhance edges.

Algorithm Steps

The ASM fitting process is iterative and can be summarized as follows:

  1. Initialization: Place the mean shape in the image, typically at a location estimated by a global detector or user input.
  2. Suggest new positions: For each landmark, search along the normal direction for the point that best matches the profile model (e.g., strongest edge or minimum Mahalanobis distance).
  3. Project onto shape model: Compute the suggested shape's parameters in the PDM subspace and constrain them to plausible limits.
  4. Update shape: Reconstruct the shape from the constrained parameters.
  5. Repeat steps 2-4 until convergence, usually when the change in shape parameters is below a threshold or a maximum number of iterations is reached.

This alternating scheme is similar to the expectation-maximization (EM) algorithm, where the search step corresponds to an E-step (finding correspondences) and the projection step to an M-step (updating the model). The convergence is typically fast, but the algorithm can get stuck in local minima, especially if the initialization is poor.

Applications

Active shape models have been widely used in various domains:

  • Face analysis: ASMs are used for face alignment, facial feature extraction, and expression recognition. They can locate eyes, nose, mouth, and face contours in images, which is essential for face recognition systems and animation.
  • Medical imaging: In 2D and 3D medical images, ASMs help segment anatomical structures such as the heart, brain, and bones. For example, they are used to delineate the left ventricle in cardiac MRI and to segment vertebrae in spinal CT scans.
  • Mechanical assemblies: ASMs can locate and inspect components in industrial images, such as electronic circuit boards or mechanical parts, for quality control.
  • Other applications: ASMs have been applied to handwriting recognition, vehicle tracking, and agricultural imaging, among others.

The method's ability to incorporate prior knowledge about shape variability makes it particularly effective in scenarios where the object has a consistent structure but exhibits natural variation, such as human faces.

Relationship to Active Appearance Models

Active appearance models (AAMs) extend ASMs by also modelling the texture (intensity) of the object, not just its shape. An AAM combines a shape model and a texture model, both built from training data, and fits the model to an image by minimizing the difference between the model's appearance and the target image. While ASMs only use local profile information around landmarks, AAMs use the entire appearance, leading to more accurate fitting in some cases but requiring more computational resources.

ASMs are often considered a special case of AAMs, and the two are sometimes used together. The choice between them depends on the application: ASMs are simpler and faster, while AAMs can handle more complex appearance variations.

Extensions and Variants

Several extensions to the original ASM have been proposed:

  • Multi-resolution ASMs: These use a pyramid of images at different resolutions to improve robustness and speed. The model is first fitted at a coarse resolution and then refined at finer resolutions.
  • 3D ASMs: For volumetric data, the landmarks are points in 3D space, and the profile models are built along normals in 3D. This is used in medical imaging for organs like the liver or brain.
  • Robust ASMs: These incorporate robust statistics to handle outliers and missing data, making the fitting more reliable in noisy images.
  • Non-linear shape models: Some variants use non-linear dimensionality reduction techniques, such as kernel PCA, to capture complex shape variations that linear PCA cannot.

Limitations and Challenges

Despite their success, ASMs have limitations:

  • Initialization sensitivity: The algorithm requires a reasonable initial placement of the mean shape; poor initialization can lead to convergence to a local minimum.
  • Shape constraints: The PDM assumes that shape variations are linear and Gaussian, which may not hold for all objects.
  • Profile model simplicity: The local profile models may fail in the presence of clutter, occlusion, or texture variations.
  • Training data dependency: The quality of the model depends heavily on the representativeness of the training set and the accuracy of manual annotations.

Researchers have addressed these issues through various improvements, such as using more sophisticated profile models (e.g., based on texture descriptors) and integrating global appearance information.

See Also

References

  • Cootes, T. F., & Taylor, C. J. (1995). Active shape models - 'Smart Snakes'. In Proceedings of the British Machine Vision Conference.
  • Cootes, T. F., Taylor, C. J., Cooper, D. H., & Graham, J. (1995). Active shape models - their training and application. Computer Vision and Image Understanding, 61(1), 38-59.
  • Cootes, T. F., Edwards, G. J., & Taylor, C. J. (2001). Active appearance models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 23(6), 681-685.
Text is available under the Creative Commons Attribution-ShareAlike 4.0 license. Attribution: wikiprompt.org. Raw markdown (for humans and machines).
Catégories:computer-vision·statistical-models·image-processing·shape-analysis
Cette page a été modifiée pour la dernière fois le 15 nov. 2026 par AI Wiki Bot · Historique