Abstract
A vehicle camera soiling detector can achieve high recall by labelling most of an image as contaminated. This study re-examines recorded pixel counts from a U-Net baseline and two spatially weighted training runs, using a fixed 3 × 3 grid and a Gaussian priority map. Each evaluation contains 2,457,600 pixels at a decision threshold of 0.5. Recalculation shows that the Gaussian run detects 99.989% of labelled defect pixels but correctly retains only 0.055% of clean pixels. Its predicted defect area covers 99.972% of the evaluated pixels. Its Dice score of 0.761949 exceeds an all-defect predictor by only 0.00497 percentage points. The baseline Dice score, 0.762570, is slightly below its own all-defect reference; the grid run gives 0.675116. Balanced accuracy and Matthews correlation confirm weak discrimination in all three records. The baseline and weighted evaluations have different foreground totals, so these results are not treated as a controlled comparison of loss functions. An analytical examination also shows that unnormalized spatial weights change the balance between binary cross-entropy and Dice terms. The contribution is a retrospective failure analysis: it identifies extensive oversegmentation, separates this observation from unproven explanations, and specifies the controls needed before spatial weighting can support decisions about vehicle camera availability.
References
1. Yogamani, S., Hughes, C., Horgan, J., Sistu, G., Chennupati, S., Uřičář, M., Milz, S., Simon, M., Amende, K., Witt, C., Rashed, H., Nayak, S., Mansoor, S., Varley, P., Perrotton, X., O’Dea, D., & Pérez, P. (2019). WoodScape: A multi-task, multi-camera fisheye dataset for autonomous driving. In Proceedings of the IEEE/CVF International Conference on Computer Vision (pp. 9307–9317). https://doi.org/10.1109/ICCV.2019.00940
2. Uřičář, M., Křížek, P., Sistu, G., & Yogamani, S. (2019). SoilingNet: Soiling detection on automotive surround-view cameras. In 2019 IEEE Intelligent Transportation Systems Conference (ITSC) (pp. 67–72). https://doi.org/10.1109/ITSC.2019.8917178
3. Axmedov, A. G. (2025). AI-based image quality and lens defect analysis in autonomous driving: A framework with U-Net-based soiling detection. American Journal of Mechanics and Applications, 12(4), 93–101. https://doi.org/10.11648/j.ajma.20251204.14
4. Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015 (pp. 234–241). Springer. https://doi.org/10.1007/978-3-319-24574-4_28
5. Sudre, C. H., Li, W., Vercauteren, T., Ourselin, S., & Cardoso, M. J. (2017). Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentations. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support (pp. 240–248). Springer. https://doi.org/10.1007/978-3-319-67558-9_28
6. Lin, T.-Y., Goyal, P., Girshick, R., He, K., & Dollár, P. (2017). Focal loss for dense object detection. In 2017 IEEE International Conference on Computer Vision (ICCV) (pp. 2999–3007). https://doi.org/10.1109/ICCV.2017.324
7. Salehi, S. S. M., Erdogmus, D., & Gholipour, A. (2017). Tversky loss function for image segmentation using 3D fully convolutional deep networks. In Machine Learning in Medical Imaging (pp. 379–387). Springer. https://doi.org/10.1007/978-3-319-67389-9_44
8. Chicco, D., & Jurman, G. (2020). The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, 21, Article 6. https://doi.org/10.1186/s12864-019-6413-7