Research in Science and Society · Vol. 2 No. 11 (2026)
Published November 26, 2026

Which Illumination Changes Can Contrast Normalization Remove? A Held-Out Test on Printed Numerals

Patrick Cooper, Gregory Shaw, Tim Carter

Abstract

Uneven illumination changes the intensity pattern of a numerical legend, independent of its position in the image. We used 252 held-out photographs from the original GTSRB competition to test whether intensity normalization preserves recognition under several controlled changes. Whole-crop normalization gave 93.25% accuracy on the original photographs and preserved every prediction after a bounded uniform contrast change. Its accuracy fell to 43.65% under a shadow that varied across columns. A column-normalized classifier preserved its own 90.48% accuracy under that shadow but fell to 40.48% under a localized veil varying in both dimensions. Whole-crop normalization also improved on raw intensities under a clipped highlight, although it still lost 13.49 points from its original score. The illumination pattern determined which normalization helped.

Keywords — numeral recognition, photometric robustness, image normalization, GTSRB, paired track evaluation

1. Introduction

Multi-perspective visual recognition can be difficult even when the meaning and position of the target have not changed. Consider a printed label imaged once in relatively even light and once beside a shadow. The ink, target class, and crop geometry are the same. Its pixel intensities can still change unevenly from side to side. A normalization that removes one intensity scale for the entire crop may undo a uniform exposure difference. It can provide a very different response when the change is spatially varying or when many pixels reach the upper intensity limit.

Jin et al. (2024) consider multi-perspective visual recognition in a mixed-reality study of control panels. Printed control labels and signs are different objects, but both tasks motivate measuring sensitivity to changes in visibility of the glyph itself. This study examines one such source of sensitivity on six numerical label classes in existing traffic-sign photographs, after using the supplied annotations to locate the sign. The analysis does not ask a detector to locate objects or a reading system to produce free-form text. It evaluates a fixed six-class decision, which is a useful diagnostic when visually similar known symbols can be confused.

Camera response relates the radiance of a scene to the recorded intensity in an image (Grossberg & Nayar, 2004). Reconstruction methods that combine multiple exposures illustrate why clipping in a single exposure can remove information about previously distinct intensities (Debevec & Malik, 1997). Photometric normalization also has a long engineering history in image enhancement and color constancy, with methods based on local contrast or comparisons of lightness across different scales (Barnard et al., 2002; Jobson et al., 1997; Zuiderveld, 1994). These methods motivate varying how broadly a single intensity correction is applied. Our analysis compares lightweight normalizations and two specified spatial patterns using the same held-out photographs.

Research question. How much does normalizing intensities at the whole-crop or column level preserve the class predictions of a printed numeral under controlled uniform, spatial, and clipped intensity changes?

The mathematical expectation for whole-crop normalization is exact invariance to a uniform positive affine change without quantization or clipping, when the crop has nonzero intensity variance. A locally defined gain field need not meet that condition. A narrower normalization may remove a correspondingly narrower disturbance while discarding some contrast information needed by the recognition rule. This distinction can be examined with identical source crops and known perturbations, without conflating it with changes from the physical camera viewpoint.

2. Photographs and Held-Out Tracks

We drew the source images from the public German Traffic Sign Recognition Benchmark, a multi-class image benchmark collected from real driving sequences (Stallkamp et al., 2011; Stallkamp et al., 2012). The study uses the original competition training and sorted test releases. In these releases, each class directory has the underlying image records grouped by track. A track contains 30 frames of one physical sign. The unit being predicted is one crop, whereas the reliability unit for comparing models is the physical-sign track. The archived partition reflects the benchmark’s existing separation, and the curated subset gives each chosen class equal weight.

The class IDs correspond to six printed legends: 30, 50, 60, 70, 80 and 100. For each class in each partition, two nonoverlapping blocks of seven tracks were selected from the sorted archive order. The first block starts one third of the way into the remaining positions after reserving fourteen tracks. The other starts the same offset before the last eligible seven-track block. This is a deterministic way to obtain a subset beyond the first part of each class directory. It does not imply probability sampling from the complete release. From each selected track, the frames at zero-based sorted positions 8, 16 and 24 were retained. The result is 252 fitting photographs from 84 tracks and 252 test photographs from another 84 tracks. Each selected raw image was checked against the original ZIP checksum for its member, and the matching annotation was retained.

Bounding boxes from the archive were used to crop each sign from its supplied image. The bounding region was converted to grayscale and resized to 32 by 32 using bilinear interpolation. A central 18-by-22 window emphasizes the printed characters and decreases the contribution of the outer sign rim. The perturbations act on these cropped arrays, so all transformation pairs have identical geometry and class labels. This is a label-recognition audit where crop localization has already occurred. Numerical classes were selected because common boundary shapes make the differences inside the crop particularly important. Color descriptors can contribute to recognition when the target class depends on color (van de Sande et al., 2010); the present inputs use intensity alone to make the effect of the specified changes directly visible.

Study design and accuracy of three normalization rules for the same held-out crops, under four intensity transformations.

Figure 1. Models are fitted on original training crops. Every score uses the same captured holdout photographs, evaluated both as archived and after the stated intensity changes.

3. Perturbations, Models, and Track-Level Estimates

The comparison uses five versions of each test image. The original crop has grayscale values in the interval from zero to one. The bounded affine change multiplies every value by 0.58 and adds 0.18 without clipping. The side shadow changes the gain linearly across columns from 0.38 to 0.92, then adds 0.04. The clipped highlight multiplies values by 1.55 and adds 0.42, truncating values above one. The localized veil mixes each pixel with white using a smooth centered mask that varies across both rows and columns, with weight highest near the center of the numerals. The result therefore mimics a local loss of contrast without requiring a spatially uniform saturation level. The paper distinguishes controlled variations on real photographs from collecting photos under separate lighting arrangements. Robustness benchmarks likewise use perturbation families to specify which image changes are being evaluated (Hendrycks & Dietterich, 2019). The numerical treatments here are independent, and their magnitudes were not matched on average pixel change or on visual severity.

Three classifiers share a six-class logistic objective and a fixed penalty of eight on each slope coefficient, with unpenalized intercepts (Hastie et al., 2009). Each sees 396 inputs in a fixed spatial order. The first receives raw pixel intensities. The second first subtracts the whole-crop mean and divides by the whole-crop standard deviation. The third applies that transformation column by column. The latter rule is an exploratory mechanistic check selected after the initial raw-versus-global experiment. For an affine transformation with positive gain, centering cancels the offset and dividing by the standard deviation cancels the gain. Applying normalization by column extends that argument to changes whose gain and offset can be different across columns while remaining constant down each column. Nearly constant groups are represented by zeros. The pipeline applies light changes in floating point, which preserves these exact algebraic cases and makes numerical invariance testable.

Every classifier is fitted only to original training images in its own representation. No transformed examples enter the fit or change the intercepts after training. Prior research on this benchmark uses multi-scale and multi-column neural networks to learn stronger representations (Sermanet & LeCun, 2011; Cireşan et al., 2012). Fixed pixel arrays simplify the current comparison by avoiding changes in learned feature architecture. Other representations might suppress or exploit different intensity and edge structures, including gradient histograms, local binary patterns and spatially pooled features (Dalal & Triggs, 2005; Ojala et al., 2002; Lazebnik et al., 2006). A visual benchmark about descriptor performance should state which features are measured and how the image pairs were generated (Balntas et al., 2017). The reported result pertains to the three fitted pixel rules.

The accuracy measure first averages correct decisions over the three frames in each track, then averages tracks within class, and then averages the six class scores. The classes and track sizes are balanced in this subset, so the resulting number agrees with ordinary image accuracy. The decomposition still matters when interpreting the uncertainty and the role of a class with many nearby frames (Brodersen et al., 2010; Sokolova & Lapalme, 2009). Paired changes compare the same photo before and after a transformation or between two fitted rules. The analysis constructs percentile intervals using 3,000 bootstrap samples stratified by class, resampling the 14 whole tracks within each class and retaining all frames from every sampled track (Efron, 1979; Field & Welsh, 2007; Hesterberg, 2015). Pairing shares the original case in both conditions (McNemar, 1947). Resampling by track accounts for correlation among nearby frames. The models and perturbation settings remain fixed, so the intervals do not capture how results would vary if the classifiers were retrained on new tracks.

4. Results

Whole-crop normalization was strongest on the original photos at 93.25% accuracy. It gave exactly the same predictions on the bounded affine images and produced normalized arrays whose largest absolute difference from the original normalized arrays was below 6 × 10⁻¹⁵. The raw classifier changed its prediction on 36.90% of these same crops under the bounded change, even though the estimated accuracy difference from its original result was −6.35 points with an interval crossing zero. That contrast illustrates why the proportion of changed decisions is informative even when changes to correct and incorrect predictions partly offset each other. The same reason motivates keeping the accuracy and prediction agreement endpoints separate.

Table 1. Balanced track accuracy under the archived and controlled test conditions.

Test condition Raw pixels Whole-crop normalization Column normalization Pixels at intensity 1
Original 67.86% 93.25% 90.48% 2.40%
Bounded affine 61.51% 93.25% 90.48% 0.00%
Side shadow 45.63% 43.65% 90.48% 0.00%
Clipped highlight 31.35% 79.76% 77.38% 39.69%
Localized veil 30.95% 50.00% 40.48% 2.40%

All methods use the same 84 held-out tracks. Saturation is measured before normalization. The column-specific model is an exploratory check of the transformation mechanism.

The side-shadow perturbation decreased whole-crop-normalized accuracy by 49.60 points [−55.16, −44.05] relative to the original photographs. Neither the side-shadow crop nor its uniformly transformed counterpart contained pixels at the saturation limit. The loss from the side shadow therefore arises in a condition where whole-image scaling cannot remove the relative gradient across columns. The column rule recovered its own original predictions exactly for this transform. Compared with whole-crop normalization on the transformed inputs, it gained 46.83 points [40.87, 52.78]. This illustrates recovery under a known alignment between the normalization groups and the photometric perturbation.

Table 2. Paired differences in recognition under selected conditions.

Condition and contrast Difference (percentage points) 95% track-bootstrap interval
Clipped highlight, whole-crop minus raw +48.41 [40.87, 55.56]
Clipped highlight minus original, whole-crop rule −13.49 [−19.44, −7.54]
Side shadow, column minus whole-crop +46.83 [40.87, 52.78]
Localized veil, column minus whole-crop −9.52 [−14.30, −4.37]
Original, column minus whole-crop −2.78 [−5.95, 0.00]

Three thousand paired resamples of physical-sign tracks, stratified by class.

Whole-crop normalization remained much more accurate than raw pixels under the clipped highlight. It was also more accurate than the column rule under the localized veil. The different outcomes are consistent with the form of the transformations. Clipping can erase distinctions between higher-valued pixels even where many darker strokes remain visible. A localized veil can reduce contrast in precisely the central portion that distinguishes one class from another. In this experiment the raw classifier made similarly many errors in the latter two conditions, while the normalized rules showed clear differences across them. A single unstratified score over all transformed copies would obscure that variation.

5. Discussion

The results show three different effects of preprocessing. Whole-crop normalization removes a specified global nuisance with exact mathematical equivalence. The column rule removes a directionally structured nuisance which the global rule cannot cancel. Under a transformation that varies in both dimensions, both normalizations can retain less of the useful evidence. This division is easy to miss when all light changes are grouped together as a severity score. In the present design, the absolute mean pixel change of the side shadow, about 0.100 on the unit scale, is close to the bounded affine change’s 0.093. Yet those conditions yield very different accuracy after global normalization. The organization of the change matters more for this comparison than its mean numerical magnitude.

One motivation for a controlled diagnostic is to understand when a simpler rule already guarantees the desired invariance. Training augmentation offers another way to target robustness, and work using multiple input corruptions shows how the training distribution can be broadened (Hendrycks et al., 2020). The present fixed-rule experiment isolates a separate intervention before that change. Controlled image perturbations cannot predict how a new camera domain will affect recorded recognition, a distinction drawn in comparisons of natural and synthetic distribution shifts (Taori et al., 2020). Dataset-specific background, acquisition and representation choices can also lead to systematic changes in nominal performance (Torralba & Efros, 2011; Saenko et al., 2010; Geirhos et al., 2020). Direct measurements with a panel dataset would be needed to determine the observed lighting patterns and whether the same normalization groups are an accurate description.

The exploratory column check provides an interpretable exact invariance result for the specified shadow, conditional on its construction. It should not be treated as a selection of the strongest rule for all lighting. Choosing preprocessing after examining multiple alternatives can bias the reported accuracy if the same images are reused for selection and confirmation (Varma & Simon, 2006; Cawley & Talbot, 2010). The present analysis distinguishes the prespecified raw-versus-global comparison from the exploratory check and keeps the four light patterns separate. In future measurement, a held-out group acquired under independently measured illumination could assess whether the deterministic mechanism generalizes to naturally occurring variation.

The class inventory also limits the question the result answers. A system that recognizes one of these six known legends can always produce an answer, even for an unreadable crop or a new inscription. An operational reading task may instead require a separate decision to defer an uncertain label. A test of that decision would need to record verification or abstention outcomes in addition to accuracy. The present benchmark’s fixed decision set is useful for identifying the influence of illumination while keeping those additional sources of error outside the experiment.

6. Conclusion

On real cropped photographs of printed numeral legends, normalization protected recognition most reliably when its spatial groups matched the simulated intensity change. Whole-crop normalization exactly preserved the original results under bounded uniform affine contrast, whereas column normalization was needed for the matching column-wise shadow mechanism. Localized veiling and clipping remained consequential. Evaluations of label recognition can identify these limits by retaining the same test objects and reporting the spatial form of the intensity change alongside the score.

Data and Code Availability

The original GTSRB competition releases were accessed from the official public source on 23 November 2026. The archive identifies the research dataset, acquisition and citation information, with no separate redistribution terms stated in the inspected archive record. The supplied retrieval manifest lists byte ranges, source version tags, central-directory hashes and per-member hashes for the original subset. Code, aggregate results, and the original research figure accompany the paper.

References

  1. Balntas, V.; Lenc, K.; Vedaldi, A.; Mikolajczyk, K. (2017). HPatches: A Benchmark and Evaluation of Handcrafted and Learned Local Descriptors. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 3852–3861. https://doi.org/10.1109/cvpr.2017.410
  2. Barnard, K.; Cardei, V.; Funt, B. (2002). A comparison of computational color constancy algorithms. I: Methodology and experiments with synthesized data. IEEE Transactions on Image Processing, 11(9), 972–984. https://doi.org/10.1109/tip.2002.802531
  3. Brodersen, K. H.; Ong, C. S.; Stephan, K. E.; Buhmann, J. M. (2010). The Balanced Accuracy and Its Posterior Distribution. 2010 20th International Conference on Pattern Recognition, 3121–3124. https://doi.org/10.1109/icpr.2010.764
  4. Cawley, G. C.; Talbot, N. L. C. (2010). On Over-fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation. Journal of Machine Learning Research, 11, 2079–2107. https://jmlr.org/papers/v11/cawley10a.html
  5. Cireşan, D.; Meier, U.; Masci, J.; Schmidhuber, J. (2012). Multi-column deep neural network for traffic sign classification. Neural Networks, 32, 333–338. https://doi.org/10.1016/j.neunet.2012.02.023
  6. Dalal, N.; Triggs, B. (2005). Histograms of Oriented Gradients for Human Detection. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), 1, 886–893. https://doi.org/10.1109/cvpr.2005.177
  7. Jin, T.; Kan, D.; Yin, S.; Zhao, R. (2024). A Study on Multi-Perspective Master-Slave Monitoring and Visual Recognition of Control Panels Based on Mixed Reality. 2024 10th International Conference on Systems and Informatics (ICSAI), 1–5. https://doi.org/10.1109/icsai65059.2024.10893733
  8. Debevec, P. E.; Malik, J. (1997). Recovering high dynamic range radiance maps from photographs. Proceedings of the 24th annual conference on Computer graphics and interactive techniques - SIGGRAPH '97, 369–378. https://doi.org/10.1145/258734.258884
  9. Efron, B. (1979). Bootstrap Methods: Another Look at the Jackknife. The Annals of Statistics, 7(1), 1–26. https://doi.org/10.1214/aos/1176344552
  10. Field, C. A.; Welsh, A. H. (2007). Bootstrapping Clustered Data. Journal of the Royal Statistical Society Series B: Statistical Methodology, 69(3), 369–390. https://doi.org/10.1111/j.1467-9868.2007.00593.x
  11. Geirhos, R.; Jacobsen, J. H.; Michaelis, C.; Zemel, R.; Brendel, W.; Bethge, M.; Wichmann, F. A. (2020). Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11), 665–673. https://doi.org/10.1038/s42256-020-00257-z
  12. Grossberg, M. D.; Nayar, S. K. (2004). Modeling the Space of Camera Response Functions. IEEE Transactions on Pattern Analysis and Machine Intelligence, 26(10), 1272–1282. https://doi.org/10.1109/TPAMI.2004.88
  13. Hastie, T.; Tibshirani, R.; Friedman, J. (2009). The Elements of Statistical Learning. Springer. https://doi.org/10.1007/978-0-387-84858-7
  14. Hendrycks, D.; Dietterich, T. G. (2019). Benchmarking Neural Network Robustness to Common Corruptions and Perturbations. International Conference on Learning Representations. https://arxiv.org/abs/1903.12261
  15. Hendrycks, D.; Mu, N.; Cubuk, E. D.; Zoph, B.; Gilmer, J.; Lakshminarayanan, B. (2020). AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty. International Conference on Learning Representations. https://arxiv.org/abs/1912.02781v2
  16. Hesterberg, T. C. (2015). What Teachers Should Know About the Bootstrap: Resampling in the Undergraduate Statistics Curriculum. The American Statistician, 69(4), 371–386. https://doi.org/10.1080/00031305.2015.1089789
  17. Jobson, D. J.; Rahman, Z.; Woodell, G. A. (1997). A multiscale retinex for bridging the gap between color images and the human observation of scenes. IEEE Transactions on Image Processing, 6(7), 965–976. https://doi.org/10.1109/83.597272
  18. Lazebnik, S.; Schmid, C.; Ponce, J. (2006). Beyond Bags of Features: Spatial Pyramid Matching for Recognizing Natural Scene Categories. 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition - Volume 2 (CVPR'06), 2, 2169–2178. https://doi.org/10.1109/cvpr.2006.68
  19. McNemar, Q. (1947). Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika, 12(2), 153–157. https://doi.org/10.1007/bf02295996
  20. Ojala, T.; Pietikainen, M.; Maenpaa, T. (2002). Multiresolution gray-scale and rotation invariant texture classification with local binary patterns. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(7), 971–987. https://doi.org/10.1109/tpami.2002.1017623
  21. Saenko, K.; Kulis, B.; Fritz, M.; Darrell, T. (2010). Adapting Visual Category Models to New Domains. Lecture Notes in Computer Science, 213–226. https://doi.org/10.1007/978-3-642-15561-1_16
  22. Sermanet, P.; LeCun, Y. (2011). Traffic sign recognition with multi-scale Convolutional Networks. The 2011 International Joint Conference on Neural Networks, 2809–2813. https://doi.org/10.1109/ijcnn.2011.6033589
  23. Sokolova, M.; Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https://doi.org/10.1016/j.ipm.2009.03.002
  24. Stallkamp, J.; Schlipsing, M.; Salmen, J.; Igel, C. (2011). The German Traffic Sign Recognition Benchmark: A multi-class classification competition. The 2011 International Joint Conference on Neural Networks, 1453–1460. https://doi.org/10.1109/ijcnn.2011.6033395
  25. Stallkamp, J.; Schlipsing, M.; Salmen, J.; Igel, C. (2012). Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognition. Neural Networks, 32, 323–332. https://doi.org/10.1016/j.neunet.2012.02.016
  26. Taori, R.; Dave, A.; Shankar, V.; Carlini, N.; Recht, B.; Schmidt, L. (2020). Measuring Robustness to Natural Distribution Shifts in Image Classification. Advances in Neural Information Processing Systems, 33. https://proceedings.neurips.cc/paper_files/paper/2020/hash/d8330f857a17c53d217014ee776bfd50-Abstract.html
  27. Torralba, A.; Efros, A. A. (2011). Unbiased look at dataset bias. CVPR 2011, 1521–1528. https://doi.org/10.1109/cvpr.2011.5995347
  28. van de Sande, K. E. A.; Gevers, T.; Snoek, C. G. M. (2010). Evaluating Color Descriptors for Object and Scene Recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(9), 1582–1596. https://doi.org/10.1109/tpami.2009.154
  29. Varma, S.; Simon, R. (2006). Bias in error estimation when using cross-validation for model selection. BMC Bioinformatics, 7(1). https://doi.org/10.1186/1471-2105-7-91
  30. Zuiderveld, K. (1994). Contrast Limited Adaptive Histogram Equalization. Graphics Gems, 474–485. https://doi.org/10.1016/b978-0-12-336156-1.50061-6