Interactive Exploration of Conditional Statistical Shape Models in the Web-browser - exploreCOSMOS

Maximilian Hahn, Bernhard Egger

Abstract

Statistical Shape Models (SSMs) are essential for representing anatomical and structural variations across populations. However, their complexity often limits their use to experts with programming proficiency. We present exploreCOSMOS, the first web-based, interactive tool designed for the intuitive exploration and manipulation of SSMs directly within a browser. By leveraging posterior shape models and hardware-accelerated computation, exploreCOSMOS enables users to reshape 3D meshes through direct vertex manipulation while maintaining statistical plausibility.

Introduction

Statistical Shape Models (SSMs) serve as the gold standard for representing shape variation in fields ranging from medical imaging to computer vision. Despite their utility, traditional tools for SSM exploration often require significant expertise in programming and linear algebra, creating a barrier for clinicians, students, and artists.

exploreCOSMOS addresses this gap by providing a cross-platform, interactive environment for shape modeling. The tool allows users to "pin" or move specific 3D vertices to intuitively reshape complex objects, such as human faces, while an underlying statistical model ensures the results remain anatomically or structurally plausible.

The exploreCOSMOS user interface, featuring 3D mesh visualization and principal component sliders.

Methods

The application is built on a modern JavaScript stack, utilizing three.js for 3D rendering and Tensorflow.js for hardware-accelerated mathematical operations. The core logic integrates two primary mathematical frameworks:

  1. Principal Component Analysis (PCA): Shapes are represented as a mean shape plus a weighted combination of eigenvectors (principal components) capturing common variations.
  2. Posterior Shape Models: This is the "magic" of the tool. When a user manipulates a vertex, the system treats the new position as a partial observation. It solves a linear system using a pseudo-inverse matrix to calculate the most statistically likely positions for all other vertices in the mesh. Essentially, if a user pulls the nose forward, the model calculates how the cheeks and forehead should naturally shift based on training data.
Workflow of the exploreCOSMOS system: from vertex selection and manipulation to posterior computation and display.

Key Insights and Results

A primary advantage of exploreCOSMOS is its privacy-first architecture. Since the tool runs entirely client-side, sensitive data (such as patient scans) never leaves the user's machine, making it ideal for clinical applications.

The tool moves beyond abstract slider-based interaction by allowing direct mesh manipulation. Users can guide the statistical model toward a target shape by fixing certain landmarks and adjusting others. In qualitative tests using the Basel Face Model (BFM) 2019, users successfully created distinct facial types—such as receding chins or asymmetric features—in under a minute.

A study with four SSM experts confirmed the tool's efficiency and ease of use. Participants reported a difficulty rating of 2.5/5 (where 1 is very easy) and an overall experience rating of 4/5, completing complex shape-matching tasks in an average of five minutes.

Discussion and Future Work

While Tensorflow.js provides significant acceleration, certain operations like pseudo-inverse calculations currently rely on less optimized libraries, which may impact performance on high-resolution meshes. Future development will focus on optimizing these bottlenecks and conducting larger user studies with non-experts to further validate the tool's goal of democratizing access to statistical shape modeling.

Summary updated

BibTeX
@inproceedings{hahn2024interactive,
  author = {Maximilian Hahn and Bernhard Egger},
  title = {{Interactive Exploration of Conditional Statistical Shape Models in the Web-browser - exploreCOSMOS}},
  booktitle = {Bildverarbeitung für die Medizin},
  year = {2024},
  doi = {10.1007/978-3-658-44037-4\_32},
}
Figure