Doctors and segmentation networks often cannot see where a flat polyp, a faint mass, or a thin vessel ends, because the object is nearly the same brightness as the tissue around it. The standard fix is local contrast normalization: a family of image transforms that re-stretch brightness separately in each small neighborhood so that faint differences become visible. The most common version is CLAHE (contrast-limited adaptive histogram equalization). It splits the image into tiles, equalizes each tile's brightness histogram with a cap on how much any brightness level can be stretched, and blends neighboring tiles' curves. Visibility is the goal. But a transform whose tone curve changes from place to place also adds brightness gradients that do not exist in the scene. Where the real edge is weak, which is exactly the case it was meant to help, those artificial gradients can be as large as the real one. The visible edge then sits somewhere other than the true edge.
Physiological signal processing has studied this failure for years under the name morphological distortion. Denoisers and normalizers that look good on average error routinely move or erase the dicrotic notch of a pulse wave or the onset of a QRS complex. The fix that worked there was to supervise and audit the signal's derivatives rather than its raw values. This proposal carries that lens into low-contrast segmentation. It has two parts. The first is a controlled measurement of whether, and by how much, local contrast normalization biases predicted contours. The second is a normalizer built so that its added gradients stay small relative to the scene's own gradients near boundaries. The measurement is the main contribution. The normalizer is worth having only if it beats the cheap alternatives described below.
Core Claim
Write a spatially varying tone mapping as $g(x, I)$, the output brightness at pixel location $x$ when the input brightness is $I$. By the chain rule, the gradient of the normalized image is
$$ \nabla\big[g(x, I(x))\big] = \partial_I g \cdot \nabla I \;+\; \nabla_x g , $$
where $\partial_I g$ is the local slope of the tone curve (the contrast gain) and $\nabla_x g$ is how fast the curve itself changes across space. The first term amplifies real structure. The second term is pure artifact: it is a gradient produced by the normalizer, not by the tissue. We define the artifact ratio
$$ R(x) = \frac{|\nabla_x g|}{\partial_I g \, |\nabla I| + \epsilon}, $$
with $\epsilon$ a small constant. For a fixed amount of spatial variation in the curve, $R$ is large exactly where the scene gradient $|\nabla I|$ is small, which is at low-contrast boundaries.
The claim has three testable parts. First, CLAHE-style normalization produces a systematic, signed shift in predicted contours at weak boundaries, not merely added noise, and that shift is tied to the tile grid. Second, per-point boundary error is predicted by $R$ computed along the true contour. Third, a normalizer trained end-to-end with a penalty on $R$ inside a band around edges keeps the visibility gain while removing the bias. The same analysis applies in one dimension. Sliding-window amplitude normalization of a pulse waveform adds terms built from the derivatives of the running mean and running spread, and those terms can shift the zero-crossing that defines the notch. That gives us a second domain with clean reference signals.
Relation to Prior Work
Two papers motivate the gap by using local normalization without auditing geometry. Convolutional neural network for automated mass segmentation in mammography applies static CLAHE before a VGG-16 U-Net and reports a Dice of 0.951. It measures only overlap at 512×512 resolution, which says nothing about whether margins moved. ALCN: Adaptive Local Contrast Normalization supplies the method we build on: a small network predicts spatially varying normalization weights and is trained jointly with the downstream task. It was evaluated on rigid detection and pose, and its Gaussian stages were never checked for edge displacement. Our normalizer reuses its end-to-end training idea, adds the gradient-faithfulness constraint, and is tested on soft-tissue contours.
The boundary-segmentation line constrains what counts as a contribution. MISNet adds boundary attention with an edge loss. ConDSeg trains invariance to contrast degradation and separates out an explicit uncertainty region in feature space. Structure Boundary Preserving Segmentation enforces key-point shape priors. Combating Uncertainty with Novel Losses penalizes foreground/background probability overlap at boundaries. All four improve the segmenter. None asks whether its input has already been geometrically altered. Our work is orthogonal to them and is meant to be stacked on them, not compared against them as rivals.
From the signal side, Camera-based Recovery of Cardiovascular Signals shows that supervising first derivatives preserves inflection points that raw-value losses smooth away. CP-PPG shows that landmark-specific losses restore the notch and diastolic peak. NEAR-SSB demonstrates the evaluation design we copy: clean references with expert landmarks, corrupted by calibrated artifacts, then scored on landmark fidelity such as QRS duration within 1 ms. Our contribution is to carry derivative-level auditing from waveforms to the input transform of image segmentation. That is the step the file identifies as missing between these communities.
Research Program
The first component is a ground-truth testbed where the true boundary is known independently of human annotation noise. We start from high-contrast sources: ImageCAS coronary CT angiography, which carries vessel labels, and the clearest Kvasir-SEG and CVC-ClinicDB frames. We generate low-contrast versions by compressing foreground-background brightness difference, adding smooth illumination or attenuation fields, and adding noise, all at controlled levels. Because the corruption is pointwise or smooth, the true contour is the original label. This mirrors how QTDB plus MIT-BIH Noise Stress artifacts serve NEAR-SSB.
The second component is the measurement. We sweep CLAHE tile size and clip limit and record signed contour displacement, meaning the outward-positive distance from the true contour to the predicted one, rather than unsigned error. We record it as a function of local contrast and of position relative to the tile grid. We do this for the raw normalized image itself, by locating edges at the maximum gradient magnitude, and for segmenters trained on it.
The third component is the gradient-faithful normalizer. It predicts a field of monotone, piecewise-linear tone curves on a coarse grid, with the slope capped as CLAHE's clip limit caps it. It is trained jointly with the segmenter. The loss adds a penalty on $R$ within a few pixels of the label boundary, computed in closed form from the curve parameters.
The fourth component is a one-dimensional replication on WF-PPG. Finger PPG serves as the reference. Sliding-window normalizations of wrist PPG are audited for notch and diastolic-peak timing shift in milliseconds, and the same penalty is applied to a learned normalizer.
Baselines
The naive reference is a strong segmenter on unnormalized input with standard intensity augmentation. We use nnU-Net for the volumetric data and the same Res2Net-based polyp backbone for the 2D data. This tells us whether any normalization helps at all.
The static-preprocessing baseline is the recipe of Convolutional neural network for automated mass segmentation in mammography. CLAHE is applied before training, with tile size and clip limit tuned on validation data using the same number of trials given to our method. That paper reports Dice 0.951, but on a combined set that includes private data. We therefore rerun the recipe on CBIS-DDSM and INbreast only and do not compare against the published number.
The learned-normalizer baseline is ALCN-style joint training without the $R$ penalty, under the same architecture, data, and budget. It is the ablation that isolates our key ingredient. The file contains no reported ALCN result on medical segmentation, so this baseline will be run by us.
The two-channel baseline feeds both the raw and the CLAHE image to the segmenter. It is the most dangerous competitor and is discussed below.
The strongest published system on a low-contrast public benchmark in the file is ConDSeg, which reports 81.2% mIoU on Kvasir-Sessile (ConDSeg). We will run it with and without our normalizer in front.
Beating these baselines means the following on the synthetic testbed and on Kvasir-Sessile and ETIS: lower absolute mean signed displacement and lower HD95 at the lowest contrast levels than every baseline, Dice no worse than the best static CLAHE setting, and a reduction in contour error that remains after stacking on ConDSeg.
Why not just…?
Why not just skip normalization and rely on augmentation and a strong segmenter? This may well be enough. ConDSeg's consistency training under contrast distortion already teaches invariance to contrast degradation. If the unnormalized nnU-Net matches all normalizers on signed displacement, the measurement study still stands as the result. It would show that normalization is unnecessary at this data scale and that the mammography-style pipeline costs geometry for nothing. We report that outcome as is.
Why not just feed raw and CLAHE images as two channels? This is the real threat. The network could read visibility from one channel and geometry from the other, and nothing in the file rules it out. We include it as a full baseline with the same budget. If it matches our normalizer on displacement and HD95, we drop the method claim. The proposal then reduces to the diagnostic: the $R$ map and the tile-grid test, which explain why the extra raw channel is needed. Our expectation is that two-channel input fixes average error but not the signed bias near tile seams. The grid-phase experiment below checks that directly.
Why not just use boundary-specific losses or attention instead? Methods such as Combating Uncertainty with Novel Losses, which lifts Dice from 82.01% to 92.24% on the 2018 Atrial Segmentation Challenge, and MISNet's boundary attention sharpen predictions toward whatever edge the input shows. If the input edge has moved, a sharper prediction of the moved edge does not help. We test this by adding the overlap loss to every input variant and checking whether the normalization-induced bias survives it.
Proposed Experiments
The decisive check is a tile-grid phase test. We shift the CLAHE grid by half a tile and retrain. If contour error is caused by the normalizer, per-point signed displacement will flip or move with the grid while the anatomy stays fixed. If the error comes from the anatomy, it will not move.
The second check is predictive. Rank boundary points by $R$ computed along the true contour, and test whether $R$ predicts per-point error better than local contrast $|\nabla I|$ alone, using rank correlation on the synthetic set and on held-out ETIS.
The third check is the main comparison. We test all baselines across a contrast sweep on synthetic ImageCAS and Kvasir. We then test on real Kvasir-Sessile, ETIS-LaribPolypDB, and the public mammography sets, using Dice, HD95, boundary F-score, and mean signed displacement.
The fourth check is the one-dimensional replication on WF-PPG. We measure notch and diastolic-peak timing error against the finger reference under sliding-window normalization, with and without the derivative-faithfulness penalty. CP-PPG's reported MAE of 0.09 and Pearson correlation of 0.91 (CP-PPG) serve as context for waveform fidelity, not as a direct target.
A null result in the phase test would falsify the central premise, and we would report it as such.
References
- Convolutional neural network for automated mass segmentation in mammography
- ALCN: Adaptive Local Contrast Normalization
- Multi-scale information sharing and selection network with boundary attention for polyp segmentation
- ConDSeg: A General Medical Image Segmentation Framework via Contrast-Driven Feature Enhancement
- Structure Boundary Preserving Segmentation for Medical Image With Ambiguous Boundary
- Combating Uncertainty with Novel Losses for Automatic Left Atrium Segmentation
- Camera-based Recovery of Cardiovascular Signals from Unconstrained Face Videos using an Attention Network
- Reliable wrist PPG monitoring by mitigating poor skin sensor contact
- NEAR-SSB: Noisy ECG Artifact Removal via Spectral Schrodinger Bridge