Skip to content

Sagging and firmness

Sagging measures visible loss of skin elasticity — most prominent at the jawline, jowls and lower cheek. Firmness is its inverse. Both are computed from the same analysis. Visualization markers identify the regions contributing most to the score.

component: skin_sagging
components:
- skin_sagging
- skin_firmness
request:
query: "components=skin_sagging,skin_firmness,skin_sagging_visualization"
response_path:
- "results[].description == \"skin_sagging\""
- "results[].description == \"skin_firmness\""
value_range: [0, 1]
also_request:
- skin_sagging_visualization
warnings: [3001, 3002, 4000] # 3001/3002 -> skin_sagging, 4000 -> skin_firmness
  • skin_sagging — diagnostic UI for anti-aging routines.
  • skin_firmness — improvement-over-time UI (“your firmness improved”).
Code: metrics/skin-sagging.js. Change the code to change the picture.

renderMetric and drawPolygonArea come from the rendering recipes guide (Recipe 3 — polygon areas); get them as files. Edits stay in this browser tab.

This picture shows the metric's visualization_data from a recorded response, drawn on the photo that was analyzed. Click a thumbnail to select a different model. Hold the photo to hide the overlay.

const sag = response.results.find((r) => r.description === "skin_sagging");
const firm = response.results.find((r) => r.description === "skin_firmness");

skin_sagging returns a single measurement_locations[] entry, described as Global. It is not a region score — its value is null, and it exists to carry the whole-face visualization_data. The score you display is the finding’s top-level value. The entry is present on every successful run, with an empty visualization_data when skin_sagging_visualization wasn’t requested.

This is a slow-changing metric — month-over-month tracking is appropriate; week-over-week noise will dominate signal.

  • value is null when the analysis fails — skin_sagging then carries 3001 or 3002 (and skin_firmness carries 4000). Render an “n/a” treatment rather than a score.
  • 3001 (error, on skin_sagging) — Cannot analyze skin sagging since eyebag analysis had failed.
  • 3002 (error, on skin_sagging) — Cannot analyze skin sagging since wrinkle analysis from required locations had failed.
  • 4000 (error, on skin_firmness) — Skin firmness not analyzed due to error in skin sagging analysis.
  • Choosing metrics — skin_firmness is the inverse of skin_sagging; sagging combines wrinkles + eyes.
  • Visualization data — Cat D− (advanced visualization structure but with simpler outputs — relevant finding-area data only). Polygon-area type, intensity range [0..1].
  • Rendering recipes → Polygon areas — paste-ready renderer; a neutral white overlay reads better here than the warm-color ramp used elsewhere — the metric is more “regions contributing to the score” than a severity heatmap.