Research / Method transparency

Bodytype algorithm v2: method, thresholds and version history

Bodytype v2 is a deterministic rule set, not a trained model. It takes four girths — bust, waist, high hip and hips — computes three ratios, and applies a fixed order of thresholds to return one styling label. The measurement positions follow ASTM D5219-25 3.3–3.5; the five labels and thresholds are Bodytype’s own rules.

By Bodytype.org · Updated 17 November 2026
Deterministic rule set · algorithm v2

Internal method review (17 November 2026): formulas, thresholds, rule order and test vectors were checked against the current code. This is not external peer review, professional certification or a validation study.

Key findings

What the rule set does

  1. 1. Four inputs, three ratios.

    The calculator uses bust-to-hip, waist-to-hip and high-hip-to-hip ratios; it does not use height, weight, age, photos, shoulder width or a trained model.

  2. 2. One deterministic rule order.

    Inverted triangle, pear, apple, hourglass, then rectangle; each valid input returns exactly one label.

  3. 3. The thresholds are Bodytype’s styling rules.

    The 0.95/1.05 bust-to-hip window, 0.80/0.88 waist-to-hip thresholds and 0.95 high-hip-to-hip threshold are not ASTM, ISO, GB/T, FFIT or BSAS classifications.

  4. 4. v2 changed the measurement definitions, not the thresholds.

    Waist, high hip and hips moved to ASTM-aligned positions; the algorithm version was raised so old links are not silently recalculated.

  5. 5. Near a boundary, the card shows a geometric distance, not a probability.

    A small change in one measurement can change the label; that is a property of threshold rules, not an accuracy estimate.

What this is

A deterministic, reproducible styling rule table computed locally from four girths, with published thresholds, rule order and synthetic test vectors.

What this is not

Not a trained or scientifically validated classifier, not an ASTM/FFIT/BSAS algorithm, and not a medical, health-risk or body-fat assessment.

Inputs and units

Each girth accepts 40–200 cm (15.7–78.7 in). Values are parsed without rounding and converted with 1 in = 2.54 cm; ratios are dimensionless so cm and in give the same label. No gender, photo, height or weight is collected.

The four girth inputs, in page order.
OrderInputFieldLandmark (ASTM D5219-25)
1BustupperFullest part of the bust, seen from the side; tape under the arms and across the lower shoulder blades.
2WaistwaistSide waist point between the lowest rib and the highest point of the pelvic bone, found by bending to the side.
3High hiphighHipsMidway between the waist level and the fullest hip/seat level (the standard default midpoint).
4HipshipsPoint of greatest protrusion of the buttocks, seen from the side; feet about 15 cm apart.

If high hip reads larger than hips, or high hip is at or below the waist, the form shows a position-check prompt but still uses the value you enter. These are measurement-position checks, not medical warnings.

The three ratios

Ratios are dimensionless, so the unit cancels and cm/in give the same label. Classification uses the unrounded ratios.

Three ratios computed from the four girths.
RatioFormulaPurpose
bustToHipB / HWidth of the bust relative to the hips.
waistToHipW / HHow far the waist draws in relative to the hips.
highHipToHipHH / HFullness of the high hip relative to the full hip.

Thresholds

Waist-to-hip (W/H)

0.80 and 0.88 include equality.

Bust-to-hip (B/H)

0.95 and 1.05 belong to the balanced window.

High-hip-to-hip (HH/H)

0.95 includes equality; tested only for Hourglass.

Figure 2 · Threshold number lines. These are Bodytype styling rules, not ASTM/ISO/GB/T classifications. The threshold table below carries the same data.
Threshold and display constants (thresholds.ts).
ConstantValueMeaningKind
BUST_BALANCE0.05Bust-to-hip within 0.95–1.05 (inclusive) counts as balanced.Bodytype rule
WAIST_DEFINED0.80Waist-to-hip ≤ 0.80 counts as a defined waist.Bodytype rule
WAIST_UNDEFINED0.88Waist-to-hip ≥ 0.88 counts as an undefined waist.Bodytype rule
HIGH_HIP_CURVE0.95High-hip-to-hip ≤ 0.95 counts as a low-hip curve.Bodytype rule
VERY_CLOSE_CM1Stability radius < 1 cm shows “very close” wording.Display rule
HIDE_PROXIMITY_CM3Stability radius ≥ 3 cm hides the neighbor row.Display rule
MAX_STABILITY_CM60Upper bound of the stability-radius search.Implementation
RADIUS_PRECISION_CM0.01Quantization precision of the stability radius.Implementation

ASTM D5219-25 defines terms, positions and the default procedure only; it does not define these thresholds, the rule order or the five labels.

The five-rule table

  1. Inverted trianglebustToHip > 1.05
  2. PearbustToHip < 0.95
  3. Apple0.95 ≤ bustToHip ≤ 1.05 and waistToHip ≥ 0.88
  4. Hourglass0.95 ≤ bustToHip ≤ 1.05, waistToHip ≤ 0.80, highHipToHip ≤ 0.95
  5. RectangleAll remaining balanced cases
Figure 1 · First match wins. The order is part of the rule; Rectangle is the fallback, not “unclassified”.
Rules in priority order; first match wins.
#LabelConditionEquality
1Inverted trianglebustToHip > 1.05Strictly greater; 1.05 does not match.
2PearbustToHip < 0.95Strictly less; 0.95 does not match.
3Apple0.95 ≤ bustToHip ≤ 1.05 and waistToHip ≥ 0.88Includes both endpoints and equality.
4Hourglass0.95 ≤ bustToHip ≤ 1.05, waistToHip ≤ 0.80, highHipToHip ≤ 0.95Includes equality on all three.
5RectangleAll remaining balanced casesFallback; always matches if reached.

Pear precedes Apple/Hourglass, and Apple precedes Hourglass, so the order resolves overlaps. Rectangle is the fallback for balanced inputs with a waist-to-hip between 0.80 and 0.88, or a defined waist but a high-hip-to-hip above 0.95. It is a label, not “unclassified”.

Equality examples (B/W/HH/H in cm).
InputRatiosLabelNote
95/80/95/1000.950 / 0.800 / 0.950HourglassAll three boundaries include equality.
105/80/95/1001.050 / 0.800 / 0.950Hourglass1.05 is still inside the balanced window.
106/80/95/1001.060 / 0.800 / 0.950Inverted triangleStrictly greater than 1.05.
94/80/95/1000.940 / 0.800 / 0.950PearStrictly less than 0.95.
100/88/100/1001.000 / 0.880 / 1.000Apple0.88 includes equality; high hip is not tested for Apple.
100/80/96/1001.000 / 0.800 / 0.960RectangleDefined waist but high hip > 0.95 fails Hourglass.

Boundary behavior

Stability radius (single-field shift, cm)

A distance, not a probability, confidence or accuracy estimate.

Figure 3 · How far one measurement must move to change the label. The result card shows the distance and reachable labels, never a second identity or a probability.

findNearestShift shifts one field at a time by ±d and bisects for the smallest d that changes the label, quantized to 0.01 cm. It is a geometric distance, not a probability, confidence or accuracy estimate.

Stability-radius display tiers (proximity.ts).
BandResult-card behavior
radius = 0Input sits on a rule boundary: “At a rule boundary · nearest labels: …”.
radius < 1 cm“Very close to … · distance”.
1 cm ≤ radius < 3 cm“Closest other label: … · distance”.
radius ≥ 3 cmNeighbor row hidden.
radius = ∞No other label reachable within the 60 cm search; hidden.
Stability examples (B/W/HH/H in cm).
InputLabelRadius cmNeighborsNote
96/72/94/100Hourglass1.00Pear, RectangleA small waist or high-hip change can switch the label.
96/72/97/100Rectangle1.00PearHigh hip 97 exceeds 0.95, so Hourglass fails.
90/72/100/100Pear5.00RectangleFar from a boundary; the card hides the neighbor row.
100/80/95/100Hourglass0RectangleThe input itself is on a boundary.

Test vectors

Synthetic examples verified against the current v2 implementation; they contain no user measurements. The same file is published for download.

15 synthetic test vectors (B/W/HH/H in cm).
#B/W/HH/HLabelRadiusNeighbors
196/72/94/100hourglass1pear, rectangle
296/72/97/100rectangle1pear
390/72/100/100pear5rectangle
4110/80/100/100inverted-triangle4.76—
5100/90/100/100apple2rectangle
6100/85/100/100rectangle3apple
7100/80/95/100hourglass0rectangle
8105/80/95/100hourglass0inverted-triangle, rectangle
9106/80/95/100inverted-triangle0.95—
1094/80/95/100pear1hourglass
1196/72/101/100rectangle1pear
1296/72/72/100hourglass1pear
13100/80/96/100rectangle1hourglass
1495/80/95/100hourglass0pear, rectangle
15100/88/100/100apple0rectangle

Download test-vectors.csv · schema.json

Version history (v1 → v2)

What changed in v2 and why.
Itemv1v2Impact
Algorithm versionv=1v=2Old links are not silently recalculated under v2.
Waist positionNarrowest torso, above the navelSide waist point between lowest rib and pelvic crest, found by side-bendingReadings may change.
High hip positionTop of the hip boneMidpoint of waist and hip/seat (standard default)Readings may change.
Hips positionFullest point, feet togetherSide-view buttock protrusion, feet ~15 cm apartReadings may change.
Thresholds0.95/1.05, 0.80/0.88, 0.95UnchangedLabel changes come from readings, not recalibration.
Old linksRestore the result directlyPrefill values and ask to re-measureNo confident result is shown for v1 links.

The measurement definitions changed, so the same numbers mean something different; old links only prefill values and ask you to re-measure. There is no paired v1/v2 population data, so no “share of people who changed label” is claimed.

Nature and limitations

  • Deterministic: the same input, unit and version always give the same result.
  • Pure: it depends only on the four inputs and rule constants, not on network, time, randomness or identity.
  • Complete: every valid input has exactly one label.
  • Reproducible: thresholds live in thresholds.ts, rule order in rules.ts, and the page quotes the same definitions.
  • Local: no business backend, database or photo upload; measurements are not sent to a server.
  • The rules were not fitted from population data; the thresholds are styling rules, not statistical estimates.
  • No validation against FFIT, BSAS or any clinical/anthropometric classification is claimed.
  • Only four girths are used; no shoulder width, height, weight, posture, fat distribution or garment ease.
  • It cannot separate a large bust from broad shoulders; inverted triangle is a proxy label.
  • It gives no health-risk, body-fat, disease, weight or “ideal body” judgment.
  • The stability radius shifts one field at a time; it is not a measurement-error distribution or a probability.
  • Tape position, tension, stance and breathing affect readings; boundary users should re-measure.

Sources and method

Related: calculator, measurement & ASTM, five labels, system comparison, boundary sensitivity, about.

Cite this page

Bodytype.org. (2026). Bodytype algorithm v2: method, thresholds and test vectors (v2, dataset 1.0). Zenodo. https://doi.org/10.5281/zenodo.24304074

Algorithm v2 · updated 17 November 2026. Stable URL: https://bodytype.org/research/bodytype-algorithm-v2. Test vectors: CSV · schema.

Archived release (tag algorithm-v2-v1.0.0): Code on GitHub · Zenodo version DOI 10.5281/zenodo.24304074. Concept DOI: 10.5281/zenodo.24304073. Cite the version DOI for this snapshot; the concept DOI resolves to all versions.