Giter VIP home page Giter VIP logo

melihaltun / deep_siamese_network_for_biometric_authentication Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 21 KB

Deep Siamese convolutional neural net for biometric authentication of palm print images

License: MIT License

Python 100.00%
biometric-authentication biometrics deep-learning deep-neural-networks keras siamese-network siamese-neural-network data-augmentation image-classification image-processing

deep_siamese_network_for_biometric_authentication's Introduction

Deep_Siamese_Network_for_Biometric_Authentication

Deep Siamese convolutional neural net for biometric authentication of palm print images

This code performs biometric authentication using two palm images. One of the images is considered as template and the second one is input. If the template and the input match each other the model outputs 1 and if they are images from different people, the model returns 0.

image

The model is a deep Siamese neural network compiled and trained using Tensorflow and Keras. The model is trained with Sapienza University palm image dataset from Kaggle: https://www.kaggle.com/datasets/mahdieizadpanah/sapienza-university-mobile-palmprint-databasesmpd

Once the dataset is downloaded, modify the input and output paths in each source file as needed.

There are five Python script files each with a specific task. They should be executed with the order below:

  1. selectPalmPrints.py: Goes through the entire dataset and picks the top view palm images. The image orientation is arbitrary in the database. This script also applies some image processing to make sure all images are in the same orientation.
  2. augmentData.py: Resizes each selected image and applies data augmentation by generating variations of each image.
  3. trainTestValSplit.py: Goes through the augmented data set and splits them into training, validation and test images with matching and non-matching image pairs.
  4. getTrainingStats.py: Extracts mean RGB value of the training set, which is used in the pre-processing before model training.
  5. trainModel.py: Loads the training, validation and test sets from the folders formed earlier in step 3. Defines the Siamese neural network model, trains and tests the model.

The model achieves 96.0% accuracy with a precision rate of 93.8% and a recall rate of 98.6% after 48 epochs. Utilizing GPU is recommended. Due to model complexity, a single epoch with CPU may last well over an hour. On the other hand, even a modest graphics card can speed up the training by 15 to 20 times.

A combination of Python 3.8, Tensorflow 2.10.0, CUDA 11.2, CUDNN 8.8.1 and Zlib works for this model, although other configurations may also be possible.

deep_siamese_network_for_biometric_authentication's People

Contributors

melihaltun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.