Finding Tampered Tissue Without Mistaking Real Lesions for Fakes

A generative model can now paste a convincing tumor into a lung CT scan, or erase a real one. In the CT-GAN study, radiologists accepted injected cancers as real 99% of the time, and an automated screening model was fooled every time. Detecting that a scan was edited is not enough for clinical use. A defender needs a map of which voxels were changed, and the map must not light up on every genuine nodule. Here a voxel is a 3D pixel, and a nodule is a small round lesion in the lung.

This proposal treats that second requirement as the central problem. A tamper detector trained on scans whose only edits are injected nodules can learn a shortcut: "nodule-shaped means fake." This is the same kind of shortcut that made unmasked lung ultrasound models read body fat instead of pathology (The Role of Pleura and Adipose in Lung Ultrasound AI). The proposal uses the anatomical segmentation of the organ, and of the genuine lesions inside it, in two ways. It sets how the training loss is weighted, and it supplies hard counterexamples. It is not used to crop the input. The test is whether this yields a single-pass localizer that finds both injections and removals while keeping false alarms on real nodules low.

Core Claim

The claim is that, in medical tamper localization, the region-of-interest mask should define the loss rather than the input. A region-of-interest mask is a segmentation of the organ where diagnostically relevant edits can occur. Feeding a cropped organ to the network removes the reference that edits are judged against: scanner noise in air and in tissue outside the organ, and the ring of tissue where an in-painted patch is blended into its surroundings.

The proposed alternative keeps the full slice stack as input to a multi-scale detector. That detector has two branches. One reads the image itself. The other reads a noise residual, the image minus its smooth content, where generator traces live. A soft lung mask and a mask of genuine annotated nodules then reshape a hybrid loss. A hybrid loss combines a per-voxel term with an overlap term. With $p_i$ the predicted tamper probability at voxel $i$ and $y_i$ the tamper label, the per-voxel term is a focal cross-entropy $\ell_i$ with weight

$$w_i = \epsilon + r_i\,(1 + a\,n_i + b\,s_i).$$

In this weight, $r_i \in [0,1]$ is the Gaussian-smoothed lung mask and $n_i$ marks voxels of genuine untouched nodules. $s_i$ marks a thin shell around each edited region, where blending seams sit. $\epsilon$ is a small floor so that out-of-lung voxels still teach the model what clean noise looks like.

The overlap term is a Dice loss, which measures the overlap between predicted and true masks normalized by their size. It is computed only over voxels with $r_i > \tau$, so a 20-voxel injection is scored against the lung rather than the whole torso:

$$L = \frac{\sum_i w_i \ell_i}{\sum_i w_i} + \lambda\left(1 - \frac{2\sum_{i \in R} p_i y_i}{\sum_{i \in R} p_i + \sum_{i \in R} y_i}\right), \quad R = \{i : r_i > \tau\}.$$

Each element exists in prior work. What is new is the combination of three things in one objective. The organ mask sets the normalization of the overlap term. Genuine lesions are explicit negatives. Removals, edits that leave nothing lesion-shaped behind, are first-class targets.

Relation to Prior Work

Three groups of papers play different roles here.

The first group motivates the proposal. The lung ultrasound study shows that unmasked models latch onto non-diagnostic tissue: masking raised AUC from 0.6553 to 0.7742. CT-GAN shows that in-painting inside anatomy, with sigmoid blending to hide seams, defeats both humans and screening models. Toward Medical Deepfake Detection builds a multi-modality dataset (MedForensics) and a detector with an Inception-style multi-scale module and noise-domain convolutions. That work frames the task as image-level classification, so it does not say where an edit is. It also never confronts the case of a real lesion sitting next to a fake one.

The second group supplies methods. TBFormer contributes the two-branch design: an RGB transformer, plus a noise branch built from constrained (BayarConv) filters, fused across depths. Here it is adapted to 2.5D CT stacks, meaning a few neighboring slices fed together. The mask-weighted pooling triage network contributes the Gaussian-smoothed lung mask, which avoids the hard-edge artifact of binary masking. Enhanced U-Net contributes the IoU + Focal + Dice compound loss for small, imbalanced targets; there its weights are static and the target is natural lesions rather than edits.

The third group constrains the design. HiFi-Net uses partial convolutions to hide authentic pixels from its attribution head. That is exactly the move this proposal avoids, because it throws away the authentic-to-forged transition. Parts-based facial detectors generalize well within fixed regions but fail when the needed cues are global, which argues for keeping the full field of view. ForgDiffuser gets sharp boundaries by replacing the decoder with iterative diffusion denoising, at a high cost in inference time. Matching its boundary quality in one forward pass is a secondary goal. A3DSegNet injects anatomy priors while separating out metal artifacts. Its artifacts are physical, not adversarial, and it never localizes them explicitly.

Research Program

The first deliverable is a tampered-CT benchmark built on LIDC-IDRI, the 888-scan cohort used by CT-GAN. Each scan receives one of three edits. An injection adds a synthetic nodule in a lesion-free location. A removal in-paints over an annotated genuine nodule. An injection-near-real places a synthetic nodule within a few centimeters of a genuine one. Untouched scans are kept as clean controls.

Edits come from two generator families. The first reimplements CT-GAN's 3D conditional in-painting with its sigmoid blending. The second is a diffusion-based 3D in-painter, used only at test time, to measure transfer to a generator the detector never saw. Splits are by patient. Where acquisition metadata allows, a further split holds out scanner sites.

The second deliverable is the detector. A lung segmenter (a 3D U-Net, as in the triage work) produces the soft mask $r$. Genuine-nodule masks come from LIDC annotations during training and from a nodule segmenter at test time. That segmenter only weights the loss during training; it is not an input. The two-branch localizer is trained with $L$ above.

The third deliverable is an analysis of what the model attends to. Attribution maps on real nodules should be compared between models trained with and without the $n_i$ term. The question is whether the term actually breaks the "lesion means fake" shortcut, or only lowers scores on the voxels it covers.

Baselines

The naive reference point is an untuned localizer on the same data: the same two-branch network trained with plain per-voxel cross-entropy on full volumes. Two extremes frame it. The CT-GAN screening-model result, fooled 100% of the time, is the floor for "no defense." The clean-scan false-positive rate of this naive localizer is the floor for "a defense that cries wolf."

The strongest existing localization architecture is TBFormer. It reports localization F1 of 0.834 and AUC of 0.997 on NIST16, and AUC 0.955 on CASIA v1.0. It is the most relevant competitor because its noise branch targets exactly the sensor-level traces that blending tries to hide. It will be retrained from scratch on the tampered-LIDC benchmark with its original cross-entropy objective, then again with plain whole-volume BCE + Dice. Both runs use the same 2.5D input, the same GPU-hours, and the same hyperparameter search budget as the proposed model.

HiFi-Net is run the same way as the representative of hard ROI masking. On the image-level side, the MedForensics detector from Toward Medical Deepfake Detection reports 91.6% mean accuracy and 92.2% AP. It will be retrained on tampered LIDC, and its scan-level AUC compared after max-pooling our voxel maps.

ForgDiffuser is included as a boundary-quality reference with wall-clock latency reported alongside. No reported result found on Lacuna for any localizer on CT-GAN-tampered LIDC-IDRI, so all of these numbers will be produced fresh under matched conditions.

Four ablations isolate each ingredient. Removing $n_i$ tests the real-lesion negatives. Removing $s_i$ tests the seam shell. Computing Dice over the whole volume instead of $R$ tests the normalization. Feeding a hard-cropped lung instead of full slices with a weighted loss tests the input-versus-loss question.

Beating the baselines means two conditions together, and both must hold under the diffusion generator held out from training. First, voxel-level F1 must be higher on removals than every baseline. Second, the false-positive rate on genuine nodules must be lower without losing injection F1.

Why not just…?

Why not just crop to the lung and train a standard segmenter? This is the masking recipe that worked for ultrasound and CT triage, and it may do fine on injections far from the pleura. It removes two things, though. It removes the out-of-lung noise reference the noise branch compares against. It also removes the blending shell for edits near the chest wall. HiFi-Net's partial-convolution design embodies the same choice. The hard-crop ablation tests this directly, with results reported separately for edits near the lung border and edits deep in the lung. If hard cropping matches the proposal everywhere, the loss-not-input claim is wrong and the note will say so.

Why not just add Dice to TBFormer? This is the obvious move at the intersection, and Gap 1 in the literature suggests it is untested in forensics. It is the most likely way to capture much of the overlap gain, which is exactly why it is a baseline rather than the contribution. Whole-volume Dice does nothing to stop the model from flagging real nodules, because those voxels carry label zero exactly like healthy lung. The injection-near-real and real-nodule false-positive metrics are where this baseline should fail. If it does not, the $n_i$ term is unnecessary.

Why not just detect nodules and classify each one as real or fake? This two-stage pipeline is a real threat for injections. A good nodule detector plus a patch classifier could match or beat a dense localizer there. It has no answer for removals, because a removed nodule leaves no candidate to classify. It will be built from the same backbone and compared on injections alone and on removals alone. If it wins on injections, the honest conclusion is that dense localization earns its place only through removals and injection-near-real cases.

Why not just use an image-level medical deepfake detector and read its attention map? The MedForensics detector reaches 91.6% accuracy at the image level. Saliency maps from classifiers are coarse, though, and nothing in their training keeps them off genuine lesions. Its Grad-CAM maps will be scored with the same voxel metrics to show the size of the gap.

Proposed Experiments

The decisive check is a three-way comparison on the held-out diffusion generator. It contrasts the full model, the model without $n_i$, and TBFormer trained with BCE + Dice, using three measurements. The first is the false-positive rate on voxels of genuine nodules in untouched scans. The second is voxel F1 on removals. The third is boundary F1 inside the seam shell. The proposal predicts that removing $n_i$ will roughly preserve injection F1 but raise real-nodule false positives sharply. That is the signature of the shortcut. It also predicts that the soft-mask, full-input model will beat hard cropping on removals and on edits near the lung border.

Secondary checks cover four things. One is scan-level detection AUC against the MedForensics detector. Another is robustness to added Gaussian noise and to re-reconstruction at different slice thicknesses, the CT analogue of compression laundering. A third is latency against ForgDiffuser. The last is a sanity transfer to CASIA and NIST16 with $r \equiv 1$ and $n \equiv 0$, to confirm that the loss does not hurt general forgery localization when no anatomy is available. If the real-nodule false-positive gap does not appear, the central claim fails, whatever the other numbers show.