[Paper Review] OCR Graph Features for Manipulation Detection in Documents
This paper proposes a data-driven, graph-based approach for detecting document manipulations using OCR-derived features, framing character bounding boxes as nodes in a graph and training a random forest classifier to identify forgery imperfections such as pixel-level changes, copy-move, or splicing. The method significantly outperforms prior procedural models, achieving high precision (0.87) and F1 scores (0.80) even on subtle manipulations like 1–5 pixel shifts or 7% scaling.
Detecting manipulations in digital documents is becoming increasingly important for information verification purposes. Due to the proliferation of image editing software, altering key information in documents has become widely accessible. Nearly all approaches in this domain rely on a procedural approach, using carefully generated features and a hand-tuned scoring system, rather than a data-driven and generalizable approach. We frame this issue as a graph comparison problem using the character bounding boxes, and propose a model that leverages graph features using OCR (Optical Character Recognition). Our model relies on a data-driven approach to detect alterations by training a random forest classifier on the graph-based OCR features. We evaluate our algorithm's forgery detection performance on dataset constructed from real business documents with slight forgery imperfections. Our proposed model dramatically outperforms the most closely-related document manipulation detection model on this task.
Motivation & Objective
- To address the growing challenge of digital document forgery using accessible image editing tools.
- To overcome limitations of procedural, hand-tuned methods in detecting subtle manipulations in documents.
- To develop a generalizable, data-driven approach that leverages the structural properties of digital documents.
- To evaluate performance on a realistic dataset simulating real-world forgery imperfections such as shifting and scaling.
- To demonstrate that graph-based OCR features improve detection accuracy over existing methods.
Proposed method
- The method models each character in a document as a node in a graph, with edges representing spatial and typographic relationships to neighboring characters.
- Graph features are extracted from OCR bounding boxes, including size, distance, alignment, and relative positioning to neighboring characters.
- A random forest classifier is trained on these graph-based features to distinguish between authentic and manipulated characters.
- The model is evaluated on a custom dataset of real business documents with synthetic manipulations, including pixel-level changes, copy-move, and splicing.
- The dataset is designed to isolate forgery imperfections by simulating shifts and scalings while minimizing texture or pixel-based artifacts.
- Hyperparameters such as Mahalanobis threshold and log-transformed Hu moments are tuned to optimize model performance.
Experimental results
Research questions
- RQ1Can a data-driven, graph-based approach outperform procedural methods in detecting subtle document manipulations?
- RQ2How effective are OCR-derived graph features in identifying forgery imperfections such as misalignment or inconsistent scaling?
- RQ3Does leveraging the structured layout of documents improve detection performance compared to pixel-based or texture-based methods?
- RQ4To what extent does the model generalize across different types of manipulations, including shifting and scaling?
- RQ5Can the model maintain high precision and low false positive rates when detecting minimal alterations?
Key findings
- The proposed model achieves a precision of 0.8651 ± 0.0134 and an F1 score of 0.8012 ± 0.0181 when detecting 5% of characters scaled by 15–25%, significantly outperforming the baseline model.
- For 1–5 pixel shifts, the model maintains a precision of 0.8604 ± 0.0101 and an F1 score of 0.7512 ± 0.0121, indicating strong detection capability on minimal manipulations.
- The baseline model (Bertrand et al., 2013) reports a much lower F1 score of 0.4265 ± 0.0170 on the same scaling task, highlighting the superiority of the proposed method.
- The model achieves high accuracy (0.9857 ± 0.0112) on the 15–25% scaling task, indicating robust generalization across splits.
- Despite higher recall (0.7862 ± 0.0170) in the baseline, its precision (0.2927 ± 0.0144) is drastically lower, indicating a high rate of false positives.
- The results suggest that larger manipulations may disrupt the model’s ability to correctly distinguish characters on the same line, potentially due to altered spatial relationships.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.