journal article·2023-08-12Open access

Robust Image Inpainting Forensics by Using an Attention-Based Feature Pyramid Network

Zhuoran Chen, Yujin Zhang, Yongqi Wang, Jin Tian, Fei Wu

Applied Sciences· Volume 13· Issue 16

Abstract

Deep learning has injected a new sense of vitality into the field of image inpainting, allowing for the creation of more realistic inpainted images that are difficult to distinguish from the original ones. However, this also means that the malicious use of image inpainting technology to tamper with images could lead to more serious consequences. In this paper, we use an attention-based feature pyramid network (AFPN) to locate the inpainting traces left by deep learning. AFPN employs a feature pyramid to extract low- and high-level features of inpainted images. It further utilizes a multi-scale convolution attention (MSCA) module to optimize the high-level feature maps. The optimized high-level feature map is then fused with the low-level feature map to detect inpainted regions. Additionally, we introduce a fusion loss function to improve the training effectiveness. The experimental results show that AFPN exhibits remarkable precision in deep inpainting forensics and effectively resists JPEG compression and additive noise attacks.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Digital Media Forensic Detection · Generative Adversarial Networks and Image Synthesis · Advanced Image Processing Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai 201620, China

Funding

Industry-University-Research Innovation Fund of the Chinese Ministry of Education · Shanghai Natural Science Foundation Project

References (53)

Show source-provided references
1. A detailed analysis of image and video forgery detection techniques10.1007/s00371-021-02347-4 ↗
2. Liang, Y., Fang, Y., Luo, S., and Chen, B. (2019, January 13–16). Image resampling detection based on convolutional neural network. Proceedings of the 2019 15th International Conference on Computational Intelligence and Security (CIS), Macao, China.10.1109/CIS.2019.00061 ↗
3. Lamba, M., and Mitra, K. (2020, January 4–8). Multi-patch aggregation models for resampling detection. Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain.10.1109/ICASSP40776.2020.9053005 ↗
4. DCU-Net: A dual-channel U-shaped network for image splicing forgery detection10.1007/s00521-021-06329-4 ↗
5. Efficient detection of copy-move forgery using polar complex exponential transform and gradient direction pattern10.1007/s11042-022-12311-6 ↗
6. Bertalmio, M., Sapiro, G., Caselles, V., and Ballester, C. (2000, January 23–28). Image inpainting. Proceedings of the 27th annual conference on Computer Graphics and Interactive Techniques, New York, NY, USA.10.1145/344779.344972 ↗
7. Digital inpainting based on the Mumford–Shah–Euler image model10.1017/S0956792502004904 ↗
8. Scene completion using millions of photographs10.1145/1276377.1276382 ↗
9. Research on image inpainting algorithm of improved total variation minimization method10.1007/s12652-020-02778-2 ↗
10. Image super-resolution reconstruction based on feature map attention mechanism10.1007/s10489-020-02116-1 ↗
11. Suvorov, R., Logacheva, E., Mashikhin, A., Remizova, A., Ashukha, A., Silvestrov, A., Kong, N., Goka, H., Park, K., and Lempitsky, V. (2022, January 4–8). Resolution-robust large mask inpainting with fourier convolutions. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.10.1109/WACV51458.2022.00323 ↗
12. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (November, January 27). Free-form image inpainting with gated convolution. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
13. Zheng, C., Cham, T.-J., and Cai, J. (2019, January 16–20). Pluralistic image completion. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00153 ↗
14. The improved image inpainting algorithm via encoder and similarity constraint10.1007/s00371-020-01932-3 ↗
15. Zhao, S., Cui, J., Sheng, Y., Dong, Y., Liang, X., Chang, E.I., and Xu, Y. (2021). Large scale image completion via co-modulated generative adversarial networks. arXiv.
16. Wan, Z., Zhang, J., Chen, D., and Liao, J. (2021, January 11–17). High-fidelity pluralistic image completion with transformers. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.00465 ↗
17. Wang, S., Saharia, C., Montgomery, C., Pont-Tuset, J., Noy, S., Pellegrini, S., Onoe, Y., Laszlo, S., Fleet, D.J., and Soricut, R. (2023, January 18–22). Imagen editor and editbench: Advancing and evaluating text-guided image inpainting. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.10.1109/CVPR52729.2023.01761 ↗
18. A forgery detection algorithm for exemplar-based inpainting images using multi-region relation10.1016/j.imavis.2012.09.002 ↗
19. Localization of diffusion-based inpainting in digital images10.1109/TIFS.2017.2730822 ↗
20. Li, H., and Huang, J. (November, January 27). Localization of deep inpainting using high-pass fully convolutional network. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
21. Wu, Y., AbdAlmageed, W., and Natarajan, P. (2019, January 16–20). Mantra-net: Manipulation tracing network for detection and localization of image forgeries with anomalous features. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00977 ↗
22. IID-Net: Image inpainting detection network via neural architecture search and attention10.1109/TCSVT.2021.3075039 ↗
23. Feature pyramid network for diffusion-based image inpainting detection10.1016/j.ins.2021.04.042 ↗
24. Zhu, X., Lu, J., Ren, H., Wang, H., and Sun, B. (2022). A transformer–CNN for deep image inpainting forensics. Image Vis. Comput., 1–15.10.1007/s00371-022-02620-0 ↗
25. Mvss-net: Multi-view multi-scale supervised networks for image manipulation detection10.1109/TPAMI.2022.3180556 ↗
26. Liu, Z., Gong, P., and Wang, J. (2019, January 23–25). Attention-Based feature pyramid network for object detection. Proceedings of the 2019 8th International Conference on Computing and Pattern Recognition, Beijing, China.10.1145/3373509.3373529 ↗
27. Wu, H., Dong, B., Ding, L., and Dong, Y. (2022, January 9–12). Attention feature pyramid network for scene text detection. Proceedings of the 2022 IEEE 8th International Conference on Computer and Communications, Chengdu, China.10.1109/ICCC56324.2022.10065815 ↗
28. An attention-based feature pyramid network for single-stage small object detection10.1007/s11042-022-14159-2 ↗
29. Hu, M., Li, Y., Fang, L., and Wang, S. (2021, January 20–25). A2-FPN: Attention aggregation based feature pyramid network for instance segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01509 ↗
30. MSCA-Net: Multi-scale contextual attention network for skin lesion segmentation10.1016/j.patcog.2023.109524 ↗
31. Guo, M., Lu, C., Hou, Q., Liu, Z., Cheng, M., and Hu, S. (2022). Segnext: Rethinking convolutional attention design for semantic segmentation. arXiv.
32. Wu, Q., Sun, S.-J., Zhu, W., Li, G.-H., and Tu, D. (2008, January 12–15). Detection of digital doctoring in exemplar-based inpainted images. Proceedings of the 2008 International Conference on Machine Learning and Cybernetics, Kunming, China.
33. A passive-blind forgery detection scheme based on content-adaptive quantization table estimation10.1109/TCSVT.2011.2125370 ↗
34. An efficient forgery detection algorithm for object removal by exemplar-based image inpainting10.1016/j.jvcir.2015.03.004 ↗
35. Gehring, J., Auli, M., Grangier, D., Yarats, D., and Dauphin, Y.N. (2017, January 7–10). Convolutional sequence to sequence learning. Proceedings of the International Conference on Machine Learning, Amsterdam, The Netherlands.
36. Zhao, T., and Wu, X. (2019, January 16–20). Pyramid feature attention network for saliency detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00320 ↗
37. SAT-GCN: Self-attention graph convolutional network-based 3D object detection for autonomous driving10.1016/j.knosys.2022.110080 ↗
38. Mutual information based anomaly detection of monitoring data with attention mechanism and residual learning10.1016/j.ymssp.2022.109607 ↗
39. Label-attention transformer with geometrically coherent objects for image captioning10.1016/j.ins.2022.12.018 ↗
40. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (2018, January 18–22). Generative image inpainting with contextual attention. Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00577 ↗
41. Deep generative model for image inpainting with local binary pattern learning and spatial attention10.1109/TMM.2021.3111491 ↗
42. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
43. Lin, T., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
44. Bottou, L. (2010, January 22–27). Large-scale machine learning with stochastic gradient descent. Proceedings of the COMPSTAT’2010, Paris, France.10.1007/978-3-7908-2604-3_16 ↗
45. Deng, J., Dong, W., Socher, R., Li, L., Li, K., and Fei-Fei, L. (2009, January 20–25). Imagenet: A large-scale hierarchical image database. Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
46. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
47. Places: A 10 million image database for scene recognition10.1109/TPAMI.2017.2723009 ↗
48. The Dresden Image Database for Benchmarking Digital Image Forensics10.1080/15567281.2010.531500 ↗
49. Yan, Z., Li, X., Li, M., Zuo, W., and Shan, S. (2018, January 8–14). Shift-net: Image inpainting via deep feature rearrangement. Proceedings of the European Conference on Computer Vision, Munich, Germany.10.1007/978-3-030-01264-9_1 ↗
50. Yu, T., Guo, Z., Jin, X., Wu, S., Chen, Z., Li, W., Zhang, Z., and Liu, S. (2020, January 7–12). Region normalization for image inpainting. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.
51. Nazeri, K., Ng, E., Joseph, T., Qureshi, F.Z., and Ebrahimi, M. (2019). Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv.
52. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
53. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11–17). Swin transformer: Hierarchical vision transformer using shifted windows. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.00986 ↗