A Spatial Rich Model (SRM) is a universal steganalysis and image forensics feature set that projects an image into a high-dimensional space of noise residuals to detect manipulation. It computes residuals using linear and non-linear high-pass filters, then captures their statistical dependencies via co-occurrence matrices, forming a 34,671-dimensional feature vector that serves as input to an ensemble classifier.
Glossary
Spatial Rich Model (SRM)

What is Spatial Rich Model (SRM)?
A high-dimensional forensic feature set constructed from diverse noise residuals and co-occurrence matrices, used to train ensemble classifiers for universal image manipulation detection.
Unlike forensic methods targeting a specific manipulation type, SRM provides a blind detection capability by modeling the complex, high-order statistical relationships inherent in natural images. Any tampering—whether splicing, inpainting, or steganographic embedding—disrupts these subtle pixel dependencies, producing detectable anomalies in the SRM feature space without requiring prior knowledge of the manipulation technique.
Key Characteristics of SRM
The Spatial Rich Model (SRM) constructs a high-dimensional forensic feature set by computing diverse noise residuals and modeling their statistical dependencies via co-occurrence matrices. This section breaks down the core architectural components that make SRM a universal blind steganalysis and manipulation detector.
High-Dimensional Residual Computation
SRM projects an image through a diverse bank of linear and non-linear high-pass filters to compute noise residuals. These residuals suppress the image's semantic content and isolate the subtle, local pixel dependencies introduced by the sensor or manipulation.
- Linear Filters: Capture first-order and second-order differences, revealing edge artifacts.
- Non-Linear Filters: Include 'minmax' and 'spam' filters that capture higher-order statistical deviations invisible to linear analysis.
- Diversity: The model uses dozens of distinct filters to ensure no single type of manipulation artifact is missed.
Co-Occurrence Matrix Construction
After residual computation, SRM quantizes the continuous residual values and computes fourth-order co-occurrence matrices. These matrices model the joint probability distribution of neighboring residual samples, capturing the intricate statistical texture of the noise.
- Truncation: Residuals are truncated to a small range (e.g., [-T, T]) to control dimensionality and suppress outlier noise.
- Symmetry Aggregation: Horizontal, vertical, diagonal, and anti-diagonal co-occurrences are merged using sign and directional symmetries to reduce the feature space while preserving discriminative power.
- Output: A single, massive feature vector representing the global statistical fingerprint of the image's noise.
Universal Blind Detection Paradigm
Unlike forensic methods targeting a specific manipulation (e.g., double JPEG compression), SRM is a universal blind detector. It does not require prior knowledge of the manipulation type.
- Rich Model Concept: The 'richness' refers to the massive, diverse feature set that over-represents the image, ensuring that any manipulation's footprint is captured in some subspace of the model.
- Generalization: Trained on a broad mix of manipulations, an SRM-based classifier can detect previously unseen inpainting, splicing, or steganographic algorithms by identifying a break in the natural statistical structure of the sensor noise.
Ensemble Classifier Integration
The 34,671-dimensional SRM feature vector is fed into an ensemble classifier, typically a set of Fisher Linear Discriminants (FLDs) trained on random subspaces of the feature space.
- Dimensionality Management: Training on random subspaces prevents overfitting to the high-dimensional, sparse feature set.
- Fusion Rule: The final authenticity decision is made by a majority voting mechanism across the ensemble, providing a robust and computationally feasible classification.
- Scalability: This architecture allows the model to scale to the massive feature dimensionality required for universal detection without prohibitive training costs.
Steganalysis and Manipulation Dual-Use
SRM was originally designed for steganalysis (detecting covert hidden messages) but is equally effective for image manipulation detection.
- Steganalysis: Detects the subtle disruption of natural pixel dependencies caused by embedding a payload in the least significant bits.
- Manipulation Detection: Identifies the boundary where a spliced object introduces a foreign noise distribution, or where inpainting creates statistically anomalous smooth regions.
- Unifying Principle: Both tasks rely on detecting a localized violation of the camera's intrinsic sensor pattern noise and processing fingerprint.
Spatial Domain Focus
SRM operates entirely in the spatial domain, analyzing pixel values directly without transforming the image into a frequency representation like DCT or wavelet domains.
- Complementary Analysis: While frequency domain methods (e.g., double JPEG detection) target compression artifacts, SRM targets the fundamental pixel correlations that exist before and after compression.
- Robustness: This spatial focus makes SRM effective even on high-quality, minimally compressed images where JPEG ghosting artifacts are absent.
- Feature Submodels: The 'SRMQ1' variant includes quantization steps that provide some implicit robustness to JPEG compression while remaining a spatial-domain feature.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Concise answers to the most common technical questions about the Spatial Rich Model (SRM) for universal image forensics.
A Spatial Rich Model (SRM) is a high-dimensional forensic feature set designed for universal image steganalysis and manipulation detection. It works by first computing a diverse array of noise residuals—the difference between the original image and its filtered versions—using linear and non-linear high-pass filters. These residuals suppress image content and expose the subtle statistical fingerprints of tampering. The model then quantizes and truncates these residuals and computes co-occurrence matrices (fourth-order) from neighboring samples. The resulting high-dimensional feature vector (typically 34,671 dimensions) is used to train an ensemble classifier, enabling the detection of a wide range of manipulation types without needing prior knowledge of the specific forgery method.
Related Terms
Explore the foundational concepts and complementary techniques that form the ecosystem around the Spatial Rich Model, from the noise residuals it relies on to the classifiers it feeds.
Noise Residual Extraction
The foundational preprocessing step for SRM, where an image's denoised version is subtracted from the original to isolate the stego noise component. This suppresses scene content and amplifies the subtle artifacts introduced by manipulation. Common filters include wavelet-based denoisers and pixel prediction error filters that model local linear dependencies.
Co-occurrence Matrix
A statistical tool that captures the joint probability distribution of neighboring residual values. Instead of analyzing individual pixels, it models the higher-order relationships between adjacent samples in the noise residual. SRM uses fourth-order co-occurrence matrices, which track the frequency of specific 4-pixel patterns, dramatically increasing the feature space to capture complex textural anomalies.
Ensemble Classifier
The machine learning backbone typically paired with SRM features. An ensemble of base learners—often Fisher Linear Discriminants (FLD) trained on random subspaces of the high-dimensional feature set—is fused by majority voting. This architecture is specifically designed to handle the small training sample size, high dimensionality problem inherent in steganalysis and forgery detection, providing robust generalization.
Rich Model Projection
A dimensionality reduction technique applied to the raw SRM feature vector. Instead of using the full 34,671-dimensional feature set, random projections are used to map the co-occurrence bins into a lower-dimensional space. This preserves the relative distances between feature vectors while making the subsequent classifier training computationally tractable without significant loss of forensic discriminability.
Steganalysis vs. Forgery Detection
While SRM was originally designed for steganalysis—detecting hidden messages embedded by steganographic algorithms—its principles transfer directly to image forgery detection. Both tasks rely on identifying subtle statistical anomalies in the noise domain. The key distinction: steganalysis looks for embedding artifacts, while forgery detection uses SRM to localize tampering boundaries where noise patterns are inconsistent.
JPEG Phase Awareness
A critical consideration when applying SRM to real-world images. The model must account for the 8x8 block grid introduced by JPEG compression. SRM incorporates features computed directly from JPEG quantized DCT coefficients, capturing intra-block and inter-block dependencies. This phase-aware variant prevents the forensic classifier from confusing legitimate compression artifacts with manipulation traces.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us