NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FixPix: Fixing Bad Pixels using Deep Learning

Sreetama Sarkar, Xinan Ye, Gourav Datta, Peter A. BeerelICPR 2023

TL;DR

This paper introduces "FixPix," a deep learning framework for detecting and correcting "bad pixels" in image sensors. It offers a robust, two-pronged approach: a highly accurate segmentation-based detector and two correction methods (lightweight patch-based and a more powerful autoencoder) that outperform traditional techniques, especially for high defect rates.

What Problem Does This Paper Address?

Image sensors, particularly CMOS sensors, are prone to "bad pixels" – pixels that permanently malfunction. These defects can arise during manufacturing or over the sensor's lifetime due to factors like high light exposure or radiation. Bad pixels degrade image quality, reduce manufacturing yield, and shorten the sensor's effective lifespan. While traditional methods exist for detecting and correcting these defects, they often struggle with clustered defects, require extensive manual tuning, or are computationally expensive. This paper aims to provide an efficient, accurate, and versatile deep learning solution for both detecting and correcting these problematic pixels, applicable across various sensor types and defect rates.

Methods

The FixPix framework comprises two main components:

  • Bad Pixel Detection: The authors propose a binary semantic segmentation approach using a U-Net architecture. This model learns to classify each pixel as either "good" or "bad." To enhance accuracy, especially with limited training data, they introduce confidence calibration. This involves averaging the confidence scores from multiple test images, leading to more reliable detection without significantly increasing memory overhead.
  • Bad Pixel Correction: Two distinct strategies are employed based on the detected error rate:
  • Lightweight Patch-Based Correction (MLP): For low error rates, a Multi-Layer Perceptron (MLP) is used. It takes a small patch (e.g., 5x5) around the defective pixel and predicts its correct value. This method is computationally efficient and outperforms traditional interpolation methods like linear and median filtering.
  • Vision Transformer (ViT) Autoencoder (AE) for Image Reconstruction: For high error rates or clustered defects, a more powerful ViT-based Autoencoder is proposed. This approach reconstructs the entire image, effectively "healing" corrupted regions without needing precise defect locations. This is particularly beneficial when traditional patch-based methods fail due to a high density of bad pixels in the neighborhood.

Datasets

The proposed methods were evaluated on two datasets:

  • Samsung S7 ISP: A smaller dataset consisting of RAW Bayer images captured by a Samsung S7 camera.
  • MIT-Adobe FiveK dataset: A larger dataset containing RAW Bayer images from SLR cameras. The authors extracted 777 Canon images from this dataset for their experiments.

Bad pixels were synthetically injected into these datasets to simulate various defect scenarios.

Key Insights and Ideas

  • Confidence Calibration for Robust Detection: Leveraging multiple test images to average confidence scores significantly improves detection accuracy, especially for challenging cases, without requiring excessive memory.
  • Dual Correction Strategy: The paper highlights the importance of having different correction strategies for different defect densities. A lightweight MLP is sufficient for sparse defects, while a more powerful autoencoder is necessary for severe or clustered corruption.
  • Autoencoder for Global Context: The ViT AE's ability to consider global image context makes it highly effective for correcting clustered defects where local neighborhood information is compromised.
  • Bypassing ISP: The proposed pipeline operates on pre-ISP raw images, offering the potential to bypass expensive off-chip ISP operations and enable in-sensor computing for improved energy efficiency.

Key Results

  • Detection Accuracy: Achieved up to 99.6% detection accuracy with less than 0.6% false positives on the MIT-Adobe FiveK dataset. For the smaller S7 ISP dataset, confidence calibration improved detection rates by up to 20%.
  • MLP Correction: Outperformed traditional interpolation methods, achieving approximately 14.2x lower NMSE compared to linear and median filtering. For a 20% error rate, it achieved a PSNR of 30.55 dB, exceeding ADC by 7.05 dB.
  • ViT AE Correction: For images with up to 70% corrupted pixels, the ViT AE achieved an average pixel error of 1.55%. For 5x5 defect clusters, it achieved an NMSE as low as 0.3%, comparable to state-of-the-art DL methods but with significantly fewer parameters and lower computational cost.

Limitations and Future Work

  • Computational Cost of ViT AE: While effective, the ViT AE is computationally more expensive than the MLP-based approach, making it less suitable for real-time applications with very low error rates. The authors suggest a threshold of 40% error rate for switching to AE-based reconstruction.
  • Training Separate Models: For the MLP-based correction, the authors found it beneficial to train separate models for different error rates, which can increase the complexity of deployment.
  • Future Work: The authors plan to explore integrating their correction algorithm with in-sensor computing solutions to further enhance sensor energy efficiency for computer vision tasks.

Summary updated

BibTeX
@inproceedings{sarkar2023fixpix,
  author = {Sreetama Sarkar and Xinan Ye and Gourav Datta and Peter A. Beerel},
  title = {{FixPix: Fixing Bad Pixels using Deep Learning}},
  booktitle = {ICPR},
  year = {2023},
}

Loading related content...

Figure