A deep learning-based Signature Verification System using a Siamese Neural Network to determine whether two signature images belong to the same person or represent a forged/different signature.
The system processes signature images through a preprocessing pipeline, generates meaningful feature representations using a CNN-based embedding network, and compares the resulting embeddings using Cosine Similarity.
Instead of directly classifying individual signatures, the Siamese architecture learns to measure the similarity between two signatures. This makes the approach suitable for signature verification and forgery detection.
flowchart TD
A[Signature Images] --> B[Image Preprocessing]
B --> C[Signature Pair Generation]
C --> D[CNN Feature Extraction]
D --> E[128-Dimensional Embeddings]
E --> F[Cosine Similarity]
F --> G[Sigmoid Classification]
G --> H[Genuine / Forged]
- Grayscale conversion
- Image resizing
- Otsu thresholding
- Pixel normalization
- Channel dimension preparation
| Pair Type | Label |
|---|---|
| Genuine–Genuine | 1 |
| Genuine–Forged | 0 |
- Multiple convolutional layers
- Max pooling
- Batch normalization
- Global average pooling
- Dense layers
- Dropout regularization
- 128-dimensional signature embeddings
- Two inputs processed through the same embedding network
- Shared weights between both branches
- Cosine similarity used to compare signature embeddings
- Sigmoid output for binary verification
- Optimizer: Adam
- Loss: Binary Cross-Entropy
- Metrics: Accuracy, AUC
| Category | Tools |
|---|---|
| Language | Python |
| Deep Learning | TensorFlow / Keras |
| Numerical Computing | NumPy |
| Image Processing | OpenCV |
| Architecture | CNN, Siamese Neural Networks |
| Similarity Metric | Cosine Similarity |
The main goal of this project is to build an automated system capable of learning the visual characteristics of handwritten signatures and determining whether two signatures are sufficiently similar to be considered a genuine match.
Signature-Analysis/
│
├── preprocessing.py
├── pairing.py
├── model.py
├── inference.py
├── main.py
└── README.md
This project is developed for educational and research purposes and focuses on deep-learning-based signature verification.