Quick Response Code Verification Using Anti-Counterfeiting Pattern and Multi-Feature Fusion Network
Abstract
1. Introduction
- (1)
- An anti-counterfeiting QR code is designed, primarily composed of a QR code and an anti-counterfeiting pattern, with the latter essentially consisting of a randomized intricate texture distribution sensitive to replication.
- (2)
- A dual-branch multi-scale feature fusion network is proposed, and its feature extraction and fusion mechanism can effectively capture the forgery traces of the anti-counterfeiting pattern so as to verify the anti-counterfeiting QR code.
- (3)
- The proposed scheme is tested on the self-built anti-counterfeiting QR code dataset, and the superiority of the proposed method is verified by ablation experiments and comparison methods.
2. Materials and Methods
2.1. The Overall Identification Process
- (1)
- The ACP is divided into multiple image blocks by an overlapped blocking operation.
- (2)
- The difference between the real ACP and the fake ACP is subtle, and the interference caused by the overall content of the ACP should be avoided during the authenticity identification process. Some researchers [36,43] suppressed the interference of image content in forensics by using special filters, such as Laplacian filters and high-pass filters, but the use of filters is a double-edged sword because they may also discard useful information. Since the convolutional layer can automatically learn the representation of useful features, this paper uses the convolutional self-learning method to amplify the traces left in the forgery process.
- (3)
- A multi-feature fusion network with double-branch structure is proposed. The preprocessing layer in each branch uses convolution kernels of different sizes to extract multi-features representing subtle differences between a real ACP and a fake ACP. The structure of the two branches is the same, which is simple but effective. The dual-branch framework further enhances the feature extraction capability through a multi-feature fusion mechanism.
2.2. The Proposed Method
2.2.1. Overlapping Blocks of Anti-Counterfeiting Patterns
| Algorithm 1 The pseudocode of the overlapped blocking algorithm |
| Input: , , |
| Steps: |
| 1: 2: 3: The step size is calculated from the image size of the ACP, the image size of block and the number of image blocks. 4: The position coordinate of the upper left point of each image block is determined according the . 5: Save each image block. 6: end 7: end Output: Collection of all image blocks , the number of image blocks |
2.2.2. The Proposed DMFNet
3. Experimental Results and Analysis
3.1. Experiment Platform
3.2. Dataset Production
- Real anti-counterfeiting QR codes: The official authorized printer Toshiba e-studio 2051c-11606695 (Toshiba Tec Corporation, Tokyo, Japan) was used to print 48 anti-counterfeiting QR code images, 5 mobile phones were used to collect the real anti-counterfeiting QR code dataset, and a total of 240 images were obtained. The brands and models of the printer and smartphones are presented in Table 3 and Table 4, respectively.
- Fake anti-counterfeiting QR codes: Eight sets of all-in-one printing and copying machines were used to forge by scanning and then printing. A total of 1920 fake anti-counterfeiting QR codes were obtained, and then 240 fake anti-counterfeiting QR codes were randomly selected.
3.3. Performance Test of the Proposed Algorithm
4. Discussion
4.1. Selection of Convolutional Kernels in Preprocessing Convolutional Layers
4.2. Resilience to Blurring
4.3. Resilience to Illumination
4.4. Cross-Validation and Ablation Study
4.5. Cross-Domain Verification
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- OECD. Trends in Trade in Counterfeit and Pirated Goods; OECD Publishing: Paris, France, 2019. [Google Scholar]
- International Chamber of Commerce. The Economic Impacts of Counterfeiting and Piracy; International Chamber of Commerce: Paris, France, 2016. [Google Scholar]
- World Customs Organization. Illicit Trade Report 3029; World Customs Organization: Brussels, Belgium, 2019. [Google Scholar]
- Pittiglio, R. Counterfeiting and firm survival. Evidence from the Italian manufacturing industry. Econ. Syst. 2024, 48, 101175. [Google Scholar] [CrossRef]
- Chin, S.H.; Lu, C.; Ho, P.T.; Shiao, Y.F.; Wu, T.J. Commodity anti-counterfeiting decision in e-commerce trade based on machine learning and Internet of Things. Comput. Stand. Interfaces 2021, 76, 103504. [Google Scholar] [CrossRef]
- Soon, J.M.; Manning, L. Developing anti-counterfeiting measures: The role of smart packaging. Food Res. Int. 2019, 123, 135–143. [Google Scholar] [CrossRef]
- Zhang, C.; Zhu, L.; Xu, C.; Sharif, K.; Lu, R.; Chen, Y. APPB: Anti-Counterfeiting and Privacy-Preserving Blockchain-Based Vehicle Supply Chains. IEEE Trans. Veh. Technol. 2022, 71, 13152–13164. [Google Scholar] [CrossRef]
- William, P.; Jadhav, D.; Cholke, P.; Jawale, M.A.; Pawar, A.B. Framework for product anti-counterfeiting using blockchain technology. In Proceedings of the 2022 International Conference on Sustainable Computing and Data Communication Systems (ICSCDS); IEEE: New York, NY, USA, 2022; pp. 1254–1258. [Google Scholar]
- Wang, S.; Toreini, E.; Hao, F. Anti-counterfeiting for polymer banknotes based on polymer substrate fingerprinting. IEEE Trans. Inf. Forensics Secur. 2021, 16, 2823–2835. [Google Scholar] [CrossRef]
- Smith, C.D.; Biewer, T.M.; Ren, X.; Thomas, C.E.; Gebhart, T.; Zhang, Z. Recent developments in dual-laser digital holography for plasma-facing surface characterization. IEEE Trans. Plasma Sci. 2019, 48, 1655–1660. [Google Scholar] [CrossRef]
- Thornton, D.E.; Spencer, M.F.; Rice, C.A.; Perram, G.P. Impacts of laboratory vibrations and laser flicker noise on digital holography. IEEE J. Quantum Electron. 2020, 56, 1400107. [Google Scholar] [CrossRef]
- He, X.; Gu, Y.; Yu, B.; Liu, Z.; Zhu, K.; Wu, N.; Zhao, X.; Wei, Y.; Zhou, J.; Song, Y. Multi-mode structural-color anti-counterfeiting labels based on physically unclonable amorphous photonic structures with convenient artificial intelligence authentication. J. Mater. Chem. C 2019, 7, 14069–14074. [Google Scholar] [CrossRef]
- Arppe, R.; Sørensen, T.J. Physical unclonable functions generated through chemical methods for anti-counterfeiting. Nat. Rev. Chem. 2017, 1, 0031. [Google Scholar] [CrossRef]
- Xiang, J.; Lin, J.; Wang, Z.; Zhou, S.; Wang, Z.; Yan, Q.; Liu, Y.; Fan, H. Sustainable and invisible anti-counterfeiting inks based on waterborne polyurethane and upconversion nanoparticles for leather products. J. Leather Sci. Eng. 2021, 3, 33. [Google Scholar] [CrossRef]
- Zuo, M.; Qian, W.; Li, T.; Hu, X.Y.; Jiang, J.; Wang, L. Full-color tunable fluorescent and chemiluminescent supramolecular nanoparticles for anti-counterfeiting inks. ACS Appl. Mater. Interfaces 2018, 10, 39214–39221. [Google Scholar] [CrossRef]
- Kumar, R.; Tripathi, R. Traceability of counterfeit medicine supply chain through Blockchain. In Proceedings of the 2019 11th International Conference on Communication Systems & Networks (COMSNETS); IEEE: New York, NY, USA, 2019; pp. 568–570. [Google Scholar]
- Fangfang, C.; Peng, C. Research on dual anti duplication and anti-counterfeiting technology of QR code based on metamerism characteristics. In Proceedings of the 2020 IEEE 5th International Conference on Image, Vision and Computing (ICIVC); IEEE: New York, NY, USA, 2020; pp. 303–306. [Google Scholar]
- Ahamed, M.S.; Mustafa, H.A. A secure QR code system for sharing personal confidential information. In Proceedings of the 2019 International Conference on Computer, Communication, Chemical, Materials and Electronic Engineering (IC4ME2); IEEE: New York, NY, USA, 2019; pp. 1–4. [Google Scholar]
- Sheppard, M.; Toulson, R. Evaluating white noise degradation on Sonic Quick Response Code (SQRC) decode efficacy. In Proceedings of the Audio Engineering Society Convention 146; Audio Engineering Society: New York, NY, USA, 2019. [Google Scholar]
- Nguyen, H.P.; Retraint, F.; Morain-Nicolier, F.; Delahaies, A. A watermarking technique to secure printed matrix barcode—Application for anti-Counterfeit packaging. IEEE Access 2019, 7, 131839–131850. [Google Scholar] [CrossRef]
- Picard, J.; Landry, P.; Bolay, M. Counterfeit detection with QR codes. In Proceedings of the 21st ACM Symposium on Document Engineering; ACM: New York, NY, USA, 2021; pp. 1–4. [Google Scholar]
- Yan, Y.; Zou, Z.; Xie, H.; Gao, Y.; Zheng, L. An IoT-based anti-counterfeiting system using visual features on QR code. IEEE Internet Things J. 2020, 8, 6789–6799. [Google Scholar] [CrossRef]
- Berenguel, A.; Terrades, O.R.; Lladós, J.; Canero, C. e-Counterfeit: A mobile-server platform for document counterfeit detection. In Proceedings of the 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR); IEEE: New York, NY, USA, 2017; Volume 9, pp. 15–20. [Google Scholar]
- Chen, C.; Li, M.; Ferreira, A.; Huang, J.; Cai, R. A copy-proof scheme based on the spectral and spatial barcoding channel models. IEEE Trans. Inf. Forensics Secur. 2019, 15, 1056–1071. [Google Scholar] [CrossRef]
- Zheng, Z.; Xu, B.; Ju, J.; Guo, Z.; You, C.; Lei, Q.; Zhang, Q. Circumferential Local Ternary Pattern: New and Efficient Feature Descriptors for Anti-Counterfeiting Pattern Identification. IEEE Trans. Inf. Forensics Secur. 2022, 17, 970–981. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Aldweesh, A.; Derhab, A.; Emam, A.Z. Deep learning approaches for anomaly-based intrusion detection systems: A survey, taxonomy, and open issues. Knowl. Based Syst. 2020, 189, 105124. [Google Scholar] [CrossRef]
- Zhu, X.; Qian, Y.; Zhao, X.; Sun, B.; Sun, Y. A deep learning approach to patch-based image inpainting forensics. Signal Process. Image Commun. 2018, 67, 90–99. [Google Scholar] [CrossRef]
- Zhang, M.; Wang, H.; He, P.; Malik, A.; Liu, H. Exposing unseen GAN-generated image using unsupervised domain adaptation. Knowl. Based Syst. 2022, 257, 109905. [Google Scholar] [CrossRef]
- Nowroozi, E.; Dehghantanha, A.; Parizi, R.M.; Choo, K.K.R. A survey of machine learning techniques in adversarial image forensics. Comput. Secur. 2021, 100, 102092. [Google Scholar] [CrossRef]
- Tsai, M.J.; Tao, Y.H.; Yuadi, I. Deep learning for printed document source identification. Signal Process. Image Commun. 2019, 70, 184–198. [Google Scholar] [CrossRef]
- Phan-Ho, A.T.; Nguyen, Q.T.; Patrix, J.; Verny, J. Source Printer Identification with Microscopic Printing using Deep Learning. IFAC-PapersOnLine 2022, 55, 1177–1182. [Google Scholar] [CrossRef]
- Freire-Obregon, D.; Narducci, F.; Barra, S.; Castrillon-Santana, M. Deep learning for source camera identification on mobile devices. Pattern Recognit. Lett. 2019, 126, 86–91. [Google Scholar] [CrossRef]
- Sameer, V.U.; Naskar, R. Deep siamese network for limited labels classification in source camera identification. Multimed. Tools Appl. 2020, 79, 28079–28104. [Google Scholar] [CrossRef]
- Chen, C.; Zhao, X.; Stamm, M.C. Generative adversarial attacks against deep-learning-based camera model identification. IEEE Trans. Inf. Forensics Secur. 2019, 20, 7679–7694. [Google Scholar] [CrossRef]
- You, C.; Zheng, H.; Guo, Z.; Wang, T.; Wu, X. Multiscale Content-Independent Feature Fusion Network for Source Camera Identification. Appl. Sci. 2021, 11, 6752. [Google Scholar] [CrossRef]
- You, C.; Zheng, H.; Guo, Z.; Wang, T.; Wu, X. Tampering detection and localization base on sample guidance and individual camera device convolutional neural network features. Expert Syst. 2022, 40, e13102. [Google Scholar] [CrossRef]
- Johnston, P.; Elyan, E. A review of digital video tampering: From simple editing to full synthesis. Digit. Investig. 2019, 29, 67–81. [Google Scholar] [CrossRef]
- Chen, Y.; Lin, Q.; Wei, W.; Ji, J.; Wong, K.C.; Coello, C.A.C. Intrusion detection using multi-objective evolutionary convolutional neural network for Internet of Things in Fog computing. Knowl. Based Syst. 2022, 244, 108505. [Google Scholar] [CrossRef]
- Li, Z.; Liu, F.; Yang, W.; Peng, S.; Zhou, J. A survey of convolutional neural networks: Analysis, applications, and prospects. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 6999–7019. [Google Scholar] [CrossRef]
- Guo, Z.; Zheng, H.; You, C.; Xu, X.; Wu, X.; Zheng, Z.; Ju, J. Digital Forensics of Scanned QR Code Images for Printer Source Identification Using Bottleneck Residual Block. Sensors 2020, 20, 6305. [Google Scholar] [CrossRef]
- Zheng, H.; Zhou, C.; Li, X.; Wang, T.; You, C. Forgery Detection for Anti-Counterfeiting Patterns Using Deep Single Classifier. Appl. Sci. 2023, 13, 8101. [Google Scholar] [CrossRef]
- Yang, P.; Ni, R.; Zhao, Y.; Zhao, W. Source camera identification based on content-adaptive fusion residual networks. Pattern Recognit. Lett. 2019, 119, 195–204. [Google Scholar] [CrossRef]
- Yang, Z.; Chen, Z.; Wang, C. An accelerated stochastic variance-reduced method for machine learning problems. Knowl. Based Syst. 2020, 198, 105941. [Google Scholar] [CrossRef]
- Das, D.; Naskar, R. Image splicing detection using low-dimensional feature vector of texture features and Haralick features based on Gray Level Co-occurrence Matrix. Signal Process. Image Commun. 2024, 125, 117134. [Google Scholar] [CrossRef]
- Fadl, S.; Han, Q.; Qiong, L. Exposing video inter-frame forgery via histogram of oriented gradients and motion energy image. Multidimens. Syst. Signal Process. 2020, 31, 1365–1384. [Google Scholar] [CrossRef]
- Sharma, A.; Srinivasan, V.; Kanchan, V.; Subramanian, L. The fake vs real goods problem: Microscopy and machine learning to the rescue. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; ACM: New York, NY, USA, 2017; pp. 2011–2019. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
- Guo, Z.; Wang, S.; Zheng, Z.; Sun, K. Printer source identification of quick response codes using residual attention network and smartphones. Eng. Appl. Artif. Intell. 2024, 131, 107822. [Google Scholar] [CrossRef]
- Tsai, M.J.; Lee, Y.C.; Chen, T.M. Implementing deep convolutional neural networks for QR code-based printed source identification. Algorithms 2023, 16, 160. [Google Scholar] [CrossRef]
- Liu, Z.; Mao, H.; Wu, C.Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 11976–11986. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16 × 16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2021; pp. 10012–10022. [Google Scholar]
- Luque, A.; Carrasco, A.; Martín, A.; de Las Heras, A. The impact of class imbalance in classification performance metrics based on the binary confusion matrix. Pattern Recognit. 2019, 91, 216–231. [Google Scholar] [CrossRef]
- Lee, G.K.K.; Kasim, H.; Sirigina, R.P.; How, S.S.Q.; King, S.; Hung, T.G.G. Smart Robust Feature Selection (SoFt) for imbalanced and heterogeneous data. Knowl. Based Syst. 2022, 236, 107197. [Google Scholar] [CrossRef]
- Pradhan, T.; Pal, S. A multi-level fusion based decision support system for academic collaborator recommendation. Knowl. Based Syst. 2020, 197, 105784. [Google Scholar] [CrossRef]
- Upadhyay, D.; Manero, J.; Zaman, M.; Sampalli, S. Intrusion detection in SCADA based power grids: Recursive feature elimination model with majority vote ensemble algorithm. IEEE Trans. Netw. Sci. Eng. 2021, 8, 2559–2574. [Google Scholar] [CrossRef]











| Module | Output Feature Map Size | Branch 1 | Branch 2 |
|---|---|---|---|
| Input | 64 × 64 × 1 | ||
| Pre_conv | 64 × 64 | 3 × 3 × 1 Stride: 1 Pad: 1 | 5 × 5 × 1 Stride: 1 Pad: 2 |
| Conv_1 | 64 × 64 | data | data |
| Ave pooling | 31 × 31 | 5 × 5 | 5 × 5 |
| Stride: 2 Pad: 0 | Stride: 2 Pad: 0 | ||
| Bottleneck1_ | 31 × 31 | 1 × 1 × 64 Stride:1 3 × 3 × 64 Stride:1 1 × 1 × 256 Stride:1 | 1 × 1 × 64 Stride:1 3 × 3 × 64 Stride:1 1 × 1 × 256 Stride:1 |
| Ave pooling | 14 × 14 | 5 × 5 Stride: 2 Pad: 0 | 5 × 5 Stride: 2 Pad: 0 |
| Bottleneck2_ | 14 × 14 | 1 × 1 × 64 Stride:1 3 × 3 × 64 Stride:1 1 × 1 × 256 Stride:1 | 1 × 1 × 64 Stride:1 3 × 3 × 64 Stride:1 1 × 1 × 256 Stride:1 |
| Global ave pooling | 9 × 9 | 6 × 6 Stride: 1 Pad: 0 | 6 × 6 Stride: 1 Pad: 0 |
| Softmax | |||
| Notebook model: | HP OMEN 17-w119TX |
| CPU | Intel Core i7-7700HQ (2.80 GHz, 16 GB), |
| GPU | Nvidia Geforce GTX1070 (8 GB) |
| Operating system | Windows10 |
| Deep Learning framework | Caffe |
| CUDA version | 9.0 |
| CUDNN version | 7.0.5 |
| Numbering | Brand | Model | Quantity |
|---|---|---|---|
| 0 | Canon | Image Runner ADVANCE 6575 (Canon Inc., Tokyo, Japan) | 48 |
| 1 | Epson | L15168 (Seiko Epson Corporation, Suwa, Japan) | 48 |
| 2 | Lenovo | MD7600 (Lenovo Group Limited, Beijing, China) | 48 |
| 3 | RICOH | Aficio MP7502-I (Ricoh Company, Ltd., Tokyo, Japan) | 48 |
| 4 | RICOH | Aficio MP7502-II (Ricoh Company, Ltd., Tokyo, Japan) | 48 |
| 5 | RICOH | Aficio MP8001 (Ricoh Company, Ltd., Tokyo, Japan) | 48 |
| 6 | RICOH | Aficio MP7001 (Ricoh Company, Ltd., Tokyo, Japan) | 48 |
| 7 | RICOH | Imagio MP 7502 (Ricoh Company, Ltd., Tokyo, Japan) | 48 |
| 8 (Official) | Toshiba | e-studio 2051c-11606695 (Toshiba Tec Corporation, Tokyo, Japan) | 48 |
| Total | 432 | ||
| Numbering | Brand | Model | Quantity |
|---|---|---|---|
| 1 | Huawei | Mate40 Pro | 432 |
| 2 | Huawei | Nova5 Pro | 432 |
| 3 | iPhone | X | 432 |
| 4 | iPhone | 13 | 432 |
| 5 | Redmi | K30 | 432 |
| Total | 2160 | ||
| Category | Quantity |
|---|---|
| Real | 240 |
| Fake | 240 |
| Total | 480 |
| Parameters | Settings |
|---|---|
| Dataset | Real | Fake | Total |
|---|---|---|---|
| Training set | 9216 | 9216 | 18,432 |
| Verification set | 3072 | 3072 | 6144 |
| Test set | 3072 | 3072 | 6144 |
| Total | 15,360 | 15,360 | 30,720 |
| Classes | Samples |
|---|---|
| Real | ![]() |
| Fake | ![]() |
| Hyper-Parameter | Settings |
|---|---|
| Solver type | Stochastic gradient descent |
| Base learning rate | 0.01 |
| Policy | Step down |
| Step Size | 33% |
| Gamma | 0.1 |
| Epochs | 50 |
| Iterations | 12,000 |
| Actual | Real | Fake | |
|---|---|---|---|
| Predicted | |||
| Real | TP | FP | |
| Fake | FN | TN | |
| Dataset Type | Methods | Accuracy | ||
|---|---|---|---|---|
| Real | Fake | Ave. ± Std. Dev. | ||
| The entire anti-counterfeiting QR code dataset | LBPwhole | 0.6 | 0.6 | 0.6 ± 0 |
| GLCMwhole | 0.625 | 0.604 | 0.6145 ± 0.0148 | |
| HOGwhole | 1 | 0.75 | 0.875 ± 0.1768 | |
| Ashleshwhole | 0.9834 | 0.9967 | 0.9901 ± 0.0094 | |
| ResNet18whole | 0.8359 | 0.9007 | 0.8683 ± 0.0458 | |
| ConvNeXtwhole | 0.9899 | 0.9945 | 0.9922 ± 0.0033 | |
| ViT-Bwhole | 0.9954 | 0.8083 | 0.9019 ± 0.1323 | |
| Swin-Twhole | 0.9883 | 0.9971 | 0.9927 ± 0.0062 | |
| DMFNetwhole | 0.9974 | 0.9997 | 0.9985 ± 0.0016 | |
| ACP dataset | LBPanti-pat | 0.85 | 0.44 | 0.645 ± 0.290 |
| GLCManti-pat | 0.583 | 0.667 | 0.625 ± 0.0594 | |
| HOGanti-pat | 1 | 0.7917 | 0.8958 ± 0.1473 | |
| Ashleshanti-pat | 0.9967 | 0.9899 | 0.9933 ± 0.0048 | |
| ResNet18anti-pat | 0.9954 | 0.9909 | 0.9932 ± 0.0032 | |
| ConvNeXtanti-pat | 0.9967 | 1 | 0.9984 ± 0.0023 | |
| ViT-Banti-pat | 0.9964 | 0.9977 | 0.9971 ± 0.0009 | |
| Swin-Tanti-pat | 0.9941 | 0.9990 | 0.9966 ± 0.0035 | |
| DMFNetanti-pat | 1 | 0.9995 | 0.9998 ± 0.0004 | |
| Methods | Precision | Recall | F1-Score |
|---|---|---|---|
| LBPwhole | 0.6 | 0.6 | 0.6 |
| GLCMwhole | 0.6121 | 0.625 | 0.6185 |
| HOGwhole | 0.8 | 1 | 0.8889 |
| Ashleshwhole | 0.9967 | 0.9834 | 0.99 |
| ResNet18whole | 0.8938 | 0.8359 | 0.8639 |
| ConvNeXtwhole | 0.9945 | 0.9899 | 0.9922 |
| ViT-Bwhole | 0.8385 | 0.9954 | 0.9102 |
| Swin-Twhole | 0.9971 | 0.9883 | 0.9927 |
| DMFNetwhole | 0.9997 | 0.9974 | 0.9985 |
| LBPanti-pat | 0.6028 | 0.85 | 0.7054 |
| GLCManti-pat | 0.6365 | 0.583 | 0.6086 |
| HOGanti-pat | 0.8276 | 1 | 0.9057 |
| Ashleshanti-pat | 0.99 | 0.9967 | 0.9933 |
| ResNet18anti-pat | 0.9909 | 0.9954 | 0.9931 |
| ConvNeXtanti-pat | 1 | 0.9967 | 0.9983 |
| ViT-Banti-pat | 0.9977 | 0.9964 | 0.9970 |
| Swin-Tanti-pat | 0.9990 | 0.9941 | 0.9965 |
| DMFNetanti-pat | 0.9995 | 1 | 0.9998 |
| Branch 1 | Branch 2 | Accuracy (%) |
|---|---|---|
| 3 × 3 | 7 × 7 | 99.89 |
| 5 × 5 | 7 × 7 | 99.63 |
| 3 × 3 | 5 × 5 | 99.98 |
| Motion Blur Kernel Size | Accuracy (%) |
|---|---|
| 2 × 2 | 99.98 |
| 4 × 4 | 96.06 |
| 6 × 6 | 69.53 |
| 8 × 8 | 58.98 |
| 10 × 10 | 55.08 |
| Illumination Coefficient | Accuracy (%) |
|---|---|
| 0.6 | 87.45 |
| 0.8 | 97.28 |
| 1.0 (Baseline) | 99.98 |
| 1.2 | 75.41 |
| 1.4 | 50.28 |
| Model | Preprocessing Layer | Branch Setting | Branch Combination |
|---|---|---|---|
| Full model | Yes | Dual branch (3 × 3 + 5 × 5) | Feature fusion |
| Feature Stacking | Yes | Dual branch (3 × 3 + 5 × 5) | Feature stacking |
| No Preprocess | No | Dual branch (3 × 3 + 5 × 5) | Feature fusion |
| Single-branch 3 × 3 | Yes | Single branch (3 × 3) | None |
| Single-branch 5 × 5 | Yes | Single branch (5 × 5) | None |
| Model | Overall Acc (%) | CV (%) |
|---|---|---|
| Full model (proposed) | 99.98 ± 0.0004 | 0 |
| Feature Stacking | 99.91 ± 0.0706 | 0.07 |
| No Preprocess | 99.22 ± 0.5094 | 0.51 |
| Single-branch 3 × 3 | 99.91 ± 0.0811 | 0.08 |
| Single-branch 5 × 5 | 99.95 ± 0.0557 | 0.06 |
| Group | Training Devices | Test Device |
|---|---|---|
| Group1 | Huawei Nova5 (Huawei Device Co., Ltd., Shenzhen, China), iPhone X (Apple Inc., Cupertino, CA, USA), iPhone 13 (Apple Inc., Cupertino, CA, USA), Redmi K30 5G (Xiaomi Corporation, Beijing, China) | Huawei Nova6 (Huawei Device Co., Ltd., Shenzhen, China) |
| Group2 | Huawei Nova6, iPhone X, iPhone 13, Redmi K30 5G | Huawei Nova5 |
| Group3 | Huawei Nova6, Huawei Nova5, iPhone 13, Redmi K30 5G | iPhone X |
| Group4 | Huawei Nova6, Huawei Nova5, iPhone X, Redmi K30 5G | iPhone 13 |
| Group5 | Huawei Nova6, Huawei Nova5, iPhone X, iPhone 13 | Redmi K30 5G |
| Group | Overall Acc. (%) | True Acc. (%) | Fake Acc. (%) | F1-Score |
|---|---|---|---|---|
| Group1 | 99.95 | 99.97 | 99.93 | 0.9995 |
| Group2 | 96.76 | 93.52 | 100.00 | 0.9686 |
| Group3 | 97.90 | 95.80 | 100.00 | 0.9794 |
| Group4 | 99.20 | 99.51 | 98.89 | 0.9920 |
| Group5 | 86.85 | 73.70 | 100.00 | 0.8838 |
| Mean ± Std. Dev. | 96.13 ± 5.33 | 92.50 ± 10.84 | 99.76 ± 0.49 | 0.9647 ± 0.0467 |
| Group | Training Printers | Test Printers |
|---|---|---|
| Group1 | P3, P4, P5, P6, P7, P8 | P0, P1, P2, P8 |
| Group2 | P0, P1, P2, P6, P7, P8 | P3, P4, P5, P8 |
| Group3 | P1, P2, P3, P4, P5, P8 | P0, P6, P7, P8 |
| Group4 | P0, P2, P4, P5, P7, P8 | P1, P3, P6, P8 |
| Group5 | P0, P1, P3, P5, P6, P8 | P2, P4, P7, P8 |
| Group6 | P1, P2, P3, P4, P6, P8 | P0, P5, P7, P8 |
| Group | Overall Acc. (%) | True Acc. (%) | Fake Acc. (%) | F1-Score |
|---|---|---|---|---|
| Group1 | 99.13 | 99.87 | 98.39 | 0.9912 |
| Group2 | 99.90 | 99.79 | 100.00 | 0.9990 |
| Group3 | 100.00 | 100.00 | 100.00 | 1.0000 |
| Group4 | 97.06 | 100.00 | 94.11 | 0.9697 |
| Group5 | 99.93 | 99.87 | 100.00 | 0.9993 |
| Group6 | 99.52 | 99.84 | 99.19 | 0.9952 |
| Mean ± Std. Dev. | 99.26 ± 1.13 | 99.90 ± 0.09 | 98.62 ± 2.30 | 0.9924 ± 0.0116 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Sun, K.; Guo, Z.; Zheng, H. Quick Response Code Verification Using Anti-Counterfeiting Pattern and Multi-Feature Fusion Network. Sensors 2026, 26, 3067. https://doi.org/10.3390/s26103067
Sun K, Guo Z, Zheng H. Quick Response Code Verification Using Anti-Counterfeiting Pattern and Multi-Feature Fusion Network. Sensors. 2026; 26(10):3067. https://doi.org/10.3390/s26103067
Chicago/Turabian StyleSun, Ke, Zhongyuan Guo, and Hong Zheng. 2026. "Quick Response Code Verification Using Anti-Counterfeiting Pattern and Multi-Feature Fusion Network" Sensors 26, no. 10: 3067. https://doi.org/10.3390/s26103067
APA StyleSun, K., Guo, Z., & Zheng, H. (2026). Quick Response Code Verification Using Anti-Counterfeiting Pattern and Multi-Feature Fusion Network. Sensors, 26(10), 3067. https://doi.org/10.3390/s26103067





