MATHEMATICAL METHOD FOR IDENTIFYING AI-GENERATED IMAGES BASED ON SVD AND LINEAR REGRESSION
DOI:
https://doi.org/10.32689/maup.it.2025.3.14Keywords:
Singular Value Decomposition (SVD), Identification of Images, Linear Regression, AI-Generated Images, Slope Analysis, Computer Vision, Deepfake DetectionAbstract
The rapid advancement of artificial intelligence technologies, particularly generative models such as Stable Diffusion, has led to an increase in AI-generated images, creating significant challenges for countering disinformation andensuring the integrity of digital content in social media, journalism, and legal contexts. The proposed mathematical method addresses this issue by providing an automated and effective approach to identifying synthetic patterns in images, offering practical value for ethical AI oversight and forensic applications. This research is particularly timely given the growing need for robust tools to detect image manipulations, such as deepfakes and copy-move forgeries, in an era of rapidly evolving AI capabilities.The purpose of this study is to develop and test a mathematical method for detecting the authenticity of digital images, utilizing singular value decomposition (SVD) and linear regression, with the tangent of the slope (slope) as the key criterionfor distinguishing real images from those generated by artificial intelligence (AI). The proposed approach aims to identifydifferences in the energy distribution of images, enabling the detection of synthetic patterns characteristic of AI-generated content, and to evaluate the method’s effectiveness through practical examples.The methodology involves transforming a digital image into a pixel matrix, applying singular value decomposition to obtain singular values, performing their logarithmic approximation, and constructing linear regression. The tangent of theslope is calculated as the regression coefficient, reflecting the rate of energy decay. To enhance accuracy, a block-based methodis employed, dividing the image into 16x16 pixel submatrices, with the resulting slope values compared against an empiricalthreshold (e.g., <-0,8 for authentic images). Experiments were conducted on a dataset comprising real photographs and imagesgenerated by models such as Stable Diffusion, followed by statistical evaluation of the results.The scientific novelty lies in the integration of SVD with linear regression to model the decay of logarithms of singular values, emphasizing the slope as a differential feature. Unlike traditional methods relying on frequency analysis or keypoints, thisapproach enables automated classification without the need for manual parameter tuning. It effectively detects manipulations,including copy-move forgery and deepfakes, addressing the rapid advancement of AI technologies.Conclusions. The findings of the study confirm the high effectiveness of the method for distinguishing between real andAI-generated images, where the average slope value for authentic images is -1,4026, and for synthetic images, it is -0.5829.The method demonstrates an accuracy of 87,76% on a test set of 98 images, along with a Recall of 93,55% and Specificity of 85,07%, though limitations were identified in analyzing images with uniform textures and the presence of 7 false positives. The results underscore the practical significance of the approach for protecting against disinformation, supporting jurisprudence,and ethical AI control, with prospects for further improvement through integration with techniques such as SIFT (Scale- Invariant Feature Transform) or CNN (Convolutional Neural Network).
References
Ba Z., Zhang Y., Cheng P., Gong B., Zhang X., Wang Q., Ren K. Robust Watermarks Leak: Channel-Aware Feature Extraction Enables Adversarial Watermark Manipulation. arXiv:2502.06418v1 [cs.CV], 10 Feb 2025. URL: https://arxiv.org/html/2502.06418v1
Capasso P., Cattaneo G., de Marsico M. A Comprehensive Survey on Methods for Image Integrity. ACM Transactions on Multimedia Computing, Communications and Applications, Vol. 20, No. 11, Article No. 347, 2024, pp. 1–34. URL: https://doi.org/10.1145/3633203
Deb P., Deb S., Das A., Kar N. Image Forgery Detection Techniques: Latest Trends and Key Challenges. IEEE Access, Vol. PP, No. 99, January 2024, pp. 1–1. DOI: 10.1109/ACCESS.2024.3498340
Gul G., Avcibas I., Kurugollu F. SVD Based Image Manipulation Detection. In: 2010 IEEE International Conference on Image Processing, Hong Kong, China, September 2010. DOI: 10.1109/ICIP.2010.5652854. URL: https://ieeexplore.ieee.org/document/5652854
Kashyap A., Agarwal M., Gupta H. Detection of Copy-Move Image Forgery Using SVD and Cuckoo Search Algorithm. arXiv:1704.00631v1 [cs.MM], 3 Apr 2017. URL: https://arxiv.org/pdf/1704.00631. DOI: 10.14419/ijet.v7i2.13.11604
Khudhair Z. N., Mohamed F., Rehman A., Saba T., Bahaj S. A. Detection of Copy-Move Forgery in Digital Images Using Singular Value Decomposition. Computers, Materials & Continua, Vol. 74, No. 2, 2023, pp. 4135–4147. URL: https://doi.org/10.32604/cmc.2023.032315
Kobozieva A., Bobok I., Kushnirenko N. Steganalysis Method for Detecting LSB Embedding in Digital Video, Digital Image Sequence. In: 11th International Conference «Information Control Systems and Technologies» (ICST 2023), Odesa, 21–23 September 2023, pp. 78–90. [CEUR Workshop Proceedings, Vol. 3513]. URL: https://ceur-ws.org/Vol-3513/paper07.pdf
Lađević A. L., Kramberger T., Kramberger R., Vlahek D. Detection of AI-Generated Synthetic Images with a Lightweight CNN. Artificial Intelligence, Vol. 5, No. 3, 2024, pp. 1575–1593. URL: https://doi.org/10.3390/ai5030076
Malakooti M. V., Tafti A. P., Rohani F., Moghaddasifar M. A. RGB Digital Image Forgery Detection Using Singular Value Decomposition and One Dimensional Cellular Automata. In: 2012 8th International Conference on Computing Technology and Information Management (NCM and ICNIT), 2012. URL: https://ieeexplore.ieee.org/document/6268546
Moghaddasi Z., Jalab H. A., Noor R. M. Image Splicing Forgery Detection Based on Low-Dimensional Singular Value Decomposition of Discrete Cosine Transform Coefficients. Neural Computing and Applications, 2018. URL: https://doi.org/10.1007/s00521-018-3648-3
Saberi M., Sadasivan V. S., Rezaei K., Kumar A., Chegini A., Wang W., Feizi S. Robustness of AI-Image Detectors: Fundamental Limits and Practical Attacks. arXiv:2310.00076, Feb 2024. URL: https://doi.org/10.48550/arXiv.2310.00076
Sengupta S., Shinde P., Shah H. Image Forgery Detection Techniques for Forensic Sciences. International Journal of Software & Hardware Research in Engineering, Vol. 2, No. 8, August 2014. URL: https://ijournals.in/wp-content/uploads/2017/07/9.2814-Prajakta.pdf
Stable Diffusion 2.1 Demo. URL: https://huggingface.co/spaces/stabilityai/stable-diffusion
Vahdati D. S., Nguyen T. D., Azizpour A., Stamm M. C. Beyond Deepfake Images: Detecting AI-Generated Videos. arXiv:2404.15955v1 [cs.CV], 24 Apr 2024. URL: https://arxiv.org/html/2404.15955v1
Xie H., Ni J., Zhang J., Zhang W., Huang J. Evading Generated-Image Detectors: A Deep Dithering Approach. Signal Processing, Vol. 197, August 2022, 108558. URL: https://doi.org/10.1016/j.sigpro.2022.108558






