Raja Corrections
Raja Corrections
SIAMESE NETWORK
A PROJECT REPORT
Submitted by
RAJA MARIAPPAN T
(2023178056)
MAY 2025
ii
ANNA UNIVERSITY
CHENNAI - 600 025
BONA FIDE CERTIFICATE
PLACE: CHENNAI
DATE: Dr. M. DEIVAMANI
ASSISTANT PROFESSOR
PROJECT GUIDE
DEPARTMENT OF IST, CEG
ANNA UNIVERSITY
CHENNAI 600025
COUNTERSIGNED
Dr. S. SWAMYNATHAN
HEAD OF THE DEPARTMENT
DEPARTMENT OF INFORMATION SCIENCE AND TECHNOLOGY
COLLEGE OF ENGINEERING, GUINDY
ANNA UNIVERSITY, CHENNAI 600025
vi
TABLE OF CONTENTS
ABSTRACT iii
ABSTRACT(TAMIL) iv
ACKNOWLEDGEMENT v
LIST OF FIGURES ix
LIST OF TABLES x
1 INTRODUCTION 1
1.1 DEFECT DETECTION IN MANUFACTURING 1
1.1.1 Visual Inspection Systems 1
1.1.2 Siamese Networks in Defect Detection 2
1.2 CHALLENGES IN DEFECT DETECTION 3
1.2.1 Variability in Defect Appearance 3
1.2.2 Real-Time Processing Requirements 3
1.2.3 Limited Training Data 3
1.2.4 Environmental Factors 4
1.2.5 Cost and Integration 4
1.3 MOTIVATION 5
1.3.1 Quality Assurance 5
1.3.2 Cost Reduction 5
1.3.3 Production Efficiency 5
1.3.4 Adaptability to New Products 5
1.4 OBJECTIVES 6
1.5 CHALLENGES 7
1.6 PROPOSED SOLUTION 7
1.7 TESTING AND EVALUATION 8
1.8 ORGANIZATION OF THE REPORT 8
2 LITERATURE SURVEY 10
2.1 SIAMESE NETWORKS FOR DEFECT DETECTION 10
2.1.1 Basic Architecture and Working Principles 10
2.1.2 Twin and Triple Siamese Networks 11
2.2 OPTIMIZATION TECHNIQUES FOR SIAMESE
NETWORKS 12
2.2.1 Parameter Reduction and Feature Enhancement 12
vii
3 SYSTEM DESIGN 19
3.1 SYSTEM ARCHITECTURE 20
3.1.1 Data Acquisition 21
3.1.2 Data Preprocessing 21
3.1.3 Siamese Network Model 22
3.1.4 Training Process 22
3.1.5 Evaluation Method 23
4 IMPLEMENTATION 25
4.1 SETTING UP THE ENVIRONMENT 25
4.1.1 Development Environment Configuration 25
4.1.2 Data Loading and Preprocessing 26
4.1.3 API Setup for Integration 26
4.2 SIAMESE NETWORK ARCHITECTURE 27
4.3 Network Architecture Implementation 28
4.4 TRAINING PROCEDURE 31
4.5 DEFECT DETECTION AND QUANTIFICATION 34
4.6 WEB API FOR INTEGRATION 37
REFERENCES 48
ix
LIST OF FIGURES
LIST OF TABLES
carefully selected learning rate (0.00005) and weight decay (1e-5) is employed
to update the model weights during training. The system trains the model for
50 epochs, monitoring the loss value to ensure proper convergence.The steps
involved in the training process are shown in Figure 3.4.
CHAPTER 5
Figure 5.1: Training Loss Convergence over 50 Epochs for the Combined
Dataset.
43
The web interface developed for the defect detection system provides
an intuitive and accessible means for quality control personnel to interact with
the Siamese network model. Figure 5.2 shows the main interface for uploading
reference and test images.
Figure 5.2: Web Interface for Defect Detection Showing Reference image,
Test image, and Detection results.
The web interface for the defect detection system was implemented
using React.js (v18.2.0) to provide a responsive and interactive user experience.
48
REFERENCES
[10] Tao, Bo, Wang, Pengfei, Zheng, Haotian, Wen, Yonghui, Luo, Shengyong,
“Probabilistic Siamese Network for Image Matching”, Pattern Recognition
Letters, Volume Number: 125, Page Number: 534-540, October 2019.