Master's Thesis
Deep Learning-Based Detection of Document Tampering
— 2026
Key information
Authors:
Supervisors:
Published in
June 30, 2026
Abstract
This thesis addresses the problem of document image manipulation detection and localization, with a particular focus on financial and insurance scenarios in which forged documents may lead to fraudulent claims and operational losses. Deep learning approaches based on the SegFormer-B2 architecture are investigated for both pixel-level localization and document-level binary classification on the RTM dataset. Different forensic and spatial input representations are evaluated using semantic segmentation models implemented in both Hugging Face and MMSegmentation (MMSEG), with MMSEG consistently achieving superior performance. Multiple document-level decision strategies derived from segmentation outputs are also explored, including any-positive-pixel and top-\(k\) aggregation rules. To improve document-level detection performance, a two-branch architecture is proposed. The model combines a segmentation branch with a dedicated image-level classification branch using a shared backbone. Additional experiments evaluate the impact of convolutional refinement layers and compare jointly optimized multi-task learning against standalone image-level classification training. The results show that the proposed two-branch architecture significantly improves document-level manipulation detection performance. The best configuration, combining multi-task supervision with convolutional refinement, achieves the strongest balance between Recall, F1-score, and false-positive control on authentic documents. Although pixel-level localization metrics decrease compared with the segmentation-only baseline, qualitative analysis demonstrates that the model still captures the main manipulated regions in most cases. The implementation developed in this work is publicly available.
Publication details
Authors in the community:
Ricardo Machado Almeida
ist199317
Supervisors of this institution:
Bruno Emanuel Da Graça Martins
ist24686
Fields of Science and Technology (FOS)
electrical-engineering-electronic-engineering-information-engineering - Electrical engineering, electronic engineering, information engineering
Publication language (ISO code)
eng - English
Rights type:
Embargoed access
Date available:
May 1, 2027
Institution name
Instituto Superior Técnico