Manuscript Offprint
arXiv:2610.28835Conditional Imaging for Privacy-Preserving Visual Sensing
Abstract
Conventional visual sensing faces a fundamental dilemma: information that should remain private today may need to be recovered tomorrow. This challenge is becoming increasingly important as cameras become pervasive in our daily surroundings. Existing safeguards either protect visual content only after an image is formed or suppress information during capture in ways that prevent its later recovery. Here, we show through an information-theoretic analysis that privacy and recoverability cannot be achieved simultaneously in static optical systems. Information preserved in a measurement for later reconstruction also remains available to an observer of that measurement, limiting the privacy such systems can provide. To overcome this limitation, we introduce conditional imaging, an imaging approach that changes the optical state for every captured frame. The measurement alone conceals the scene, while knowledge of the corresponding physical system state enables its reconstruction. We analyze how the optical parameters determine the information that can be recovered and use this analysis to guide the design of a camera prototype. We evaluate the system on a captured dataset of human faces using increasingly powerful attempts to recover the scene, from direct visualization and computational inversion to learned reconstruction and identity recognition. Our experiments show that conditional imaging preserves identity in authorized reconstructions while withholding visual information from observers without access to the system state. By making the physical state of the camera part of the information needed for reconstruction, conditional imaging enables visual information to be protected at the point of capture while remaining recoverable for future authorized use.
Keywords: Privacy-preserving imaging, Computational imaging
1 Introduction
Cameras in personal devices, vehicles, and emerging wearables overwhelmingly record our daily surroundings [1–5]. Beyond serving perception in the moment, their recordings are often stored for later use, such as incident review, retrospective analysis, or tasks that are not known at the time of capture [6]. However, these visual data can inherently capture sensitive information about individuals' identities, activities, and surroundings. For example, a recent analysis reveals that 90% of computer-vision papers and 86% of downstream patents extract human data. It further highlights that research contributing to surveillance-enabling patents has grown more than fivefold over three decades [7]. Even worse, those whose privacy is affected by these recordings often have little control over how the data is captured or used [8].
Consider the short-term rental example illustrated in Fig. 1a. A host may want an indoor camera to record evidence of unexpected events, such as property damage. However, the same camera also captures guests during moments when privacy is expected [9, 10]. Although platforms such as Airbnb address this conflict by prohibiting indoor cameras altogether [11], the underlying technical problem of preserving privacy while retaining the ability to recover necessary evidence remains. Similar conflicts arise with cameras in autonomous vehicles, robots, and other systems that continuously observe their surroundings. What is needed is a camera that keeps its recordings private by default but allows specific events to be recovered when authorized review is required.
Currently, most existing safeguards operate digitally on the recorded data through anonymization, redaction, or encryption [12–14]. Anonymization and redaction remove or modify sensitive content and are typically evaluated empirically, whereas encryption can provide stronger protection with cryptographic guarantees. However, all of these methods act after the camera has already formed a readable image, exposing it at the sensor and during readout and processing (Fig. 1b).
An alternative is to protect the information before a recognizable image is formed. Optical encodings, such as coded apertures, diffusers, and lensless systems, scatter scene information across the sensor [15–19]. While the resulting measurements may appear unrecognizable, this approach alone does not guarantee privacy. As the optical encoding is fixed, an observer can calibrate the system and invert the measurements or learn the inverse mapping from captured data to reconstruct the scene. Recent privacy-oriented designs take this idea further by jointly optimizing the optics and downstream algorithms to preserve the information needed for a desired task while suppressing sensitive information, such as identity [20–24]. However, these systems are usually designed for specific tasks and deployment settings. More importantly,

Fig. 1 Privacy-utility conflict and the conditional imaging paradigm. (a) A short-term rental scenario illustrates the conflict. A host may need evidence of unexpected incidents, such as property damage, while a guest expects privacy during their stay. (b) Existing imaging paradigms. Conventional cameras form readable images before digital safeguards are applied. Privacy-oriented optical systems suppress sensitive information during image formation, but the suppressed information cannot be recovered later. (c) Conditional imaging paradigm. The optical modulation changes across frames, producing each measurement under a different imaging state. The measurement remains obfuscated by default, while scene recovery is conditioned on access to the corresponding state . Releasing the states associated with selected frames enables authorized recovery while measurements whose states remain unavailable stay obfuscated.
information suppressed by the optics is lost for everyone; even an authorized user cannot recover it later if an unforeseen need arises.
We study this problem from an information-theoretic perspective. Our analysis reveals a fundamental limitation of static optical systems, where privacy and recoverability are inherently coupled and cannot be controlled independently. If a measurement preserves information for later reconstruction, that information is also available to an observer who knows the imaging system. If the information is removed for privacy, it is also lost for authorized recovery.
To break this coupling, we introduce conditional imaging, an imaging paradigm in which scene recovery is conditioned on the physical state of the imaging system at the time of capture (Fig. 1c). The camera randomly changes its optical modulation at every frame, producing a measurement under a frame-specific imaging state . The measurement remains obfuscated by default, while access to the corresponding state enables state-aware reconstruction. Thus, recoverability is conditional on access to the physical imaging state rather than being fixed by the measurement alone. An authorized user with the corresponding state can recover the scene, whereas an observer without it must solve a state-blind inverse problem with no single fixed imaging operator to invert. Selected frames can therefore be made recoverable by releasing their corresponding states while withholding the states associated with other frames.
We further connect this principle to the physical design of the camera. Our analysis relates recoverable information to the spatial extent of the point spread function (PSF) and, in turn, to the physical parameters of the optical modulation, giving us a design criterion for conditional imaging. The criterion identifies an operating regime where the scene can be recovered with the instantaneous system state while limiting the information available without it. We implement this criterion in a programmable spatial light modulator (SLM) prototype and evaluate it on a dataset of human faces.
Our experiments demonstrate a clear asymmetry between authorized and unauthorized access. We evaluate identity using face verification and report the area under the receiver operating characteristic curve (AUC). This metric measures how well a face-verification system distinguishes images of the same person from images of different people across decision thresholds. An AUC of 0.5 corresponds to random guessing, while 1.0 corresponds to perfect separation. With the instantaneous system state, reconstructed faces achieve an AUC of 0.91, showing that identity is well preserved for authorized verification. Without the system state, almost all measurements do not contain enough facial structure for a face detector to locate a face.
We further stress-test privacy under a setting deliberately favorable to the unauthorized observer. Rather than evaluating all measurements, we retain only the cases where data-driven recovery succeeds well enough for a face to be detected. This removes the many cases where unauthorized recovery already fails at the face-detection stage. Even under this favorable setting, the face-verification AUC drops to 0.67, compared with 0.91 for authorized reconstruction. Thus, the reported unauthorized AUC measures identity leakage only among the most recoverable cases and not across all captured measurements. This shows that a large gap between authorized and unauthorized access persists even when the evaluation is biased in favor of the unauthorized observer.
Together, our analysis and experiments show how privacy can be built into the image formation process. Unlike existing optical approaches, conditional imaging does not achieve privacy by permanently discarding information needed for later reconstruction. Instead, recoverability is conditioned on access to the frame-specific physical state of the imaging system. This shifts visual privacy from deciding what information to irreversibly remove at capture to controlling which measurements can subsequently be reconstructed.
2.1 Conditional imaging: principle and implementation
To motivate conditional imaging, we first consider a fundamental limitation of static optical encoding. We model image formation as a linear mapping from a scene to a sensor measurement,
where is the scene, is the sensor measurement, is the noise, and is the optical transport matrix. For a static optical system, remains fixed across frames.

Fig. 2 Breaking the privacy-utility trade-off via conditional imaging. (a) Image formation and information modes. The imaging process can be mathematically modeled as a linear operation , where the system transport operator maps a scene to a sensor measurement at frame . Singular value decomposition (SVD) decomposes this mapping into a set of parallel, independent measurement channels. Each singular value determines how strongly information is transmitted through one channel. (b) Comparison of imaging paradigms. An idealized conventional imaging system ( ) preserves all modes and therefore provides no privacy. Static optical encoding ( ) can improve privacy by suppressing selected modes, but information removed below the noise floor is unavailable to both authorized and unauthorized observers. In contrast, conditional imaging uses a frame-dependent operator that changes with the modulation state while preserving the modes needed for stable authorized reconstruction. Thus, measurements can be reconstructed when is known while remaining obfuscated when it is withheld.
This fixed operator creates a basic limitation for privacy-preserving imaging. If preserves enough information for image reconstruction, the same information is in principle available to any observer who knows or estimates . Conversely, if the optics remove information to prevent unauthorized recovery, that information is also unavailable for later authorized reconstruction. Thus, a static optical operator cannot independently control privacy and recoverability.
We can formalize this coupling through the singular spectrum of the imaging operator. As illustrated in Fig. 2a, singular value decomposition (SVD) decomposes the transport matrix into parallel measurement channels. Each singular value determines how strongly the corresponding scene mode is transmitted to the sensor. These singular values bound the mutual information between the scene and the measurement:
(2) where is the signal power in mode , is the noise variance, and represents the number of active modes. Therefore, a larger singular value allows more information in the corresponding scene mode to reach the sensor. Further details and assumptions are provided in the Supplementary Material.
Passive optics constrain how this spectrum can be shaped. Non-negative intensity and energy conservation impose an upper bound on the total squared singular values (i.e., the energy of the singular value spectrum) of , . Within this bound, distributing energy uniformly across all modes ( ) maximizes information throughput. This represents the idealized conventional-imaging limit where the scene information is well preserved, but little optical privacy is provided (Fig. 2b).
At the opposite extreme, minimizing information recorded while retaining a minimum operational singular spectrum energy concentrates the remaining energy into a single mode: , and . The remaining modes lie in the null space and are therefore lost to every observer (Fig. 2b). Task-specific optical designs [20–24] can instead suppress only sensitive modes, such as those carrying identity. However, once those modes are removed by a static optic, they cannot be recovered later, even by an authorized user. Thus, static optical encoding cannot independently control information suppression and recoverability.
Conditional imaging changes this premise. Instead of protecting information by permanently removing it, we make the imaging operator itself a frame-dependent variable. In our implementation, we achieve this by placing a programmable phase modulator at the aperture of the camera. The modulator changes the phase of light passing through different positions across the aperture, thereby changing the imaging operator for every frame:
Here, denotes the 2D position across the camera aperture, and is the phase modulation applied at that position. We represent this phase pattern using smooth polynomial basis functions . The coefficient controls the strength of the -th basis function at frame and is randomly sampled from a bounded interval .
The collection of these coefficients, , defines the modulation state for frame and therefore determines the frame-specific imaging operator . We use smooth basis functions and bounded coefficients to avoid rapid or extreme phase variations that could create deep spectral nulls and make authorized reconstruction unstable.
This construction creates an asymmetry between authorized and unauthorized recovery. When is known, the corresponding operator is known, and scene recovery reduces to a conventional inverse problem. When is withheld, both the scene and the frame-specific operator are unknown, making recovery a substantially more underdetermined nonlinear inverse problem.
The remaining design question is how strongly each frame should be modulated. Spatial phase modulation broadens the point spread function (PSF), causing light from each scene point to spread across neighboring sensor pixels. A wider PSF better obscures recognizable structure in the raw measurement, but excessive broadening suppresses information needed for stable authorized reconstruction. This trade-off defines a feasible range for the PSF width:
Here, specifies the application-dependent feature scale to obscure, while specifies the information required for reconstruction. The factors and convert these requirements into PSF-width bounds based on the perceptibility threshold, PSF shape, sensor area, and SNR. Eq. (4) therefore defines the allowable modulation range for a given application and imaging system. Detailed expressions and their connection to the physical modulation parameters are provided in the Supplementary Material.

Fig. 3 Conditional imaging framework and operational workflow. (a) Conceptual overview of the prototype conditional imaging camera, where physical image formation is governed by a time-varying optical modulation state. (b) Representative modulation examples for a single ground truth image. Altering the physical state changes the frame-specific point spread function (PSF), producing completely distinct, obfuscated measurements for the exact same input scene. (c) End-to-end workflow demonstrating conditional interpretability. Input scenes are transformed by the dynamic modulation layer to produce noise-like, uninterpretable obfuscated measurements. Without the modulation state (unauthorized end), the frame-specific forward operator is unknown. When the modulation state is available (authorized end), the corresponding PSF is computed and used for scene reconstruction and downstream tasks. Face images from LFW public dataset [25].
Guided by this design criterion, we build a programmable optical prototype (Fig. 3a). At each frame, a spatial light modulator applies the phase pattern specified by Eq. (3). The full optical configuration is described in Methods and the Supplementary Material. As shown in Fig. 3b, different modulation states produce different PSFs and therefore different obfuscated measurements of the same scene. Fig. 3c summarizes the operational workflow. The camera records an obfuscated measurement, while the corresponding modulation state is encrypted and withheld by default. For authorized review, the state is released and used to compute the frame-specific PSF for reconstruction. Without this state, the observer does not know the frame-specific forward operator.
We next evaluate both sides of this asymmetry. We first test whether increasingly strong computational methods can recover sensitive information without the modulation state (Sec. 2.2). We then evaluate reconstruction quality and downstream utility when the correct state is available (Sec. 2.3).
2.2 Conditional imaging: resistance to unauthorized reconstruction
We evaluate whether an observer can recover scene information without access to the frame-specific modulation state . In all experiments, the observer has access to the recorded measurements and knowledge of the camera architecture, but does not have access to the instantaneous modulation state. We consider progressively stronger attacks: (i) Blind reconstruction, which jointly estimates the scene and unknown PSF; (ii) PSF-assisted reconstruction, which attempts to estimate the instantaneous PSF from partial physical observations; (iii) Data-driven reconstruction, which learns a direct inverse mapping from paired obfuscated and clean images. We evaluate reconstruction fidelity using peak signal-to-noise ratio (PSNR) and structural similarity index measure (SSIM). We separately test whether the recovered measurements retain identity information through face detection and verification. All experiments are conducted on the Labeled Faces in the Wild (LFW) dataset [25], and both quantitative and qualitative results are reported in Fig. 4, 5 and 6.
Resistance to blind reconstruction
We first consider blind reconstruction, where the observer has no access to the frame-specific modulation state or PSF. The observer must therefore jointly estimate the unknown PSF and recover the scene, making reconstruction an ill-posed inverse problem. We evaluate representative state-of-the-art methods spanning different image priors: SelfDeblur (deep image prior), GKPILE (generative prior), and BlindDPS (diffusion prior) with Gaussian (BlindDPS-G) and motion (BlindDPS-M) kernel models [26–28]. To account for slight PSF variations across RGB channels, each method is applied independently to each channel, and the outputs are recombined.
We evaluate all methods on 2,578 face images captured with our prototype using PSNR and SSIM. As shown in Fig. 4a, blind reconstruction remains low fidelity across all tested methods and fails to preserve identity-relevant facial features. SelfDeblur and GKPILE achieve only 11.3–12.2 dB PSNR and 0.13 SSIM, while the diffusion-based BlindDPS variants reach 14.9 dB PSNR and 0.58 SSIM (Fig. 4b). In comparison, a
Measurement
Unauth. Attempts
Auth. User
Ground Truth

Obfuscation
SelfDeblur
GKPILE
BlindDPS-G
BlindDPS-M
Recovery
Reference
b
Statistical Results of Blind Reconstruction
Method
Fig. 4 Evaluation of blind reconstruction attempts. (a) Four state-of-the-art blind deconvolution methods—SelfDeblur, GKPILE, BlindDPS-G (Gaussian kernel), and BlindDPS-M (motion kernel)—produce substantially degraded reconstructions compared with modulation state-aware authorized recovery. Insets show the estimated PSF for each method. (b) Quantitative performance comparison across the test set. Authorized recovery substantially outperforms all unauthorized attempts in both PSNR (blue, left axis) and SSIM (red, right axis). Error bars denote standard deviation across the test set.
authorized reconstruction using the correct modulation state achieves dB PSNR and SSIM. These results show that the blind reconstruction methods remain substantially below the fidelity obtained when the frame-specific modulation state is known.
Resistance to PSF-assisted reconstruction
Beyond completely blind reconstruction, a more informed observer might use physical knowledge of the imaging system to estimate the frame-specific PSF. We therefore consider two questions: how sensitive is reconstruction to PSF mismatch, and can the instantaneous PSF be estimated from features within the captured scene.
We first quantify sensitivity to PSF mismatch by cross-deconvolving 10 randomly selected measurements with PSFs from 10 independently sampled modulation states. This produces 100 measurement–PSF combinations organized in a matrix (Fig. 5a). Correctly matched pairs (diagonal entries) yield high-quality reconstructions of 25.2–29.0 dB PSNR, whereas mismatched pairs (off-diagonal entries) suffer substantial degradation. The same behavior is visible in the qualitative examples (left sub-matrix in Fig. 5a), where only correctly matched pairs produce interpretable reconstructions. These results show that successful inversion requires an accurate estimate of the frame-specific PSF; a PSF from another modulation state is insufficient.
We next ask whether the instantaneous PSF can be estimated directly from the captured scene. A point source provides a direct probe of the imaging system’s impulse response, so we consider an observer who exploits a bright point-like feature within the scene. To simulate this setting, we insert a white point source at the center of images from the NYU Depth V2 dataset [29]. We define its relative intensity as the ratio of the point-source intensity to the mean background intensity and vary this ratio over 14 levels from to . The observer extracts the region surrounding the point source, subtracts the estimated background, and uses the resulting PSF estimate for reconstruction (see Supplementary Material).
a
PSF-assisted Reconstruction I
PSNR Confusion Matrix

Reference
Obfuscation
b
PSF-assisted Reconstruction II
Input Scene
Obfuscation
Reconstruction
Visual Example Curve
Relative Intensity
Relative Intensity
Fig. 5 Evaluation of PSF-assisted reconstruction attempts. (a) Sensitivity to PSF mismatch. The PSNR matrix (right) shows cross-deconvolution between 10 randomly sampled measurements and PSFs from different modulation states. Correctly matched measurement–PSF pairs (diagonal) yield high-quality reconstructions, whereas mismatched pairs (off-diagonal) suffer substantial degradation. The grid (left) visualizes a subset of these combinations, with green borders indicating correctly matched pairs. (b) In-scene PSF estimation at representative point-source intensities. At low relative intensities, background structure contaminates the estimated PSF. At higher intensities, the point source provides a cleaner PSF estimate but increasingly dominates the measurement, reducing the relative contribution of the surrounding scene. Insets show the extracted PSFs at representative relative intensity ratios, and image border colors correspond to the respective points in the top curves of (c). (c) Reconstruction performance across relative point-source intensities from to . PSNR (left axis, blue) and SSIM (right axis, red) are shown for the example in (b) (top) and aggregated across 500 test images (bottom), respectively. Consistent with the visual degradation observed in (b), both metrics remain low across all intensity levels, falling far below the authorized recovery baseline (dashed line), confirming that in-scene features do not expose sufficient information for reliable recovery.
We test this strategy on 500 randomly selected images, each captured under a different modulation state. As shown in Fig. 5(b, c), reconstruction remains consistently poor across the tested intensity range. At low relative intensities, background structure contaminates the extracted PSF. As the relative intensity increases, the point source provides a cleaner estimate of the PSF but increasingly dominates the measurement, reducing the relative contribution of the surrounding scene. Consequently, both PSNR and SSIM remain well below the authorized reconstruction baseline across the tested conditions (dashed line in Fig. 5c).
Together, these experiments show that reconstruction is highly sensitive to the instantaneous PSF, while the tested calibration- and scene-based strategies do not estimate that PSF accurately enough for stable recovery.
a Measurement
Unauth. Attempts

Obfuscation
UNet
SwinIR
Restormer
Auth. User
Ground Truth
Recovery
Reference
b Statistical Results of Data-Driven Reconstruction
Method
Fig. 6 Evaluation of data-driven reconstruction attempts. (a) Qualitative comparison of state-blind data-driven reconstruction using UNet, SwinIR, and Restormer with state-aware authorized recovery. Despite training on paired obfuscated and clean images, all three models produce visibly degraded reconstructions relative to authorized recovery. (b) Quantitative comparison across the LFW test set. State-aware authorized recovery substantially outperforms all data-driven reconstruction approaches and preceding unauthorized attacks in both PSNR (left axis, blue) and SSIM (right axis, red). Error bars denote standard deviation.
Resistance to data-driven reconstruction
Finally, we consider a stronger data-driven attack in which the observer has physical access to the camera and can collect paired obfuscated and clean images. This allows the observer to train a model that directly learns a modulation state-agnostic inverse mapping, without explicitly estimating the frame-specific PSF. This scenario represents a deliberately favorable attack setting. We evaluate three representative architectures—UNet [30], SwinIR [31], and Restormer [32]—spanning convolutional networks to modern transformer-based designs. Each model is trained on 10,304 paired examples captured with our prototype and evaluated on an unseen test set of 2,578 images.
This attack improves reconstruction over the blind and PSF-assisted strategies, but a clear gap remains relative to state-aware recovery. As shown in Fig. 6, UNet and SwinIR achieve average PSNRs of 19.77 and 18.90 dB and SSIMs of 0.66 and 0.63, respectively, while Restormer reaches 21.08 dB PSNR and 0.63 SSIM. In comparison, authorized reconstruction using the correct modulation state achieves dB PSNR and SSIM.
Unlike modulation state-aware reconstruction, these networks must learn a single inverse across measurements generated by many different modulation states. As the physical imaging operator changes continuously from frame to frame, a fixed inverse network cannot capture the underlying dynamics without access to the instantaneous modulation state. The observed performance gap is consistent with the intended effect of conditional imaging: varying the forward operator across frames makes state-blind inversion substantially more difficult than reconstruction with the correct instantaneous state. We next evaluate whether the residual information in these reconstructions is sufficient for face detection and identity verification.
a
Down Stream Applications
Measurement
Auth. Recovery
Insight Face Detection
Face Verification

Obfuscation
Auth. Recovery
Reference
Obfuscation
Auth. Recovery
Auth. Image1
Auth. Image2
b
Statistical Results of Face Detection

c
Face Verification Performance Curve

Fig. 7 Authorized recovery and downstream face analysis. (a) Representative authorized reconstructions from face data captures. State-aware authorized recovery restores fine spatial structure and supports downstream face analysis; PSNR values are shown for each example. Raw obfuscated measurements, on the other hand, result in total detection failure. (b) Face-detection success and failure rates We evaluate face-detection performance across raw measurements, unauthorized reconstructions, authorized reconstructions, and clean references. Raw measurements fail entirely, whereas unauthorized blind and data-driven recovery methods achieve partial success for a subset of images. Authorized reconstructions achieve near-perfect success rate comparable to the clean reference. (c) Face-verification Receiver Operating Characteristic (ROC) curves. For unauthorized methods, verification is evaluated only on the subset of reconstructions that successfully pass face detection, providing a favorable conditional evaluation for the attacker. Authorized reconstruction achieves an area under the curve (AUC) of 0.91, approaching the clean-reference AUC of 1.00, while the best unauthorized recovery methods, Restormer and UNet, achieve AUCs of only 0.67 and 0.63, respectively. This shows that even among unauthorized reconstructions that successfully pass face detection, identity discrimination remains substantially degraded, whereas authorized state-aware recovery approaches clean-reference verification performance.
2.3 Conditional imaging: authorized recovery and downstream utility
Having evaluated reconstruction without the modulation state, we now consider authorized recovery when the frame-specific state is available. The corresponding PSF can then be computed, converting recovery from a blind to a state-aware conditional inverse problem. Using this PSF with our authorized reconstruction method (see Supplementary Material), we recover fine spatial structure that is strongly obscured in the raw measurements (Fig. 7a).
We first evaluate whether the recovered images retain the information needed for downstream face analysis. We quantify this performance using the detection success rate, defined as the fraction of images for which the detector successfully yields valid landmark predictions. As shown in Fig. 7b, raw obfuscated measurements fail face detection, whereas authorized reconstructions achieve detection rates comparable to the clean reference. Unauthorized reconstructions from BlindDPS, SwinIR, UNet, and Restormer methods recover partial structure for detection only for a subset of images.
Face detection alone, however, does not establish whether identity is preserved. We therefore evaluate face verification using InsightFace [33]. For the unauthorized methods, we deliberately restrict this analysis to images for which face detection succeeds, excluding cases that already fail at the detection stage. This provides a favorable evaluation for the attacker and tests whether these successful unauthorized reconstructions retain identity information. We select 20 individuals with five images each and evaluate 200 verification pairs per fold over 10 folds. We report receiver operating characteristic (ROC) curves and summarize identity discrimination using area under the curve (AUC), where AUC = 1.0 indicates perfect discrimination and AUC = 0.5 corresponds to a chance-level success.
Authorized reconstruction achieves an AUC of 0.91, compared with 1.00 for the clean reference (Fig. 7c). Under the same evaluation, Restormer and UNet achieve AUCs of 0.67 and 0.63, respectively. Thus, even among unauthorized reconstructions that successfully pass face detection, identity discrimination remains substantially degraded relative to state-aware conditional recovery.
Obfuscation need not eliminate all scene information. We show in the Supplementary Material how coarse macro-level vision tasks, such as person counting and crowd-density estimation, can be performed directly on raw measurements without reconstructing recognizable faces. Taken together, these results demonstrate the intended asymmetry of conditional imaging: access to the frame-specific modulation state enables high-fidelity reconstruction and downstream analysis, while state-blind measurements and reconstructions substantially limit identity recovery under the evaluated attacks.
3 Discussion
This work introduces conditional imaging as an imaging paradigm in which scene recovery is conditioned on the physical state of the imaging system at the time of capture. Our analysis shows why static optical systems fundamentally couple information suppression and recoverability: the same fixed imaging operator determines both how much scene information reaches the measurement and how well that information can subsequently be recovered. A static system therefore faces an inherent privacy–recoverability trade-off: preserving information for recovery also makes it available to others, while suppressing it for privacy reduces what can later be recovered.
Conditional imaging introduces an additional degree of freedom by varying the imaging operator across frames and conditioning recovery on the corresponding frame-specific state. Across our experiments, this produces a consistent operational asymmetry where state-blind unauthorized reconstruction remains substantially degraded, whereas access to the correct physical state enables high-fidelity recovery and downstream analysis. The central advantage of this paradigm is that privacy does not require permanently discarding the information needed for later reconstruction.
Our analysis further provides a physical design criterion for this conditionality. The criterion bounds the spatial extent of the PSF from two sides. Privacy sets the lower bound by requiring the PSF to be broad enough to push features below the perceptual threshold. Recoverability sets the upper bound by ensuring the PSF stays compact enough to preserve necessary information for downstream tasks. Our prototype is designed within this regime and demonstrates the intended separation between obfuscated state-blind measurements and high-fidelity state-aware recovery.
Our current implementation demonstrates the principle of conditional imaging using a programmable optical platform. A spatial light modulator provides flexible control over the frame-specific modulation, but the underlying framework is not tied to the specific hardware realization. Emerging integrated photonic platforms, including lithium-niobate modulators with electrically tunable optical responses , provide a potential path toward more compact and practical high-speed implementations. We evaluate human faces as a representative privacy-sensitive domain, but the framework itself is not restricted to faces. Extending it to other applications requires defining the relevant sensitive feature scale and reconstruction requirements for the sensing task.
More broadly, conditional imaging shifts the role of optics in privacy-preserving sensing. Rather than forming an immediately interpretable image and protecting it afterward, or irreversibly removing sensitive information during capture, conditional imaging embeds privacy into the physical image formation process by making recoverability conditional on access to a frame-specific system state. This perspective may be useful in distributed sensing, wearable cameras, augmented reality, robotics, and autonomous systems, where measurements may need to remain protected by default while retaining the possibility of authorized retrospective analysis. Conditional imaging balances privacy and utility not by permanently destroying information, but by controlling when captured information can be recovered.
4 Methods
Conditional imaging prototype
We implement conditional imaging using a programmable optical prototype with a Holoeye Leto spatial light modulator (SLM) as the modulation element. Target scenes are displayed using a standard projector and captured through the optical system, where they are modulated by the phase patterns displayed on the SLM. All hardware components are controlled through a computer to apply a different modulation state to each frame. Reference images are captured under the same experimental conditions with the SLM modulation disabled.
Optical modulation and state management
We parameterize the SLM phase pattern using the first 36 Zernike polynomials under Noll indexing. For each frame, the corresponding coefficients are independently sampled from bounded uniform distributions. The bounded coefficient ranges constrain extreme phase gradients while producing a different imaging operator for each frame. The modulation strength is selected according to the privacy-recoverability design criterion discussed in Sec. 2.1. The complete theoretical derivation, including the information bounds and the relationship between the modulation coefficients and PSF extent, is provided in the Supplementary Material.
Each captured frame is associated with its corresponding modulation coefficients. These coefficients are encrypted using the Advanced Encryption Standard in Galois/Counter Mode (AES-GCM) and transmitted separately to the authorized user. For authorized recovery, the coefficients are decrypted and used to reconstruct the frame-specific phase pattern and the corresponding PSF.
Data acquisition
We evaluate conditional imaging using the Labeled Faces in the Wild (LFW) dataset [25] as a representative privacy-sensitive imaging task. Each source image is displayed by the projector and physically captured through the prototype under a sampled modulation state. We collect 10,304 paired samples for training the reconstruction models and an independent set of 2,578 samples for testing. The captured measurements are recorded as linear intensity values under automatic exposure control with a standard white-balance setting. Additional experiments involving controlled scene geometry use images from the NYU Depth V2 dataset [29].
Authorized reconstruction
Given the frame-specific modulation state, we compute the corresponding PSF and obtain the forward model for that measurement. This converts recovery from a state-blind recovery problem into a state-aware deconvolution problem. To account for unmodeled physical variations and mismatch between the computed and experimental PSF, we use a deep-unfolding reconstruction framework [35]. Details of the reconstruction framework, PSF model, and optimization objectives are provided in the Supplementary Material.
Evaluation
We evaluate reconstruction quality using peak signal-to-noise ratio (PSNR) and structural similarity index measure (SSIM). The unauthorized reconstruction methods described in Sec. 2.2 are evaluated on the same 2,578-image test set, with detailed configurations and reconstruction procedures provided in the Supplementary Material.
Because reconstruction quality alone does not determine whether identity information remains accessible, we separately evaluate face detection and verification using a pretrained InsightFace model [33] without task-specific fine-tuning. Identity similarity is measured using cosine similarity between ArcFace embeddings of reconstructed and reference images, and verification performance is reported using receiver operating characteristic (ROC) curves and area under the curve (AUC). For unauthorized reconstruction methods, verification is performed only on the subset of images that successfully pass face detection, providing a favorable conditional evaluation of the identity information remaining after successful unauthorized recovery. Further details of the verification benchmark and evaluation protocol are provided in the Supplementary Material.
All experiments use publicly available datasets under standard protocols. No new human-subject data are collected for this study.
Data availability
All data supporting the findings of this study are available from the corresponding author upon reasonable request.
Author contributions. P.C. conceived the idea and supervised the project. H.L. and P.C. developed the approach. H.L., A.W., and P.C. performed the theoretical analysis. H.L. and X.P. built the prototype, collected the data, and performed the experiments. D.M. and H.L. implemented the reconstruction methods. A.W., H.L., Y.W., and P.C. interpreted the results and wrote the manuscript. All authors reviewed and approved the final manuscript.
Conflict of interest. The authors declare no conflict of interest.
References
[1] Gehrig, D., Scaramuzza, D.: Low-latency automotive vision with event cameras. Nature 629(8014), 1034–1040 (2024)
[2] Loretan, M., Barella, M., Fuchs, N., Kocabey, S., Kołataj, K., Stefani, F.D., Acuna, G.P.: Direct single-molecule detection and super-resolution imaging with a low-cost portable smartphone-based microscope. Nature Communications 16(1), 8937 (2025)
[3] Chan, J., Nsumba, S., Wortsman, M., Dave, A., Schmidt, L., Gollakota, S., Michaelsen, K.: Detecting clinical medication errors with ai enabled wearable cameras. NPJ Digital Medicine 7(1), 287 (2024)
[4] Lo, F.P.-W., Qiu, J., Jobarteh, M.L., Sun, Y., Wang, Z., Jiang, S., Baranowski, T., Anderson, A.K., Mccrory, M.A., Sazonov, E., et al.: Ai-enabled wearable cameras for assisting dietary assessment in african populations. NPJ Digital Medicine 7(1), 356 (2024)
[5] Yun, J.-G., Kang, H., Lee, K., Jeong, Y., Lee, E., Kim, J., Choi, M., Koo, B., Kim, D., Choi, J., et al.: Compact eye camera with two-third wavelength phase-delay metalens. Nature Communications 16(1), 7299 (2025)
[6] Ashby, M.P.: The value of cctv surveillance cameras as an investigative tool: An empirical analysis. European journal on criminal policy and research 23(3), 441–459 (2017)
[7] Kalluri, P.R., Agnew, W., Cheng, M., Owens, K., Soldaini, L., Birhane, A.: Computer-vision research powers surveillance technology. Nature, 1–7 (2025)
[8] Zuboff, S.: The age of surveillance capitalism. In: Longhofer, W., Winchester, D. (eds.) Social Theory Re-wired: New Connections to Classical and Contemporary Perspectives, pp. 203–213. Routledge, New York, NY (2023)
[9] Mare, S., Roesner, F., Kohno, T.: Smart devices in airbnbs: Considering privacy and security for both guests and hosts. Proceedings on Privacy Enhancing Technologies (2020)
[10] Marky, K., Prange, S., Krell, F., Mühlhäuser, M., Alt, F.: “you just can’t know about everything”: Privacy perceptions of smart home visitors. In: Proceedings of the 19th International Conference on Mobile and Ubiquitous Multimedia, pp. 83–95 (2020)
[11] Airbnb: Use and disclosure of security cameras, recording devices, noise decibel monitors, and smart home devices in homes. https://www.airbnb.com/help/article/3061. Accessed: 2026-02-04 (2024)
[12] Kessler, G.C.: An overview of cryptography (2003)
[13] Frome, A., Cheung, G., Abdulkader, A., Zennaro, M., Wu, B., Bissacco, A., Adam, H., Neven, H., Vincent, L.: Large-scale privacy protection in google street view. In: 2009 IEEE 12th International Conference on Computer Vision, pp. 2373–2380 (2009). IEEE
[14] Ribaric, S., Ariyaeeinia, A., Pavesic, N.: De-identification for privacy protection in multimedia content: A survey. Signal Processing: Image Communication 47, 131–151 (2016)
[15] Javidi, B., Carnicer, A., Ahmadi, K., Awatsuji, Y., Chen, W., Fournel, T., Genevet, P., Guo, J., He, W., Hébert, M., et al.: Roadmap on optics and photonics for security and encryption. IEEE Access (2025)
[16] Yu, Z., Li, H., Zhao, W., Huang, P.-S., Lin, Y.-T., Yao, J., Li, W., Zhao, Q., Wu, P.C., Li, B., et al.: High-security learning-based optical encryption assisted by disordered metasurface. Nature communications 15(1), 2607 (2024)
[17] Li, S., Deng, M., Lee, J., Sinha, A., Barbastathis, G.: Imaging through glass diffusers using densely connected convolutional networks. Optica 5(7), 803–813 (2018)
[18] Zhang, Y., Zhang, Q., Yu, H., Zhang, Y., Luan, H., Gu, M.: Memory-less scattering imaging with ultrafast convolutional optical neural networks. Science Advances 10(24), 2205 (2024)
[19] Guo, E., Zhu, S., Sun, Y., Bai, L., Zuo, C., Han, J.: Learning-based method to reconstruct complex targets through scattering medium beyond the memory effect. Optics express 28(2), 2433–2446 (2020)
[20] Hinojosa, C., Niebles, J.C., Arguello, H.: Learning privacy-preserving optics for human pose estimation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 2573–2582 (2021)
[21] Hinojosa, C., Marquez, M., Arguello, H., Adeli, E., Fei-Fei, L., Niebles, J.C.: Privhar: Recognizing human actions from privacy-preserving lens. In: European Conference on Computer Vision, pp. 314–332 (2022). Springer
[22] Tasneem, Z., Milione, G., Tsai, Y.-H., Yu, X., Veeraraghavan, A., Chandraker, M., Pittaluga, F.: Learning phase mask for privacy-preserving passive depth estimation. In: European Conference on Computer Vision, pp. 504–521 (2022). Springer
[23] Lopez, J., Hinojosa, C., Arguello, H., Ghanem, B.: Privacy-preserving optics for enhancing protection in face de-identification. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12120–12129
(2024)
[24] Cheng, J., Dai, X., Wan, J., Antipa, N., Vasconcelos, N.: Learning a dynamic privacy-preserving camera robust to inversion attacks. In: European Conference on Computer Vision, pp. 349–367 (2024). Springer
[25] Huang, G.B., Mattar, M., Berg, T., Learned-Miller, E.: Labeled faces in the wild: A database for studying face recognition in unconstrained environments. In: Workshop on Faces in'Real-Life'Images: Detection, Alignment, and Recognition (2008)
[26] Ren, D., Zhang, K., Wang, Q., Hu, Q., Zuo, W.: Neural blind deconvolution using deep priors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3341–3350 (2020)
[27] Zhang, J., Yue, Z., Wang, H., Zhao, Q., Meng, D.: Blind image deconvolution by generative-based kernel prior and initializer via latent encoding. In: European Conference on Computer Vision, pp. 73–92 (2024). Springer
[28] Chung, H., Kim, J., Kim, S., Ye, J.C.: Parallel diffusion models of operator and image for blind inverse problems. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6059–6069 (2023)
[29] Silberman, N., Hoiem, D., Kohli, P., Fergus, R.: Indoor segmentation and support inference from RGBD images. In: European Conference on Computer Vision (ECCV). Lecture Notes in Computer Science, vol. 7576, pp. 746–760. Springer, Florence, Italy (2012)
[30] Ronneberger, O., Fischer, P., Brox, T.: U-net: Convolutional networks for biomedical image segmentation. In: International Conference on Medical Image Computing and Computer-assisted Intervention, pp. 234–241 (2015). Springer
[31] Liang, J., Cao, J., Sun, G., Zhang, K., Van Gool, L., Timofte, R.: Swinir: Image restoration using swin transformer. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pp. 1833–1844 (2021)
[32] Zamir, S.W., Arora, A., Khan, S., Hayat, M., Khan, F.S., Yang, M.-H.: Restormer: Efficient transformer for high-resolution image restoration. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5728–5739 (2022)
[33] Deng, J., Guo, J., Xue, N., Zafeiriou, S.: Arcface: Additive angular margin loss for deep face recognition. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4690–4699 (2019)
[34] Yao, Z., Liu, S., Wang, Y., Yuan, X., Fang, L.: Integrated lithium niobate photonics for sub-ångström snapshot spectroscopy. Nature 646(8085), 567–575 (2025)
[35] Zhang, K., Gool, L.V., Timofte, R.: Deep unfolding network for image super-resolution. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2020)