FLIP THE SCAN, AND THE AI LOSES THE SPLEEN
Tools such as TotalSegmentator now outline organs on CT scans automatically, in one pass for more than a hundred anatomical structures, and these outlines, called masks, feed organ-volume measurements, screening, radiotherapy planning and research datasets. Many of these structures come in pairs, so the software must decide not only what an organ is, but also on which side it lies: left kidney or right kidney.
That creates a dilemma during training. A common trick to teach image models is to show them flipped copies of the training images. But flip a scan left to right and a left kidney looks like a right one, so the labels no longer match. The authors of TotalSegmentator, like other teams, therefore left mirroring out: otherwise the model could not tell left from right.
The side effect has rarely been measured. A model that has never seen a mirrored patient may learn that the spleen is “the organ on that side”, and rely on position more than on appearance. This matters for real people: in situs inversus totalis, the organs of the chest and abdomen are a mirror image of the usual layout, in about 1 person in 10,000. They get scanned too.
The mirror test
Ehsan Rassekh, the sole author of the study, designed a simple check that needs no expert annotations. Take a scan, flip it left to right, let the model outline the organs, flip its answer back, and compare it voxel by voxel — element by element of the 3D image — with the model’s answer on the original scan. A model that recognises organs by their appearance should find the same organs in the same places.
The test was run on 180 public scans, 60 from each of three collections of the Medical Segmentation Decathlon, abdominal CT scans of patients with tumours, all from one institution. A second tool, CADS, built by a different group and trained on about 18 times more data (22,022 CT volumes), was tested on 120 of the same scans. Neither had been trained with mirrored images.
Labels that follow the side
For paired structures — kidneys, hip bones, the lower lobes of the lungs, ribs and some muscles — the result was unanimous. On the flipped scan, the model found the organs in their new place, but gave them the label of the side they now occupied. Among the voxels found in both runs, the share carrying the swapped label was 1.000 — all of them — in all three collections. That happened even for the lungs, whose left and right halves have different shapes.
For the kidneys, this is not even a mistake: “left” and “right” name the side of the body. But it shows what the model relies on, and the organs that exist only once show it more clearly.
Organs that disappear
For organs that exist only once, the comparison uses the Dice score, which measures how much two outlines overlap, from 1 (same organ, same place) to 0 (not found):
- spleen, inferior vena cava and gallbladder: 0.000 to 0.007 on average, below 0.5 in every single scan — they were simply not found;
- liver: about 0.36 to 0.40, below 0.5 in 85% to 93% of the scans;
- pancreas, duodenum and stomach: in between;
- aorta, small bowel, oesophagus, colon, heart and spinal cord, near the midline or with distinctive shapes: mostly found (0.75 to 0.97).
In an example scan, after the flip, the label “spleen” landed on the liver and the label “liver” on the spleen. Before the last collection was analysed, the author fixed in writing a rule to confirm the finding (median Dice below 0.1 for the spleen, below 0.5 for the liver); it was met, with 0.000 and 0.398. The finer, full-resolution version of TotalSegmentator, checked on 20 scans, led to the same conclusion.
Same failures, same scans
CADS behaved almost identically: labels following the side, spleen, vena cava and gallbladder lost, liver found only in part. The two tools even struggled on the same scans: their liver scores, scan by scan, had a correlation of 0.83: a scan on which one tool found the liver better was, as a rule, one on which the other did too. Two differences stood out: CADS kept the correct labels for the heart chambers it found, though it lost most of them, and it found the portal vein less consistently. The two tools share a design choice, training without mirroring, and partly the same training scans.
A silent failure
The author’s conclusion: both models rely strongly on position, and their output should not be trusted on patients with mirrored anatomy without a check. Because the condition is rare, the practical risk is small, but the failure is silent: the tools return masks without any warning. A simple safeguard is to check the position of large organs such as the liver and spleen before using the masks. The obvious fix — mirroring training images while also swapping the left and right labels — was not tested here.
The test measures consistency, not accuracy. A flipped scan is only an approximation of real situs inversus, where veins and arteries may follow other patterns, and no scans of actual patients with the condition were used. Only two models were tested, both trained without mirroring.
