Anatomy-Budgeted Negatives for Rare Hemorrhage Segmentation

Models that find bleeding on CT scans face an odd problem: showing them more scans of patients who are not bleeding first helps and then hurts. On a public brain-hemorrhage benchmark, adding 200 bleed-free scans to training raised segmentation overlap from 29.44 to 35.38 Dice, but adding 800 made the model stop finding bleeds. That ratio is exactly the regime of procedure-induced bleeding. Needle biopsy causes hemorrhage in roughly 1–3% of cases, so any realistic dataset of biopsy complications will be mostly negatives. Our hypothesis is that the collapse is not caused by "too much negative data." It comes from how the loss counts background voxels, and it gets worse because the hardest background voxels in head CT are bone and calcification. These look bright, like blood, but are anatomical noise.

We propose a background term with a fixed budget. Each batch supervises only as many background voxels as it has foreground voxels, times a constant. Those voxels are mined as the hardest ones, but only from a soft anatomical region that keeps the tissue next to the skull. If this is right, performance should rise steadily as bleed-free scans are added rather than peaking and falling. The rarest subtype, epidural hematoma, should gain the most: it sits against the inner skull, where both naive hard-negative mining and hard skull-stripping fail.

Core Claim

Two published findings explain each other. BHSD builds a five-subtype 3D intracranial hemorrhage dataset and reports the non-monotone effect of negative scans. A Unified Loss for Handling Inter-Class and Intra-Class Imbalance shows that soft training losses add up tiny background probabilities over millions of voxels. That penalty scales with the absolute voxel count and does not exist at thresholded inference. Adding whole negative volumes grows this background mass without bound, which is a direct mechanism for the recall collapse BHSD observed.

Xu et al.'s Balance Loss fixes the problem for scans that contain lesions, but it has a blind spot. Its inter-class term keeps as many hard background pixels as there are foreground pixels in the same image, so a lesion-free scan contributes nothing at all. The existing fix therefore cannot use the negatives that clinical data is full of, and the naive loss is overwhelmed by them.

We claim that a batch-level background budget, mined inside an anatomy-weighted region, removes both failure modes. Negatives stay useful because they supply hard false-positive candidates. They stop being harmful because their gradient share is capped.

Mechanism

For a batch, let $F$ be the number of foreground voxels. Let $w(x)\in[0,1]$ be a soft anatomical weight: 1 inside the intracranial space and a few millimetres into the inner table of the skull, decaying to 0 over scalp, face, air and scanner bed. Let $p(x)$ be the model's foreground probability. The background term is

$$ L_{bg} = \frac{1}{kF}\sum_{x \in \mathrm{Top}_{kF}\{w(x)\,p(x)\,:\, y(x)=0\}} w(x)\,\ell(p(x),0), $$

where $\mathrm{Top}_{kF}$ selects the $kF$ background voxels with the highest weighted probability anywhere in the batch, including in lesion-free volumes, $k$ is a single budget ratio, and $\ell$ is cross-entropy. The foreground and boundary terms follow Balance Loss unchanged.

Two design choices carry the claim. The budget is pooled over the batch, which lets negatives contribute. The region is soft and includes the skull margin, which responds to the finding in SDFN. SDFN fused full chest X-rays with cropped lung fields, and cropped-only models (AUC 0.807) lost to the fused model (0.815) because the crop cut away findings at the edges. Epidural and subdural bleeds are the intracranial version of that edge case.

Relation to Prior Work

Some prior work motivates the problem. BHSD found the negative-sample effect and poor epidural performance across nnU-Net, UNETR, Swin UNETR, CoTr and nnFormer, but offered no mechanism. The clinical case literature shows why low-incidence, high-stakes bleeding matters: hepatic angiosarcoma biopsy triggering hemorrhagic shock, CT-guided peritoneal aspiration with a 1.2% bleeding rate, and a 2.5% biopsy complication rate against MRI elastography. These papers fix the class ratio we must survive, not a method.

Other work supplies the method. We reuse Balance Loss's foreground and boundary terms and change only how background voxels are selected. We borrow the idea of weighting features by an anatomical mask from mask-weighted pooling for COVID CT triage, which multiplied classifier features by a smoothed lung mask. We apply the mask to the choice of background voxels rather than to pooled features.

A third group constrains the design. Lung ultrasound masking of pleura and adipose showed that removing superficial tissue raises AUC from 0.6553 to 0.7742 by breaking body-habitus shortcuts. The same paper notes that its boundary-fitting heuristics break when disease crosses tissue boundaries. That is why our region is soft and derived from a coarse segmenter with a margin, rather than a tight hard mask.

Red-GAN (Red-GAN) attacks rarity by generating synthetic minority examples. We deliberately avoid generation, because a generator could invent or erase thin bright structures in a safety-critical setting.

Research Program

The work has three parts. First, we test the mechanism directly on BHSD. For fixed model weights we log the share of total loss contributed by background voxels as negatives are added. The claim predicts that, under standard loss, this share tracks negative-voxel count and anticipates the recall drop. We also report where hard negatives fall without anatomical weighting, and expect them to concentrate on skull edges, calvarial calcifications and beam-hardening streaks.

Second, we train nnU-Net with the budgeted, anatomy-weighted loss across a sweep of negatives: 0, 200, 400, 800, 1600, and all bleed-free volumes available among BHSD's roughly 2,200 slice-labelled scans. Scans are counted as bleed-free only if every slice is labelled negative.

Third, we transfer the loss to abdominal CT as a proxy for the biopsy setting, since the file contains no dataset of biopsy-induced hemorrhage. On LiTS the anatomical region is the liver plus a margin, and the negatives are tumor-free slabs. The target is recall on lesions under 10 mm, which LiTS reports as the main failure mode. MultiTIPS supplies liver, portal vein and inferior vena cava annotations for a later vascular-proximity extension, but it has no bleeding labels, so it is not used as an outcome benchmark here.

Baselines

Naive reference. The do-nothing reference is nnU-Net with its default loss and foreground oversampling, trained on the 192 annotated BHSD volumes with no added negatives. BHSD reports 29.44 mean Dice for this setting.

Tuned-count baseline. The same nnU-Net with the best-performing count of negatives, 200, reaches the reported 35.38. This is the practical competitor: a practitioner who simply tunes the number of negatives. We rerun both in our own splits so that seeds, epochs and compute match. Our method must match or beat the tuned count at 200 negatives and keep improving beyond 800, where the baseline is reported to lose sensitivity.

Strongest existing loss. Balance Loss is the strongest method in the file. It reports 66.8 tumor Dice on KiTS19 against 59.8 for cross-entropy, in Xu et al.. We implement it in the same nnU-Net pipeline with the same tuning budget for its weight $\alpha$ and our $k$; each gets an equal-sized grid on the validation fold. For multi-class use we apply Balance Loss's terms one class against the rest, with the warm-up schedule the authors recommend. Beating it means higher epidural Dice and higher lesion-wise sensitivity, at an equal or lower scan-level false-positive rate on held-out negatives, at every negative count.

Masking baseline. Hard skull-stripping before training, with standard loss, isolates what spatial masking alone buys. We predict it hurts epidural and subdural bleeds.

Semi-supervised reference. Cross Pseudo Supervision uses unlabelled volumes by training two networks to label data for each other; BHSD reports it raises binary Dice from 45.10 to 49.50. We include it because it spends the same unlabelled pool differently from our method.

Ablations. We run the budget without anatomical weighting, anatomical weighting without the budget, and a hard region in place of a soft one. These separate the two ingredients and test whether the skull margin matters.

Why not just…?

Why not just tune the number of negatives? This is a real threat. If tuned-200 matches our method at every metric, the contribution shrinks to a diagnosis without a practical gain. Our answer is empirical: we look for continued improvement beyond 800 negatives. Clinical cohorts do not let you discard 97% of your data to hit an optimum that you would have to re-find for every dataset. If the negative sweep is flat for our method and peaked for the baseline, the budget earns its place. If both peak at the same point, we report that honestly.

Why not just skull-strip, as the ultrasound work masks adipose tissue? In the lung ultrasound work the masked tissue carried no disease, whereas epidural bleeds lie against the inner table of the skull. SDFN already showed that cropping to the target organ lost edge findings. The hard-mask baseline and the hard-versus-soft ablation measure this directly on the epidural and subdural classes.

Why not just use Balance Loss or focal loss? Balance Loss selects background per image in proportion to that image's foreground, so it assigns no gradient to lesion-free scans. Focal loss down-weights easy voxels but still sums over all of them, so total background mass still grows with the number of negatives. Both are run under the full negative sweep. The prediction is that Balance Loss flattens (it ignores the added data) and focal loss still collapses.

Why not just rebalance by sampling more positive patches? nnU-Net already oversamples foreground patches, and the reported collapse happened anyway. Sampling changes which patches are seen, not how many background voxels each patch contributes. Even so, we include a stronger oversampling rate as a baseline variant, because it might partly substitute for the budget.

Decisive Checks

The central test is the shape of the curve relating Dice and lesion-wise sensitivity to the number of negatives, with three seeds per point. The claim survives only if the budgeted, anatomy-weighted loss is non-decreasing where the baseline drops.

The second test is the epidural subtype. Its Dice should improve more than the pooled mean. Without anatomical weighting, the mined hard negatives should concentrate on bone, and the epidural gain should disappear.

The third test is transfer to LiTS. Recall on lesions under 10 mm should rise at a fixed lesion-level false-positive rate, relative to Balance Loss and the tuned-count baseline. LiTS reports a best lesion-wise recall of 0.554 as reference.

All claims about biopsy hemorrhage itself remain motivation. The file contains no dataset of procedure-induced bleeding, so the note's promise is a training method that can use the 40:1 to 80:1 negative-to-positive ratios such a dataset would have, validated on the closest public benchmarks.