/Deep-Metric-MTL

Deep Multitask Metric Learning for Offline Signature Verification

Primary LanguageMATLABApache License 2.0Apache-2.0

Deep Multitask Metric Learning for Offline Signature Verification

This is the MATLAB code for "Deep Multitask Metric Learning for Offline Signature Verification", a paper published in Pattern Recognition Letters

To become familiar with the structure of the code, you should look at the paper:
A Soleimani, Amir, Babak N. Araabi, and Kazim Fouladi. "Deep multitask metric learning for offline signature verification." Pattern Recognition Letters, 2016

Abstract: 

 This paper presents a novel classification method, Deep Multitask Metric Learning (DMML), for offline signature verification. Unlike existing methods that to verify questioned signatures of an individual merely consider the training samples of that class, DMML uses the knowledge from the similarities and dissimilarities between the genuine and forged samples of other classes too. To this end, using the idea of multitask and transfer learning, DMML train a distance metric for each class together with other classes simultaneously. DMML has a structure with a shared layer acting as a writer-independent approach, that is followed by separated layers which learn writer-dependent factors. We compare the proposed method against SVM, writer-dependent and writer-independent Discriminative Deep Metric Learning method on four offline signature datasets (UTSig, MCYT-75, GPDSsynthetic, and GPDS960GraySignatures) using Histogram of Oriented Gradients (HOG) and Discrete Radon Transform (DRT) features. Results of our experiments show that DMML achieves better performance compared to other methods in verifying genuine signatures, skilled and random forgeries.

Dataset: UTSig (University of Tehran Offline Signature Dataset)

UTSig has 115 classes containing: 27 genuine signatures; 3 opposite-hand signed samples and 42 simple forgeries. Each class belongs to one specific authentic person. UTSig totally has 8280 images collected from undergraduate and graduate students of University of Tehran and Sharif University of Technology. Signatures were scanned with 600 dpi resolution and stored as 8-bit Tiff files.

Dataset Paper

To download the dataset go to: https://sites.google.com/site/amirsoleimanibajestani/publication

Code

This code mainly runs DMML on Feature Extracted Version of UTSig, Histogram of Gradient (HOG) which is uploaded in github as well.

Main.m is the main file to run. It trains and tests on UTSig.

Before running download the feature vector and put it in the folder: https://drive.google.com/file/d/13ZvInbmPRDjZPy8lAsAzYmHQ_wkO26hy/view?usp=sharing

Read comments for further information.
Feel free to email me for the questions: a.soleimani.b@gmail.com

Note: The code has been runed and checked in Windows.