‹ All demos
21 Oct 2026 · Medicine & AI

Teaching a PET scanner to see depth, with no answer key

PET scanners find cancer by catching pairs of gamma rays, but they blur the picture because they can’t tell how deep inside each detector crystal a ray stopped. This team trained a neural network to work out that depth using nothing but a radioactive dot placed at a few known spots, then calibrated all 144 detectors of a real scanner in under an hour.

Mojahed Abushawish, Pablo Galve, Iván Colmenarejo Allavena, Carlos Galindo Morata, Sara Gaitan Dominguez & Jose Manuel Udias

Why it matters

Sharp PET images need every detector to know how deep each gamma ray hit, but today that calibration takes collimators, motorised stages and hours per detector, which doesn’t scale to new total-body scanners with hundreds or thousands of modules. Using only a point source placed by hand at 11 spots for 55 minutes, this label-free method calibrated a whole 144-module scanner and sharpened its radial resolution from 4.99 to 2.90 mm (42 %), enough to separate 1.2 mm rods that stayed merged without it.

The paper

PhysiCal-PET: Physics-driven neural networks for the rapid position Calibration of PET Scanners

Mojahed Abushawish, Pablo Galve, Iván Colmenarejo Allavena, Carlos Galindo Morata, Sara Gaitan Dominguez & Jose Manuel Udias (Grupo de Física Nuclear, Universidad Complutense de Madrid). arXiv:2610.24193 [physics.med-ph], submitted 16 Oct 2026. Read on arXiv · PDF

In plain language: in a PET scan, each radioactive decay in the body sends two gamma rays flying in opposite directions. The scanner draws a straight line, the line of response (LOR), between the two detector crystals that caught them, and builds the image from millions of such lines. The crystals are 15 mm deep, though, and a ray can stop anywhere along that depth. If the scanner just guesses the same depth every time, lines from points away from the centre come out shifted. This “parallax error” smears the image outwards (radially).

Detectors can sense depth from how the light splits between their two ends, but turning that signal into millimetres normally needs a lab calibration with a narrow, collimated beam. PhysiCal-PET skips that step. It puts an ordinary point source at a few known spots inside the assembled scanner and trains a neural network to predict each ray’s depth so that every line passes as close as possible to the known spot. No one ever tells the network the true depth. In simulation it reached a depth error of 0.98 mm, almost the same as a network trained on perfect answers (0.96 mm). On the real scanner it improved every image measure the team checked.

Try it

This is a 2-D toy version of the paper’s method. The scanner geometry comes from the paper: 24 blocks around a 166 mm ring, 22 mm wide and 15 mm deep, 1.375 mm crystals, LYSO attenuation 0.087 /mm, ±0.5 mm source blurring and the 20 % trimmed loss. The detector’s depth signal and its noise are illustrative, tuned so the best possible depth error is about 1 mm as in the paper. A straight-line rule per block stands in for the paper’s neural network. The toy’s output numbers are not the paper’s results. Those are in the table below.

1 · Teach the depth without labels

Training steps (500 events each)
Trimmed distance from source to line (the loss)
Depth error, label-free (never seen in training)
Depth error, supervised with true depths (the floor)
The loss and the hidden depth error fall together (like the paper’s Fig. 2)
Loss: trimmed distance to line (mm)Depth error, label-free (mm)Depth error, supervised (mm, dashed)
Learned depth vs light-sharing signal, one block (like Fig. 6)
Events: true depth vs signal ratioLearned ruleBefore training: fixed 5 mm

Try moving the calibration source to the centre (0 mm) and press Reset then Train. From the centre almost every line hits the crystals head-on, so a wrong depth barely moves the line and the loss has little to learn from. That is why the paper put its sources 50 mm off-centre.

2 · See what calibration does to the image

Depth used for the lines in the ring
Radial blur (FWHM), fixed 5 mm depth
Radial blur, label-free learned depth
Radial blur, true depth (best case)
Sharper with learned depth vs fixed
The scanner ring: lines of response from the test source

Dots show where each ray was placed in the crystal. The inset zooms in 6× on a 14 mm square around the source (marked with a cross).

How far lines miss the source, along the radius
Fixed 5 mmLearned (label-free)True depth

Blur = full width at half maximum of the miss distance, measured along the radius, for the lines that cross the radius within 30° of a right angle. These are the lines that pin down a point’s radial position. It uses 6,000 simulated pairs in this 2-D toy. It is not a reconstructed image, so compare it with the paper’s numbers by trend only. Panel 2 uses whatever Panel 1 has learned so far.

What the paper measured

Measure (real preclinical scanner unless noted)Fixed depth 5 mmPhysiCal-PETChange
Trimmed mean source-to-line distance1.49 mm1.14 mm−24 %
Untrimmed mean source-to-line distance2.23 mm1.92 mm−14 %
Point-source FWHM, radial4.99 ± 0.16 mm2.90 ± 0.09 mm−42 %
Point-source FWHM, axial2.03 ± 0.34 mm1.60 ± 0.10 mm−21 %
Point-source FWHM, tangential1.57 ± 0.12 mm1.50 ± 0.06 mm≈ same
Derenzo 1.7 mm rods, peak-to-valley ratio1.28 ± 0.041.88 ± 0.33+47 %
Derenzo 1.2 mm rods, valleys resolved1 of 54 of 5
Simulation: depth error (MAE), label-free vs supervised floor0.96 mm (supervised)0.98 mm+0.02 mm

Calibration: a 22Na point source (≈ 281 kBq) at 11 positions, 50 mm off-axis, 5 min each (≈ 55 min, 5.3 × 10⁷ coincidences) on a scanner with 144 LYSO modules in 6 rings of 24 blocks. Source: Sections III-A to III-F of the paper.

The maths

Each ray’s position is the crystal’s known spot on the block face plus the predicted depth ẑ along the block’s normal (Eq. 3):

r̂ = R_b + v_b1·x_cryst + v_b2·y_cryst + v_b3·ẑ, ẑ = f_θ(signals, block, crystal)

The loss is the perpendicular distance from the known source to the line through the two predicted positions (Eqs. 4–5), with the source position jittered by up to Δs = 0.5 mm in each direction (Eq. 6):

dLOR = ‖û × (s̃ − r̂₁)‖ / ‖û‖, û = r̂₂ − r̂₁, s̃ = s + η, η ~ U(−Δs, Δs)

To ignore randoms and scattered events, each batch of 500 keeps only the 80 % of events with the smallest distances (α = 0.2) and averages them (Eqs. 7–8):

𝓛 = (1/|K|) Σn∈K dLOR,n, K = the ⌊(1−α)|B|⌋ smallest distances

The depth signal is the share of light reaching the back of the crystal, R = SDPC/(SDPC+Sfront) (Eq. 9). Deeper hits send more light to the back.

In this toy, ẑ = ab + wb(R − 0.4) for each block b, starting from a = 5 mm and w = 0 (the paper’s fixed-depth baseline). It is trained with Adam using numerical gradients of the trimmed loss. The toy detector’s true response, R = ob + kb·z/15 + noise (σ = 0.03), with a different made-up ob and kb for each block, is illustrative. The paper used a FiLM-conditioned residual network with per-module and per-crystal embeddings, trained in two stages (Δs = 1 mm, then 0.5 mm). Photons stop at a random depth drawn from e−μl with μ = 0.087 /mm, so the mean depth over 15 mm is about 5.9 mm, as the paper states.

How to use it

Demo by Grok Bot for the Daily Research Explorer. Toy model in your browser; all measured values are quoted from arXiv:2610.24193.