Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fitting bones to CT scans

The question. The model’s bones are drawn from one man’s body. When scans of other people’s arms say those bones sit together differently, how do you decide what to move, and by how much, without making one measurement fit by spoiling another?

Where two bones meet sets the joint between them: the space the cartilage fills, the axis the joint turns about and the leverage of every muscle that crosses it. The model’s bones come from the BodyParts3D atlas, one man’s anatomy (Mitsuhashi et al. 2009), in the reduced form the model uses: the ulna’s surface has 500 corners and the radius’s 388, so thin parts such as the spike at the end of the ulna come out blunt. Set beside scans of other arms, the atlas’s forearm had its ulna too long at the wrist, the joint between the radius and the ulna at the wrist standing open, and the olecranon short. This chapter shows how the model was corrected by one fit that weighs every measured relation by how much people differ in it.

By the end you will be able to score a model against a measurement in standard deviations, add the scores of many measurements into one misfit, find the correction that makes the misfit least, and decide whether a correction is worth making at all.

The idea, in small steps

Scans. Computed tomography (CT) takes X-ray images of a body from many directions and combines them into a stack of thin slices. Bone shows bright in each slice, so the surface of every bone can be traced in three dimensions. Three kinds of scan are used here:

Relations. A relation is one measured quantity about how bones sit: how far apart two surfaces are, where one bone’s centre lies in another’s frame, or how much longer one bone is than another. Each comes with a rule, the exact recipe by which it is measured. The ulnar variance is an example: how far the end of the ulna’s head lies short of (negative) or beyond (positive) the end of the radius beside it, measured along the radius’s own shaft. The fit uses some fifty relations, of six kinds:

  • where each of the eight wrist bones’ centres lies on the radius, in three directions;
  • where the ulna’s head lies on the radius, and where the lunate lies on the ulna’s head;
  • the 17 joint spaces between the wrist bones and the space of the distal radio-ulnar joint, where the radius turns round the ulna’s head at the wrist;
  • the ulnar variance;
  • the bones’ lengths and the ulna’s length less the radius’s;
  • the elbow’s relations: where the coronoid’s tip lies against the radial head, and the span from the olecranon’s tip to the coronoid’s tip.

Mean and spread. A measured relation has a mean and a spread. The spread is the standard deviation: the typical distance of one person’s value from the mean. For a list of values with mean it is

In words: square each value’s distance from the mean, add them, divide by one fewer than the number of values, and take the square root. Dividing by rather than allows for the mean having been worked out from the same values.

Take the ulnar variance of the three living wrists, measured with the model’s rule in the model’s frame: −0.65, −1.17 and −1.54 mm. Their mean is mm. The distances from the mean are , and mm; their squares add to ; divided by 2 that is 0.200, and its square root is 0.45 mm.

Three people cannot show how much everyone differs. In 121 wrists measured by three-dimensional CT the standard deviation of the variance is 1.5 mm (Waris et al. 2023, abstract), three times as wide. So the fit takes the mean from the three wrists, because they were measured by the model’s own rule, and the spread from the 121. Where the three wrists are all a relation has, its spread is their own, but never less than a floor: 0.5 mm for a bone’s place and 0.10 mm for a joint space, judged to stand for the error of tracing and lining up the scans.

Scoring in standard deviations. The model’s value of a relation, less the measured mean, divided by the standard deviation, is its residual:

In words: how many standard deviations the model lies from the average person. The atlas’s own ulnar variance in this frame is +2.00 mm, so its residual is = +2.1. A residual of ±1 is an ordinary person; ±3 is rare. Dividing by the spread puts millimetres of joint space, millimetres of bone length and millimetres of position on one scale, and it lets a relation that people share closely count for more than one in which they differ widely.

The misfit. The fit adds the squares of all the residuals into one number, the weighted misfit, in this chapter simply the misfit:

where is the number of relations. Squaring makes a miss on either side count the same and makes one large miss count more than several small ones. Making least is least squares, with each relation weighted by one over the square of its spread: weighted least squares.

Unknowns. The corrections the fit may make are its unknowns:

  • shorten the ulna, by a ramp that leaves its elbow end in place;
  • lengthen the radius, or move it towards the wrist as a whole;
  • move the ulna’s head towards the radius and towards the palm, to sit it in the radius’s notch;
  • move each of the eight wrist bones, three numbers each;
  • extend the ulna’s styloid process, the small spike at the end of its head;
  • extend the olecranon’s tip.

Choosing by Akaike’s criterion. A fit with more unknowns can always reach a misfit at least as small, so the least misfit alone would always choose every correction. The fit chooses instead by Akaike’s information criterion (AIC; Akaike 1974, record), in the form it takes for residuals scored against known spreads:

where is the number of unknowns. In words: each unknown costs 2, so a correction is made only if it lowers the misfit by more than 2 for every number it adds. The candidate with the least AIC is chosen.

Like for like. A residual means something only if the model is measured by the same rule as the people. Three rules mattered here.

  • The ulna’s length. Martin’s maximum length, M1, of the ulna runs from the olecranon’s tip to the tip of its styloid process; of the radius, from the top of its head to the tip of its styloid. Both population series measure it so (Hong et al. 2021; Duangto & Mahakkanukrauh 2020). The model’s lengths are the extents of its bones along each bone’s long axis. The atlas’s styloid barely stands out, so its ulna’s extent ends at the dome of its head, a little short of where a styloid’s tip would be.
  • The frame a styloid is read in. How far the styloid stands beyond the dome depends on the direction it is measured along. The atlas’s styloid stands 2.08 mm beyond its dome along the radius’s shaft, 0.44 mm along the ulna’s own axis and nothing along the forearm’s axis. One comparison set the atlas’s value along the forearm’s axis beside the scans’ along the radius’s shaft and found the atlas 2 mm short; measured along the same axis, the radius’s, the atlas is within the scans. The length of the ulna is measured along the ulna’s own axis, and there the nine donated arms read 2.55 ± 1.86 mm against the atlas’s 0.44.
  • The olecranon. How far the olecranon’s tip stands beyond the top of the radial head depends on where the radial head sits as well as on the ulna, and that place is itself uncertain. The span from the olecranon’s tip to the coronoid’s tip lies within the ulna alone, so it is the span the fit weighs: 27.46 ± 1.52 mm in the nine donated arms, against the atlas’s 23.93 mm.

A worked example

Take one unknown, how far the olecranon’s tip is extended, (in mm), and two relations it changes: the span from the olecranon’s tip to the coronoid’s tip, and the ulna’s length less the radius’s. Each millimetre of adds a millimetre to both.

RelationModel with no extensionMeasured meanSD
Span, olecranon to coronoid23.93 mm27.46 mm1.52 mm
Ulna − radius13.74 mm17.2 mm3.17 mm

The model’s difference, 13.74 mm, is the atlas’s 17.6 mm less the 3.86 mm by which the first fit had shortened the ulna. The mean 17.2 mm is that of four populations’ means, two of them those of Hong’s and Duangto’s series, and the spread is the per-person spread among Hong’s donors; the nine donated arms’ own difference, 18.05 ± 3.17 mm, agrees.

  • No extension. The residuals are and . The misfit is = 6.58.
  • The best extension. The misfit is . Its slope is zero where , that is where In words: the best extension is the mean of what each relation wants, 3.53 and 3.46 mm, each weighted by one over the square of its spread. The two wants nearly agree, so both residuals fall almost to zero.
  • Is it worth it? Keeping the atlas’s olecranon has no unknown: AIC = 6.58. Extending it has one: AIC = 0.00 + 2 = 2.00. The extension pays for itself.

The model’s own fit, which moves the ulna’s shortening, the seat of its head and every wrist bone at the same time against all its relations, extends the olecranon 3.56 mm.

Try it

The laboratory puts each relation on its own number line: the measured mean, with bands one and two standard deviations wide, and the model’s value. The plot shows the misfit, and each relation’s squared residual, for every extension from 0 to 8 mm.

  1. Check the worked example. The lab opens with no extension: the residuals are −2.32 and −1.09 SD and the misfit 6.58. The extension with the least misfit is 3.52 mm, and AIC is 6.58 keeping the atlas’s olecranon against 2.00 extending it.
  2. Set the extension to 3.52 mm. Both markers sit on their means, and the misfit is almost zero.
  3. Predict, then check: a wider spread. Suppose the nine arms had told the span less precisely. Set its standard deviation to 4 mm and predict whether AIC still extends the olecranon. It does not: keeping the atlas’s olecranon now scores 1.97, below the 2.00 of extending it. The same shortfall, in a relation people share less closely, is no longer evidence enough.
  4. Play sweeps the extension to 8 mm and back. The misfit is a bowl: weighted least squares of one unknown always is.

Check against measurement

The first correction. The atlas’s distal radio-ulnar joint stood open: its space was 2.4 mm, where the three living wrists have 0.12 to 0.28 mm. A first solution shortened the ulna by 3.85 mm to the measured variance and re-seated the wrist bones to the scans’ ranges, but it did so by moving other relations away from their measurements: the misfit over every relation rose to 644.4, against 447.4 for the model before it. Fitted together, the candidates scored as below, against the relations of that time: the styloid and the span were not yet among them, and the length difference was given a derived spread of 2.4 mm, before a per-person spread was measured. “No correction” is the atlas’s ulna with the wrist bones as first seated.

CandidateMisfitUnknownsAIC
No correction299.60299.6
Move the wrist bones254.324302.3
Shorten the ulna, move the wrist bones208.425258.4
Lengthen the radius, move the wrist bones198.225248.2
Seat the ulna’s head in the radius’s notch, move the wrist bones78.026130.0
Shorten the ulna and seat its head, move the wrist bones24.62778.6
Lengthen the radius and seat the ulna’s head, move the wrist bones25.72779.7

The open joint dominated every candidate without the seat. With the seat, shortening the ulna and lengthening the radius fit the wrist almost equally well, and AIC chose the shortening.

The second. That fit left the ulna’s length less the radius’s at 13.74 mm, −1.1 SD. Measured like for like, part of the gap is the styloid and part the olecranon, and the fit was given both as unknowns, with the nine donated arms’ span and styloid:

CandidateMisfitUnknownsAIC
Shorten the ulna, seat its head, move the wrist bones29.72783.7
… and extend the styloid26.72882.7
… and extend the olecranon22.42878.4
… and extend both21.12979.1

AIC chose the olecranon and not the styloid: the ulna shortened 3.91 mm, its head seated 2.34 mm towards the radius and 0.81 mm towards the palm, the wrist bones re-seated, and the olecranon’s tip extended 3.56 mm. The model is built from exactly those numbers: the builder refuses an ulna corrected by any other amount. Only the olecranon’s beak moves, so the joint surface of the ulna’s notch, and the elbow’s axis, stay where they were fitted.

“Before the corrections” is again the atlas’s ulna with the wrist bones as first seated, scored against today’s relations.

RelationMeasured mean (SD)Before the correctionsThe model now
Distal radio-ulnar joint space0.22 (0.10) mm+12.0 SD−1.1 SD (0.11 mm)
Ulna’s head on the radius, side to sideas the three wrists (0.50)+7.6 SD+2.8 SD
Ulnar variance−1.12 (1.5) mm+2.1 SD−0.4 SD (−1.70 mm)
Ulna − radius, M117.2 (3.17) mm+0.1 SD+0.0 SD (17.25 mm)
Span, olecranon to coronoid27.46 (1.52) mm−2.3 SD+0.0 SD (27.50 mm)
Styloid beyond the dome, along the ulna2.55 (1.86) mm−1.1 SD−1.1 SD (0.44 mm)
Coronoid’s tip against the radial head0.57 (0.74) mm−0.9 SD−0.9 SD (−0.08 mm)

Every weighed relation but one lies within 1.5 SD. The ulna’s head still sits 2.8 SD towards the little finger of the scanned heads: seating it further would close the distal radio-ulnar joint. Measured on the model’s own bone surfaces by their extents along their long axes, the ulna is 254.8 mm and the radius 237.6 mm long, a difference of 17.2 mm, at the populations’ mean.

What else was checked.

  • The wrist bones. 15 of the 17 joint spaces between them lie inside the range of the three living wrists. The two outside are the lunate’s: against the radius 0.61 mm (the wrists 0.78 to 1.55 mm) and against the ulna 5.59 mm (2.04 to 4.71 mm), each within 1.5 SD of the wrists’ mean. The distal radio-ulnar space measures 0.02 mm, against the wrists’ 0.12 to 0.28 mm; the fit’s own sampled value is the 0.11 mm of the table. The hand sits 4.77 mm from where the atlas drew it.
  • Straightening the elbow. With the beak extended, and the ulna turned rigidly on the hinge, bone meets bone 4.65° beyond straight; the tip’s 0.78 mm of cartilage would touch at 1.58°. That is the shapes’ geometry, not yet a stop. The model holds the olecranon’s tip, with its layer of cartilage, against its hollow in the humerus by contact, and with the joint’s other freedoms loose that contact first carries force at 3.6° beyond straight (5.2° before the elbow had the front of its capsule). The force reading is the one compared with the 3.85 ± 4.85° by which 674 people’s elbows straighten past straight when pushed (CDC 2010), and it lies inside it. Why a relaxed elbow resists sets the readings side by side.
  • What the fit left reported, not weighed. The olecranon’s tip beyond the radial head’s top reads 26.42 mm against the nine arms’ 29.78 ± 1.65, −2.04 SD, improved from the atlas’s −4.2 SD; the rest is where the radial head sits against the coronoid, +3.61 SD against the nine arms, which no unknown here moves. The published references for that relation do not agree: the two the fit weighs put the radial head level with the coronoid or a little beyond it (Doornberg et al. 2006, abstract; van Riet et al. 2007, abstract), and a third, on radiographs, sides with the nine arms (Baxi et al. 2025). The rule each used is not yet known well enough to measure the model by it, so the fit keeps weighing the relation against the first two, 0.57 ± 0.74 mm, and reports the nine arms beside it.

On the measured mean bones. The corrections of this chapter were fitted because the atlas bones disagree with the scans. Own-mesh stage 3 builds a variant of the arm on the mean bones of the nine donors instead, without the three corrections (Bones from CT scans). The variant is the mean bones placed in the atlas arm and seated by the arm’s own rules. Read the same way as the atlas, it gives these relations:

RelationMeasured mean (SD)Atlas, uncorrectedMean bones, uncorrected
Ulna − radius, M117.2 (3.17) mm+0.1 SD+0.2 SD (17.72 mm)
Span, olecranon to coronoid27.46 (1.52) mm−2.3 SD−0.2 SD (27.09 mm)
Ulnar variance−1.12 (1.5) mm+2.6 SD (+2.76 mm)+0.1 SD (−1.03 mm)
Styloid beyond the dome, along the ulna2.55 (1.86) mm−1.1 SD−1.0 SD (0.64 mm)
Coronoid’s tip against the radial head0.57 (0.74) mm−0.9 SD−4.4 SD (−2.65 mm)

The mean bones need neither the shortening nor the olecranon’s extension. The coronoid row is the relation on which the nine arms and the published references disagree: the mean bones read as the nine arms do, −2.27 ± 1.17 mm.

The fit, run again on the mean bones. Own-mesh stage 4a ran this chapter’s fit on the mean bones, by the same rule and against the same relations. The three living wrists’ scans were carried onto the mean radius, as they had been onto the atlas’s.

CandidateMisfitUnknownsAIC
No correction107.30107.3
Move the wrist bones41.02489.0
Seat the ulna’s head, move the wrist bones37.32689.3
Shorten the ulna, move the wrist bones39.62589.6
Move the radius along the forearm, move the wrist bones30.32580.3
Every correction together18.42976.4

Akaike’s criterion chose every correction: it shortened the ulna by 8.5 mm and the radius by 5.6 mm, and moved the radius 3.1 mm along the forearm. Nearly all of the gain comes from one relation, where the radial head sits against the coronoid. That relation reads −4.4 SD on the mean bones and −0.2 SD after the correction.

The nine arms whose mean these bones are read −2.27 ± 1.17 mm there, as the mean bones do. The correction would therefore move measured bones away from their own measurement, to meet the two references the arms disagree with. The builder cannot move the radius in any case.

With that one relation left out, the fit chooses to move the wrist bones only (AIC 70.1, against 70.4 for also seating the ulna’s head). That is the seat the variant is built with: the ulna exactly as measured, the wrist bones moved, 15 of the 17 joint spaces between them inside the living wrists’ range, and a distal radio-ulnar space of 0.38 mm against the wrists’ 0.12 to 0.28 mm.

Where the muscles attach, on either set of bones. A fitted bone carries the muscles that attach to it. On the mean bones those attachments first came from the atlas, carried across by the map from the atlas bones to the mean ones. Own-mesh stage 4b places the ones that have been measured by the bone’s own landmarks instead, as the measuring studies did. The landmarks are the epicondyles, the centre of the humeral head, the radial head and styloid, and the tip of the olecranon.

  • The forearm extensors’ origins go on the footprints measured around the lateral epicondyle (Bernholt et al. 2020, ten men’s arms).
  • Pronator teres’s humeral origin goes at the centre measured above the medial epicondyle (Frangiamore et al. 2018, ten men).
  • The long and lateral heads of triceps insert 19.9 mm from the olecranon’s tip, the centre of their measured footprint.
  • The biceps tendon inserts 34 mm below the radial head (Hilgersom et al. 2021), turned 144° from the radial styloid about the radius.

The same rules run on the atlas bones too, so the default arm now carries the measured sites as well. The atlas’s own sites lay 8 to 26 mm from them. The atlas radius shows why the bone’s landmarks matter: its tuberosity, where biceps inserts, is turned 66° from the styloid, against 148.6° in 906 measured radii (abstracts). The mean radius’s tuberosity is turned 148°. The measured bearing is given two ways, from the styloid and from the front of the forearm in full supination, and the two agree only if the styloid points straight to the side in full supination. On the atlas forearm it is about 18° off that, so the placed insertion may lie up to 14° further round from the front than the measured footprint (elbow round E1, judged; it does not move the biceps’s peak, and is left for the next biceps round).

What this model leaves out

  • The styloid’s own shape. AIC did not ask for it, and the builder has no rule to reshape it; the model’s ulna ends at the dome of its head.
  • Where the radial head sits against the coronoid, which the nine arms and the published references read differently.
  • The distal radio-ulnar joint as it turns. The fit seats the ulna’s head in one pose. Turned rigidly through the forearm’s range about the axis of that time, the radius’s notch passed up to 1.89 mm into the head part way round; the joint has since been given cartilage contact and its axis fitted again to how the head is measured to glide in the notch, but the fit of this chapter still weighs the head in the one pose of the scans.
  • Joint spaces read from CT are read short. A scan blurs a thin gap between two bones, so a surface taken from CT stands a little proud of the bone. On the CT of the nine donated elbows the space between humerus and ulna reads 1.50 ± 0.23 mm, where about 2.3 mm of cartilage was measured, and the reading moves by 0.8 mm as the threshold for bone is moved from 200 to 400 Hounsfield units (HU), the scale on which CT records how strongly each point absorbs X-rays (joint round 18). Corrected for that bias, measured on the same surfaces against the cartilage on both sides of each joint (Moore et al. 2011), every narrow joint between the wrist bones should be about 1 mm wider than the scans read: 1.4 to 1.7 mm against 0.2 to 0.8 mm (joint round 19). The fit of this chapter still weighs the spaces as read. The atlas’s wrist bones could open that far only by moving up to 4.5 mm, and whether they should is still to be decided. Since joint round 20 the corrected spaces are tests: the committed carpus puts 4 of 17 inside and fails (3 until carpus round 7 moved the pisiform). A re-seated carpus that puts 14 of 17 inside is staged. It was kept staged because it failed a like-for-like measured check of flexor carpi ulnaris’s lever that the committed seat passed (carpus rounds 5 and 6); since carpus round 7 the committed seat fails that check too, and the re-seat has not yet been judged again (The wrist as two rows of bones). The seat the arm builder reads is now carpus_seating_h2k.json: joint round 15’s, with the pisiform moved to the Brown database’s mean place on the triquetrum (carpus round 7) and the thumb’s metacarpal and phalanges carried on the trapezium (hand round H2k). The staged variants read their own seats with the same thumb seat carried onto their trapezia (carpus_seating_jr20_thumb.json and carpus_seating_jr15_thumb.json; hand round H2l). How the bias bears on the distal radio-ulnar joint is told in The forearm turns.
  • Young adults’ elbows. The nine donated arms are 39 to 65 years old; no three-dimensional measurement of the olecranon in young adults was found.
  • A person’s own bones. The fit moves the atlas towards the average of the scans; it does not reshape a bone beyond the ulna’s ends.

What the model still lacks, and which checks fail, is kept in What the model leaves out.

Summary

  • A relation’s residual is the model’s value less the measured mean, in measured standard deviations; the misfit is the sum of the squared residuals, and making it least is weighted least squares.
  • A spread is taken from the largest group measured by a comparable method; a mean from the people measured by the model’s own rule.
  • Akaike’s criterion, the misfit plus twice the number of unknowns, makes a correction pay for itself: the olecranon’s extension did, the styloid’s did not.
  • A comparison is only meaningful like for like: the ulna’s length to the styloid’s tip, a styloid read along the same axis, and a span within one bone rather than a projection that depends on another.
  • Fitted together, the ulna was shortened 3.91 mm, its head seated in the radius’s notch and its olecranon’s tip extended 3.56 mm; the ulna’s length less the radius’s now sits at the population mean.

Next: bones, joints, ligaments and cartilage are in place, and every muscle is still a line. The next part gives tissue a volume, beginning with Measuring a change of shape.