Computer vision researchers have developed an artificial intelligence forensic framework that identifies fully synthetic, generative adversarial network facial imagery by analyzing local camera surface frames rather than standard color pixel textures. Synthetic human faces generated by deep neural networks frequently appear flawless to the human eye, yet they inherently lack the physical acquisition footprints left by real optical camera sensors. Real-world photographs reflect complex environmental interactions among illumination sources, surface reflectance properties, and three-dimensional spatial geometry as light passes through an optical lens onto a physical sensor. Generative architectures reconstruct imagery algorithmically from latent representations, entirely bypassing the physical constraints of an authentic optical apparatus. By leveraging estimated local surface frames derived from camera perspective geometry, the research team demonstrated that artificial facial portraits exhibit measurably flatter and inconsistent geometric surface orientations compared to genuine photographs, enabling classification models to achieve superior generalisation across previously unseen generative systems.
The rapid evolution of deep generative modeling has transformed facial manipulation and synthetic content generation into a critical challenge for digital trust and information security. Early facial manipulation paradigms primarily performed facial swaps or altered specific facial expressions across existing video frames, leaving temporal jitter and localized blending artifacts that conventional detectors could pinpoint. In contrast, modern generative adversarial network families such as StyleGAN independently synthesize high-resolution facial imagery up to 1024 by 1024 pixels without requiring external input imagery at inference time. These architectures project input latent codes into intermediate latent spaces, progressively modulating styles across hierarchical synthesis layers aided by Gaussian noise. While recent diffusion models and latent diffusion systems excel at synthesizing general-purpose scenes, they frequently struggle with fine-grained human facial elements, often producing noticeable plastic textures or anatomical irregularities. StyleGAN architectures, conversely, generate exceptionally realistic human facial portraits that mirror authentic photographic compositions, making conventional visual inspection ineffective.
To expose the subtle structural discrepancies in fully artificial imagery, the researchers implemented a geometric forensic pipeline centered on local camera surface frames, denoted mathematically as SF^L. A surface frame at any specific image pixel is defined as a three-by-three matrix comprising three mutually orthogonal unit vectors within the local camera coordinate system: the surface normal, the surface tangent, and the surface bitangent. These geometric vectors capture the estimated three-dimensional orientation of scene surfaces relative to the vantage point of the recording camera. In authentic photography, these orientations correlate directly with real-world spatial depth, ambient lighting conditions, and material contours. The authors posited that because fully synthetic images are produced without genuine physical optics, their estimated local surface geometries diverge fundamentally from those observed in genuine real-world portraits, providing a robust mathematical signature for forensic discrimination.
The feature extraction pipeline operationalizes this geometric insight by passing input imagery through UpRightNet, a pretrained neural network originally designed to estimate surface frames and determine camera roll and pitch from single two-dimensional color inputs. Within this processing architecture, the pretrained weights of UpRightNet are held frozen to ensure consistent feature extraction without domain bias. The network takes color images scaled to an input resolution of 288 by 384 pixels and computes both local camera coordinate representations and global upright reference frames. The proposed forensic framework specifically isolates the z-component values of the predicted local normal vector, tangent vector, and bitangent vector at every individual pixel location. Because the z-components represent the depth-axis projection of local orientation relative to the camera sensor plane, they directly encapsulate environmental perspective cues that generative models fail to simulate accurately.
Following extraction, the three individual z-component channels are linearly scaled into the standard eight-bit integer range of 0 to 255 and concatenated along the channel dimension through a dedicated aggregation operation. This transformation yields a three-channel tensor representation termed SF^L with dimensions matching the spatial resolution of the feature extractor. This geometric tensor is subsequently downscaled to conform to the standard input dimensions required by downstream convolutional neural network classifiers, such as 224 by 224 pixels or 299 by 299 pixels depending on the chosen backbone. Unlike traditional deepfake forensic methods that crop tightly around isolated facial landmarks like eyes or lips, this framework processes the entire image frame to capture global scene geometry, subtle background lighting interactions, and contextual structural anomalies that expose artificial generation.
Direct qualitative analysis of these local camera surface frames revealed conspicuous structural differences between genuine photographs and synthetic counterparts. In authentic facial images drawn from the Flickr-Faces-HQ dataset, visualized surface frame representations exhibit prominent red regions where the z-component of the surface normal vector strongly dominates, reflecting the natural convexity, variable curvature, and organic contours of real human faces captured by camera optics. Conversely, synthetic portraits generated by StyleGAN and StyleGAN2 display pronounced flattening across facial regions, accompanied by an unnatural prevalence of green tones and a marked reduction in normal z-component intensity. This visual flattening indicates that generative adversarial networks fail to replicate authentic depth variation and physical surface orientations, producing synthetic faces that appear geometrically uniform when reconstructed in local camera coordinates.
To evaluate the framework systematically, the investigators constructed balanced experimental datasets utilizing 70,000 authentic high-resolution portraits from the Flickr-Faces-HQ benchmark, which encompasses broad diversity across age, ethnicity, facial accessories, and background environments. For synthetic data, the team sampled 70,000 images from StyleGAN and 70,000 images from StyleGAN2, both generated at 1024 by 1024 pixel resolution using a truncation style scale parameter of 0.5. The datasets were split into structured subsets comprising 100,000 images for model training, 20,000 images for validation, and 20,000 images for final testing, maintaining an exact parity between authentic and synthetic samples across all partitions. Experiments were conducted using four prominent convolutional neural network backbones: ResNet50, MobileNetV2, EfficientNet-B0, and XceptionNet, treating authentic images as the positive class and synthetic images as the negative class.
All training procedures were executed within PyTorch on a single NVIDIA GeForce RTX 4090 graphics processing unit. Feature generation with the frozen UpRightNet model operated efficiently, achieving an average throughput of approximately 28 milliseconds per processed image. Each downstream classification network was trained end-to-end for 10 epochs using standard binary cross-entropy loss, an optimization batch size of 64, and stochastic gradient descent configured with a momentum factor of 0.9, a weight decay coefficient of 0.0001, and an initial learning rate of 0.001. Model performance was quantified using overall accuracy, true positive rate measuring authentic image identification, and true negative rate measuring synthetic sample rejection across both in-dataset and cross-dataset evaluation environments.
Under the in-dataset operational scenario, where classifiers were trained and tested on the identical synthetic generator architecture, both raw color pixels and the proposed SF^L geometric representations achieved near-perfect classification performance, with accuracy scores approaching 0.99 across all four convolutional backbones. The authors noted that in-dataset synthetic face detection represents a relatively straightforward task because standard neural networks readily memorize generator-specific pixel artifacts. However, the high accuracy of SF^L was notably superior to previous applications of surface frames on the FaceForensics++ benchmark, where accuracy averaged around 0.85. The authors explained that FaceForensics++ involves manipulated facial regions spliced into pristine video frames that originally possessed authentic camera sensor geometry, thereby diluting discriminative power, whereas entirely synthetic images lack physical acquisition history altogether.
The primary advantage of the geometric representation emerged within cross-dataset generalisation evaluations, where models trained on one generative architecture were tested against an unseen generator. In these rigorous cross-model trials, classifiers utilizing standard color pixels experienced severe performance degradation, whereas models trained on SF^L features retained robust discriminative capacity. Across all evaluated backbones, SF^L consistently surpassed raw pixel inputs in both cross-dataset directions. When models were trained on StyleGAN2 and tested on original StyleGAN, SF^L achieved an average accuracy of 74 percent, compared to 69 percent for standard color inputs. When trained on StyleGAN and evaluated against StyleGAN2, SF^L maintained an average accuracy of 61 percent versus 55 percent for color inputs, with XceptionNet demonstrating accuracy improvements approaching 10 percentage points over pixel baselines.
Detailed class-wise metric analysis further illuminated the operational mechanics of the geometric detection pipeline. Across all experimental configurations, the true positive rate remained essentially perfect near 1.0, demonstrating that classifiers correctly recognized authentic photographs regardless of the input feature representation or the training dataset distribution. Consequently, the performance divergence observed in cross-dataset scenarios was driven almost entirely by the true negative rate, which measures the successful identification of fake imagery. When trained on StyleGAN and evaluated on StyleGAN2, the SF^L feature produced an average true negative rate gain exceeding 12 percentage points compared to color pixels, reaching an advantage of nearly 20 percentage points for XceptionNet. Furthermore, training on StyleGAN2 consistently yielded higher true negative rates than training on StyleGAN, confirming that the refined generator architecture produces more coherent internal patterns that foster superior generalisation.
The researchers also conducted extensive robustness stress tests without any network retraining or parameter fine-tuning, evaluating ResNet50 models against common post-processing perturbations. When test images were subjected to Gaussian blurring using a 21 by 21 kernel with sigma values between 0.1 and 5.0, in-dataset accuracy remained above 99 percent for SF^L models, compared to 97 percent and 94 percent for pixel models on StyleGAN and StyleGAN2, while cross-dataset accuracy showed substantial improvements of 10.33 and 8.63 percentage points over raw color. Under spatial downscaling to 75 percent resolution and JPEG compression with quality factors between 50 and 70, SF^L consistently maintained superior cross-dataset stability. Crucially, when evaluating the physical Print and Scan transformation on StyleGAN2, pixel-based model accuracy plummeted to 77 percent as scanning erased fine pixel fingerprints, whereas SF^L maintained 93 percent accuracy, yielding a 16 percentage point advantage.
To evaluate generalisation against newer generative architectures, the researchers extended their testing to StyleGAN3 and StyleGAN-XL. They generated 70,000 images from StyleGAN3 configured with config R and style scale 0.5, partitioned into 50,000 training, 10,000 validation, and 10,000 test images, alongside 10,000 generated StyleGAN-XL portraits. When trained on StyleGAN3, in-dataset accuracy remained above 99 percent for both feature representations. In cross-dataset evaluations against original StyleGAN, SF^L outperformed color inputs by up to 12 percentage points with XceptionNet, reaching 70 percent accuracy with ResNet50. When evaluated on the advanced StyleGAN-XL architecture, SF^L maintained superior cross-generator capability across all backbones, achieving 82 percent accuracy with ResNet50 and 84 percent with XceptionNet. Although StyleGAN3’s alias-free equivariant architecture shifted spatial statistics and slightly impacted lower-capacity backbones, the geometric feature demonstrated resilient transferability to modern synthesis models.
The study establishes that local camera surface frames effectively capture intrinsic camera geometry that generative models fail to synthesize, yet the authors highlighted several boundaries and future research trajectories. The present architecture isolates only the z-components of normal, tangent, and bitangent vectors, leaving the discriminative potential of horizontal and vertical x and y components unexplored. Moreover, while generative adversarial networks represent the prevailing standard for autonomous facial synthesis, emerging diffusion and latent diffusion architectures are rapidly advancing in facial realism. Future investigations will examine whether local camera surface frame analysis maintains its discriminative advantage against state-of-the-art diffusion models, while exploring multi-feature fusion strategies that combine geometric surface orientation cues with complementary forensic descriptors to enhance resilience across unconstrained digital environments.
Subject of Research: Synthetic face detection through local camera surface frame geometry
Article Title: Revealing GAN-generated faces through local camera surface frame analysis
Article References: Ciamarra, A., Caldelli, R., & Del Bimbo, A. (2026). Revealing GAN-generated faces through local camera surface frame analysis. Journal on Information Security, 2026(1), Article 10. https://doi.org/10.1186/s13635-026-00232-y
Image Credits: AI Generated
DOI: 10.1186/s13635-026-00232-y
Keywords: deepfake detection, generative adversarial networks, StyleGAN, StyleGAN2, StyleGAN3, StyleGAN-XL, local camera surface frames, UpRightNet, computer vision, facial synthesis, image forensics, FFHQ dataset, convolutional neural networks, geometric surface normals, cross-dataset generalisation, image perturbations, surface orientation
Cite Scienmag News
Elena Sutton. (November 18, 2026). Local Camera Surface Frame Analysis Accurately Identifies Fully Synthetic GAN Faces. Scienmag. https://scienmag.com/local-camera-surface-frame-analysis-accurately-identifies-fully-synthetic-gan-faces/
Elena Sutton. "Local Camera Surface Frame Analysis Accurately Identifies Fully Synthetic GAN Faces." Scienmag, 18 November 2026, https://scienmag.com/local-camera-surface-frame-analysis-accurately-identifies-fully-synthetic-gan-faces/. Accessed 5 December 2026.
Elena Sutton. "Local Camera Surface Frame Analysis Accurately Identifies Fully Synthetic GAN Faces." Scienmag. November 18, 2026. https://scienmag.com/local-camera-surface-frame-analysis-accurately-identifies-fully-synthetic-gan-faces/








