RAW Sensor Digital Twin

A neural model that predicts the exact RAW color filter array (CFA) data a given camera sensor would record, before demosaicing, from an input image, the capture conditions, and the sensor and lens parameters.

Credit
7 points
Team
Up to 3 students
Partners
HIT and Samsung
Area
Computational imaging, deep learning

A research project for an industry customer. There is no ready recipe: the team defines the details of the method, reads the literature, tries ideas, measures, and learns from what does not work. The project requires independent work, proactive exploration and a lot of trial and error, with regular meetings with the supervisor and periodic meetings with the Samsung team.

Description

A camera sensor does not record a color image. Each pixel sits under one color filter (red, green or blue, in a Bayer pattern) and counts photons, adding noise from the physics of light and from the electronics. The camera's image signal processor (ISP) later turns this RAW mosaic into the photo we see.

Students build a digital twin of this first stage: a model that answers "what would this sensor have recorded?" for a scene, under given settings, before any processing.

Input: an image of the scene (sRGB or linear), plus

• Capture conditions: exposure time, ISO (analog gain), f-number, focal length, illuminant and color temperature, scene brightness.

• Sensor parameters: CFA pattern, pixel pitch, spectral sensitivity, full-well capacity, read noise, dark current, black level, bit depth.

• Optics parameters: lens blur (PSF or MTF), vignetting, chromatic aberration.

Output: RAW CFA data: a single-channel Bayer mosaic with realistic signal, clipping, quantization and noise, matching what the real sensor produces. Each pixel holds one number (typically 10 to 14 bits), the light measured through its own red, green or blue filter; the other two colors at that pixel do not exist yet and are only filled in later by demosaicing.

The project combines two worlds: a physics model of the camera (light falling off at the edges, the response of each color channel, shot and read noise, clipping) and a learned model that corrects what the physics misses. The physics part keeps the output plausible for unseen settings; the learned part makes it match real data.

Motivation

Goals and deliverables

  1. A physics-based simulator in PyTorch: inverse tone and color processing, lens effects, spectral to CFA mapping, signal-dependent noise, clipping and quantization, all controlled by parameters.
  2. Sensor calibration: noise parameters (per ISO) estimated from public data or from flat-field and dark frames, following the EMVA 1288 method.
  3. A learned twin: a network conditioned on the capture and sensor parameters that refines the simulator output (or replaces part of it) to match real RAW captures.
  4. An evaluation on held-out real RAW images: pixel accuracy, noise statistics, and a downstream test (a denoiser trained on twin data vs. real data).
  5. Optional: a small "what-if" tool that shows how one scene changes as sensor parameters change.

Suggested approach

What students will need

A map of the concepts, methods and tools this project touches. The first weeks are for learning the essentials.

Concepts

Algorithms and techniques

  • Inverse ISP (unprocessing)
  • Poisson-Gaussian and physics-based noise models
  • Noise calibration: photon transfer curve, noise level function
  • Conditional networks (FiLM, parameter embeddings)
  • Generative modeling of noise: normalizing flows, diffusion
  • Differentiable simulation, hybrid physics + learning
  • Image alignment for paired data

Models

Evaluation

  • PSNR and SSIM in the RAW domain
  • KL divergence of noise histograms per ISO and channel
  • Noise level function and photon transfer curve match
  • Downstream test: denoiser trained on twin vs. real data

Tools and frameworks

Datasets

Paired RAW and RGB with capture metadata

DatasetSensorsContentUse here
SIDD5 phones incl. Samsung Galaxy S6 EdgeNoisy and clean RAW + sRGB, noise level functions, metadata; ~24k images in the full set MITMain smartphone set; noise calibration
S7-ISP (DeepISP)Samsung Galaxy S7110 scenes, RAW + JPEG, normal and low-lightSamsung RAW to RGB pairs
Zurich RAW-to-RGBHuawei P20 + Canon 5D IV~10k aligned patch pairs CC BY-NC-SAPhone RAW with high-quality RGB
SIDSony a7S II, Fujifilm X-T25,094 short-exposure RAW + long-exposure referencesLow-light, exposure scaling
ELD4 camerasLow-light RAW at several ISO, released noise parametersPhysics noise calibration
Cao 2023 (LLD)-Noisy/clean pairs + flat-field and bias frames over a wide ISO rangeISO-dependent noise modeling
MIT-Adobe FiveKSeveral DSLRs5,000 DNG RAW + expert retouchesLarge RAW pool with EXIF
RAISE3 Nikon cameras8,156 uncompressed RAW + metadataVaried scenes and settings
Raw-to-rawGalaxy S9, iPhone XPaired and unpaired RAW between two phonesMapping between sensors
Fujifilm UltraISP, MAI 2021Phone sensors (incl. Sony IMX586 quad Bayer)RAW with reference RGBLearned ISP challenge data

Color and spectral data

DatasetContentUse here
Camera spectral sensitivity database (Jiang 2013)28 cameras incl. mobile, 400 to 720 nmSpectral to CFA response
NUS 8-camera1,736 linear RAW images with illuminant ground truthIlluminant conditioning, cross-camera color
Cube+, Gehler-ShiRAW with measured illuminantWhite balance modeling

Challenges with ready data and code

Samsung data: no public dataset of ISOCELL sensor RAW captures exists. Calibration captures from a Samsung sensor, if Samsung can provide them, would make the twin far more valuable.

Relevant papers

Reverse ISP: from RGB back to RAW

  1. Brooks et al. Unprocessing Images for Learned Raw Denoising. CVPR 2019. The standard starting point.
  2. Zamir et al. CycleISP: Real Image Restoration via Improved Data Synthesis. CVPR 2020.
  3. Xing, Qian, Chen. Invertible Image Signal Processing. CVPR 2021.
  4. Conde et al. Model-Based Image Signal Processors via Learnable Dictionaries. AAAI 2022.
  5. Nam, Punnappurath, Brubaker, Brown. Learning sRGB-to-Raw-RGB De-rendering with Content-Aware Metadata. CVPR 2022. York University and Samsung AI Center Toronto.
  6. Kim et al. ParamISP: Learned Forward and Inverse ISPs using Camera Parameters. CVPR 2024. Closest prior work; conditions on exposure, ISO, aperture, focal length.
  7. Reinders et al. RAW-Diffusion: RGB-Guided Diffusion Models for High-Fidelity RAW Image Generation. WACV 2025.
  8. Yu et al. ReconfigISP. ICCV 2021. Differentiable ISP modules.

Sensor noise modeling

  1. Foi et al. Practical Poissonian-Gaussian Noise Modeling and Fitting for Single-Image Raw-Data. IEEE TIP 2008.
  2. Abdelhamed, Lin, Brown. A High-Quality Denoising Dataset for Smartphone Cameras (SIDD). CVPR 2018.
  3. Abdelhamed et al. Noise Flow: Noise Modeling with Conditional Normalizing Flows. ICCV 2019.
  4. Wei et al. A Physics-based Noise Formation Model for Extreme Low-light Raw Denoising (ELD). CVPR 2020; TPAMI.
  5. Zhang et al. Rethinking Noise Synthesis and Modeling in Raw Denoising. ICCV 2021.
  6. Monakhova et al. Dancing under the Stars: Video Denoising in Starlight. CVPR 2022.
  7. Feng et al. Learnability Enhancement for Low-light Raw Denoising (PMN). ACM MM 2022.
  8. Cao et al. Physics-Guided ISO-Dependent Sensor Noise Modeling for Extreme Low-Light Photography. CVPR 2023.
  9. Zhang et al. Towards General Low-Light Raw Noise Synthesis and Modeling (LRD). ICCV 2023.
  10. Jin et al. Lighting Every Darkness in Two Pairs (LED). ICCV 2023.
  11. Lu, Achddou, Süsstrunk. Dark Noise Diffusion (NoiseDiff). 2025.
  12. Li, Jiang, Iso. Noise Modeling in One Hour. arXiv 2025.

Simulators, optics and standards

  1. ISETCam (Wandell, Farrell et al., Stanford). Full camera simulator in MATLAB; a reference to compare against.
  2. Sitzmann et al. End-to-end Optimization of Optics and Image Processing (Deep Optics). SIGGRAPH 2018.
  3. Chen et al. Extreme-Quality Computational Imaging via Degradation Framework. ICCV 2021. Spatially varying lens PSFs of mobile cameras.
  4. Schwartz, Giryes, Bronstein. DeepISP: Toward Learning an End-to-End Image Processing Pipeline. IEEE TIP 2019.
  5. EMVA 1288 Release 4.0. Standard for measuring sensor parameters (quantum efficiency, gain, dark noise).

Prerequisites