journal article·2026-07-11Open access

A Comparison of Supervised Machine Learning Algorithms for Defective Pixel Detection

Bárbaro M. López-Portilla, Kristian Balzer, Lorena Carballo, Miguel Figueroa, Fernanda Peset, Miguel E. Iglesias Martínez, Pedro Fernández de Córdoba

Applied Sciences· Volume 16· Issue 14

Abstract

Detecting defective pixels in CMOS Image Sensors is a critical task for ensuring high-quality image acquisition, as even minor defects can significantly degrade performance in vision systems and downstream processing. This study evaluates the performance of several supervised machine learning algorithms for defective pixel detection using 300 grayscale images of 512×512 pixels from the publicly available TAMPERE17 dataset, in which dead and hot pixels were randomly introduced. The evaluated algorithms include k-Nearest Neighbors (kNN), Naïve Bayes, Decision Tree, Random Forest, Support Vector Machine (SVM), and Multilayer Perceptron. Performance was assessed using specificity, recall, precision, and the phi coefficient. A sensitivity analysis was additionally performed using neighborhood windows of 3×3, 5×5, and 7×7 pixels during feature extraction. The results showed that the neighborhood size has a noticeable impact on classification performance, with the best overall results obtained using an SVM classifier with an RBF kernel and a 3×3 feature extraction window. This configuration achieved a phi coefficient of 98.08%, together with a specificity of 99.00%, a recall of 99.00%, and a precision of 99.02%. Statistical analysis further indicated that SVM (RBF) and Multilayer Perceptron exhibited statistically comparable performance under the evaluated experimental conditions. The analysis further revealed that defective pixels are primarily characterized by highly local intensity variations, while larger neighborhoods do not necessarily improve classification performance. Compared with previously reported defective pixel detection methods, the proposed approach achieved highly competitive results and the highest phi coefficient among the evaluated methods. Additionally, the impact of defective pixel detection on image quality was assessed using a simple median filter correction stage and evaluated through Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index Measure (SSIM). The best-performing configuration achieved a PSNR of 40.96 dB and an SSIM of 98.68% after median filter correction, demonstrating substantial improvement over median filtering alone, although the resulting image quality remains below that of the best-performing state-of-the-art correction methods. The proposed framework provides reproducible reference results for evaluating supervised machine learning approaches to defective pixel detection while analyzing the influence of feature extraction window size on classification performance and reconstructed image quality.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: CCD and CMOS Imaging Sensors · Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Departamento de Procesos Industriales, Facultad de Ingeniería, Universidad Católica de Temuco, Rudecindo Ortega, Temuco 02950, Chile

Facultad de Ingeniería, Universidad de Concepción, Edmundo Larenas 219, Concepción 4070386, Chile

Departamento de Ingeniería Eléctrica, Facultad de Ingeniería, Universidad de Concepción, Edmundo Larenas 219, Concepción 4070386, Chile

Centro Avanzado de Ingeniería Eléctrica y Electrónica (AC3E), Valparaíso 2390123, Chile

Grupo de Modelización Interdisciplinar, InterTech, Instituto Universitario de Matemática Pura y Aplicada, Universitat Politècnica de València, Camino de Vera, s/n, 46022 Valencia, Spain

Instituto de Investigación en Física, Computación y Ciencia Aeroespacial, Edif. Manuel Martínez Risco, Campus de As Lagoas, Universidad de Vigo, 32004 Ourense, Spain

References (50)

Show source-provided references
1. A review on image processing sensor10.1088/1742-6596/1714/1/012055 ↗
2. Sukhavasi, S.B., Sukhavasi, S.B., Elleithy, K., Abuzneid, S., and Elleithy, A. (2021). CMOS Image Sensors in Surveillance System Applications. Sensors, 21.10.3390/s21020488 ↗
3. Durini, D. (2019). High Performance Silicon Imaging: Fundamentals and Applications of CMOS and CCD Sensors, Woodhead Publishing.
4. Neuromorphic vision sensors: Principle, progress and perspectives10.1088/1674-4926/42/1/013105 ↗
5. Survey on energy harvesting CMOS sensor based digital camera10.3103/S1060992X22010039 ↗
6. On-chip kernel-based spatial filter for CMOS image sensor10.1016/j.compeleceng.2025.110218 ↗
7. A Real-Time Edge-Detection CMOS Image Sensor for Machine Vision Applications10.1109/JSEN.2023.3263461 ↗
8. HDR CMOS Image Sensors for Automotive Applications10.1109/TED.2022.3164370 ↗
9. Recent progress of flexible image sensors for biomedical applications10.1002/adma.202004416 ↗
10. Riba, J.R. (2022). Application of Image Sensors to Detect and Locate Electrical Discharges: A Review. Sensors, 22.10.3390/s22155886 ↗
11. High-performance concealment of defective pixel clusters in infrared imagers10.1364/AO.391668 ↗
12. Detection, Location and Concealment of Defective Pixels in Image Sensors10.1109/TETC.2020.2976807 ↗
13. A real-time defective pixel detection system for LCDs using deep learning based object detectors10.1007/s10845-020-01704-9 ↗
14. López-Portilla, B.M., Valenzuela, W., Zarkesh-Ha, P., and Figueroa, M. (2023). A CMOS Image Readout Circuit with On-Chip Defective Pixel Detection and Correction. Sensors, 23.10.3390/s23020934 ↗
15. Song, X., and Wu, L. (2019). Hyperspectral Image Inpainting Based on Robust Spectral Dictionary Learning. Appl. Sci., 9.10.3390/app9153062 ↗
16. Automatic inspection and classification for thin-film transistor liquid crystal display surface defects based on particle swarm optimization and one-class support vector machine10.1177/1687814016677660 ↗
17. A Novel Multicategory Defect Detection Method Based on the Convolutional Neural Network Method for TFT-LCD Panels10.1155/2022/6505372 ↗
18. Lin, Z.H., Lai, Q.Y., and Li, H.Y. (2024). A Machine-Learning Strategy to Detect Mura Defects in a Low-Contrast Image by Piecewise Gamma Correction. Sensors, 24.10.3390/s24051484 ↗
19. Chan, C.H. (2009). Dead Pixel Real-Time Detection Method for Image. (7,589,770), U.S. Patent.
20. Cho, C.Y., Chen, T.M., Wang, W.S., and Liu, C.N. (2011). Real-time photo sensor dead pixel detection for embedded devices. Proceedings of the 2011 International Conference on Digital Image Computing: Techniques and Applications, IEEE.10.1109/DICTA.2011.34 ↗
21. Robust Defect Pixel Detection and Correction for Bayer Imaging Systems
22. Tchendjou, G.T., and Simeu, E. (2018). Self-healing imager based on detection and conciliation of defective pixels. Proceedings of the 2018 IEEE 24th International Symposium on On-Line Testing and Robust System Design (IOLTS), IEEE.10.1109/IOLTS.2018.8474149 ↗
23. Yongji, L., and Xiaojun, Y. (2020). A Design of Dynamic Defective Pixel Correction for Image Sensor. Proceedings of the 2020 IEEE International Conference on Artificial Intelligence and Information Systems (ICAIIS), IEEE.10.1109/ICAIIS49377.2020.9194921 ↗
24. Silva, M.O., Ferreira, D.A.O., Ouchi, K.Y., Torres, G.M., Urtiga Mattos, E.V., Pereira, A.M.C., Costa, L.R., Cavalcante, V.L.G., Cruz, C.F., and Silva, A.P. (2021). Automated Bright Pixel Detection System on LCD Displays. Proceedings of the 2021 IEEE International Conference on Consumer Electronics (ICCE), IEEE.10.1109/ICCE50685.2021.9427743 ↗
25. TFT-LCD spot-type defect detection in module process10.4028/www.scientific.net/AMR.971-973.1368 ↗
26. Qian, J., Li, W., Chen, B., Qian, J., Liu, F., and Zhou, X. (2018). Sub-Pixel Defect Detection for Super Large LCD Images Using Quadrant Gradient Operator. Proceedings of the 2018 IEEE 18th International Conference on Communication Technology (ICCT), IEEE.10.1109/ICCT.2018.8600215 ↗
27. Sub-Pixel Level Defect Detection Based on Notch Filter and Image Registration10.1142/S0218001418540162 ↗
28. Sümer, A., Çelık, A., Küçükmanısa, A., Taıyapi Çelebı, A., and Urhan, O. (2019). Pixel Defect Detection in LCD TV Images using Adaptive Thresholding. Proceedings of the 2019 27th Signal Processing and Communications Applications Conference (SIU), IEEE.10.1109/SIU.2019.8806412 ↗
29. Automatic defect recognition of TFT array process using gray level co-occurrence matrix10.1016/j.ijleo.2013.11.070 ↗
30. Steel surface defects recognition based on multi-type statistical features and enhanced twin support vector machine10.1016/j.chemolab.2017.10.020 ↗
31. Çelik, A., Sümer, A., Küçükmanisa, A., Taşyapı Çelebi, A., and Urhan, O. (2018). LCD Pixel defect detection using GLCM features and SVM. Proceedings of the International Marmara Science and Social Sciences Congress, Kocaeli University.
32. Ferreira, D.A., Amoedo, D.A., Costa, L.R., Valadão, M.D., Souza, A.S., Ouchi, K.Y., Pereira, A.M., Torres, G.M., Silva, M.O., and Cruz, C.F. (2020). Dead Pixel Detection on Liquid Crystal Displays using Random Forest, SVM, and Harris Detector. Proceedings of the 2020 IEEE International Conference on Consumer Electronics-Taiwan (ICCE-Taiwan), IEEE.10.1109/ICCE-Taiwan49838.2020.9258171 ↗
33. Çelik, A., Küçükmanisa, A., Sümer, A., Taşyapi Çelebi, A., and Urhan, O. (2021). LCD Pixel Defect Detection using Shallow CNN Based Approach. Proceedings of the 2021 International Conference on INnovations in Intelligent SysTems and Applications (INISTA), IEEE.10.1109/INISTA52262.2021.9548540 ↗
34. Ponomarenko, M., Gapon, N., Voronin, V., and Egiazarian, K. (2018). Blind estimation of white Gaussian noise variance in highly textured images. Proceedings of the IS&T International Symposium on Electronic Imaging: Image Processing: Algorithms and Systems XVI, Society for Imaging Science and Technology.10.2352/ISSN.2470-1173.2018.13.IPAS-382 ↗
35. Ming, W., Zhang, S., Liu, X., Liu, K., Yuan, J., Xie, Z., Sun, P., and Guo, X. (2021). Survey of Mura Defect Detection in Liquid Crystal Displays Based on Machine Vision. Crystals, 11.10.3390/cryst11121444 ↗
36. Real-time defect detection of TFT-LCD displays using a lightweight network architecture10.1007/s10845-023-02110-7 ↗
37. Tchendjou, G.T., and Simeu, E. (2019). Defective pixel analysis for image sensor online diagnostic and self-healing. Proceedings of the 2019 IEEE 37th VLSI Test Symposium (VTS), IEEE.10.1109/VTS.2019.8758638 ↗
38. Rahmani, M.C., Khatir, A., Azad, M.M., Kim, H.S., Firouzi, N., Kumar, R., Khatir, S., and Cuong, L.T. (2025). Mechanics-based deep learning framework for predicting deflection of functionally graded composite plates using an enhanced whale optimization algorithm. Math. Mech. Solids, 10812865251398866.10.1177/10812865251398866 ↗
39. Narayanan, R., and Ganesh, N. (2024). A comprehensive review of metaheuristics for hyperparameter optimization in machine learning. Metaheuristics for Machine Learning: Algorithms and Applications, Wiley.10.1002/9781394233953.ch2 ↗
40. Barrera-García, J., Cisternas-Caneo, F., Crawford, B., Gómez Sánchez, M., and Soto, R. (2024). Feature Selection Problem and Metaheuristics: A Systematic Literature Review about Its Formulation, Evaluation and Applications. Biomimetics, 9.10.3390/biomimetics9010009 ↗
41. Learning-Based Noise Component Map Estimation for Image Denoising10.1109/LSP.2022.3169706 ↗
42. Shevkunov, I., Ponomarenko, M., Heimo, J., and Egiazarian, K. (2024). Lensless Phase Retrieval with Regularization by Blind Noise Map Estimation and Denoising. Proceedings of the 2024 IEEE International Conference on Image Processing (ICIP), IEEE.10.1109/ICIP51287.2024.10647724 ↗
43. Ponomarenko, M., Miroshnichenko, O., Lukin, V., and Egiazarian, K. (2021). Blind Estimation and Suppression of Additive Spatially Correlated Gaussian Noise in Images. Proceedings of the 2021 9th European Workshop on Visual Information Processing (EUVIP), IEEE.10.1109/EUVIP50544.2021.9483977 ↗
44. Blind estimation of noise level based on pixels values prediction10.2352/EI.2022.34.14.COIMG-152 ↗
45. Abramova, V., Lukin, V., Abramov, S., Kryvenko, S., Lech, P., and Okarma, K. (2023). A Fast and Accurate Prediction of Distortions in DCT-Based Lossy Image Compression. Electronics, 12.10.3390/electronics12112347 ↗
46. Image watermarking based on a ratio of DCT coefficient sums using a gradient-based optimizer10.1016/j.compeleceng.2024.109271 ↗
47. Detail retaining convolutional neural network for image denoising10.1016/j.jvcir.2020.102774 ↗
48. A support-denoiser-driven framework for single image restoration10.1016/j.cam.2021.113495 ↗
49. Reweighted low-rank quaternion matrix factorization with deep denoising prior for color image inpainting10.1016/j.ins.2025.122953 ↗
50. Denoiser-guided image deconvolution with arbitrary boundaries and incomplete observations10.1016/j.sigpro.2023.109226 ↗