SlideShare a Scribd company logo
Implementing Biometric Authentication 

& Features in iOS Apps
Jean-Luc David
iOS Developer
MyPlanet,Inc
What are Biometrics?
• A biometric is a unique, measurable characteristic of a human being
that can be used to automatically recognize an individual or verify an
individual‟s identity. Biometrics can measure both physiological and
behavioral characteristics. Physiological biometrics (based on
measurements and data derived from direct measurement of a part of
the human body) include:

• Finger-scan
• Facial Recognition
• Iris-scan
• Retina-scan
• Hand-scan
Facial Recognition circa 2012
Open Computer Vision
History of Biometrics (1960-2017)
• Woodrow Wilson Bledsoe - Manual Measurements (1960) Rand tablet
• Goldstein, Harmon, and Lesk - 21 Facial Markers (1970)
• Sirovich and Kirby - EigenFaces (1998) Low-dimensional representation of facial
images.
• Turk and Pentland - Face Recognition in images (1991)
• DARPA - FacE REcognition Technology (FERET) (1993-2000)
• National Institute of Standards and Technology (NIST) - Face Recognition Vendor
Tests (FRVT) (2000)
• Social Media (2000)
• Pinellas County Sherriff’s Office - Law Enforcement Forensic DB (2009)
• Panama Airport - FaceFirst’s facial recognition platform (2011)
• U.S. Military - Osama Bin Laden Identified (2011)
• Automated Regional Justice Information System (ARJIS) (2014)
• Retail Loss Prevention (2017)
• iPhone X (2017)
• FaceFirst Watchlist as a Service (2017)
Eigenfaces
Touch ID
• Introduced in iOS 7
• iPhone5s / iPadAir2 / iPadMini3
• Unlock device (Passcode)
• iTunes/AppStore purchases
• Pay
iOS 8
• Touch ID Security APIs
• Local Authentication
• LAContext
• secItem
• App needs to be foreground
Implementing Biometric Authentication & Features in iOS Apps
Info.plist - NSFaceIDUsageDescription
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSFaceIDUsageDescription</key>
<string>This app requires Face ID.</string>
</dict>
</plist>
Detecting Biometric Capabilities
import LocalAuthentication
let context = LAContext()
var error: NSError?
if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics,
error: &error) {
if #available(iOS 11.0, *) {
if context.biometryType == LABiometryType.faceID {
print("Device supports Face ID.")
} else if context.biometryType == LABiometryType.touchID {
print("Device supports Touch ID.")
} else {
print("Device does not support Biometrics.")
}
}
}
Detecting Biometry Changes
import LocalAuthentication
let context = LAContext()
var error: NSError?
if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics,
error: nil) {
if let domainState = context.evaluatedPolicyDomainState {
let bData = domainState.base64EncodedData()
if let decodedString = String(data: bData, encoding: .utf8) {
print("Decoded Value: (decodedString)")
}
}
}
}
• If the biometric databases changes significantly (like upgrading to an
iPhone X), the evaluatedPolicyDomainState will also change.
iOS 11 Face ID - iPhone X
Implementing Biometric Authentication & Features in iOS Apps
Implementing Biometric Authentication & Features in iOS Apps
Keychain
Architecture
Face Recognition with ARKit
Popular Perceptions
Popular Perceptions
Popular Perceptions
Nomenclature
Application of Machine Learning
Silicon Valley - Jian-Yang's Not Hotdog App
Fiction Becomes Reality
Types of Machine Learning
Core ML
• Announced at WWDC 17.
• Works only on iOS 11
• Inference engine
• Does not support training models.
• Heterogenous compute architecture - CPU & GPU.
• Open Source Python coremltool for converting
to coremlmodel file.
But I want to train models!
Runs On Device
User Privacy Data Cost Server Cost Available
How Does a Model Work?
Machine Learning Model Types
Demo - Face Detection & Recognition
Types of Machine Learning
Offline
+ Labels
Task - Find a Rose
Inference is Difficult
Inference is Difficult
Core ML Model
• Single Document
• Public Format
• Reduced Size
• Improved Accuracy
• Decreased Prediction

Time
Core ML Architecture
• Unified Fine Tuned Inference Engine
• Xcode Integration
• Built on Accelerate and Metal
• Public Model Format
• Support for Popular Training Libraries
Core ML Model
• Function learned from data
• Observed inputs
• Predicts outputs
• Single Document
• Public Format
• Ready to Use
• Task Specific
Sample Models
https://developer.apple.com/machine-learning/
Converting to Core ML
Core ML 

Tools
Open Source
Converting to Core ML
• Download a trained .caffemodel and
a .prototxt of the dataset, as well as a .txt list
of names related to the model.
• Install Python 2.7 and pip
• Install, create, then activate the virtualenv.
• Write and run a Python script to convert
the .caffemodel to a Core ML model,
using coremltools
• Add the generated .mlmodel to the Xcode project
Demo - Converting a Model to MLModel
Xcode Integration
Swift ML Code
Generates this code
Model as Code
• Quick Initialization
• Optimized Prediction
Xcode Your App
Demo - FlowerClassifier
Resources
• https://www.slideshare.net/jldavid
• https://github.com/jldavid/FaceDetection
• https://github.com/jldavid/FlowerClassifier
Thank You
Questions?

jldavid@gmail.com

More Related Content

What's hot (20)

PDF
ส่วนประกอบต่างๆของ Sketchup
Nicharee Piwjan
 
PDF
โครงงานพัฒนาเครื่องมือ
pim12582
 
PPTX
Fingerprint Recognition System
123456chan
 
PPTX
Introduction to SharePoint Framework (SPFx)
Fabio Franzini
 
PDF
"Time of Flight Sensors: How Do I Choose Them and How Do I Integrate Them?," ...
Edge AI and Vision Alliance
 
PDF
การใช้เทคโนโลยีปัญญาประดิษฐ์ (AI) สำหรับการทำงานในยุคดิจิทัล (AI for Working ...
Dr.Kridsanapong Lertbumroongchai
 
PDF
Ứng dụng mã nguồn mở xây dựng WebGIS thông tin hành chính
Dịch Vụ Viết Bài Trọn Gói ZALO 0917193864
 
PDF
đề Tài tìm hiểu phần mềm loadrunner kiểm tra hiệu năng web site
jackjohn45
 
PPTX
Bài 1: Phát triển ứng dụng trên thiết bị di động
Tuan Nguyen
 
PDF
Đề tài: Phần mềm trợ giúp tìm việc làm cho người lao động, HAY
Dịch vụ viết bài trọn gói ZALO: 0909232620
 
DOC
Báo cáo thực tập chuyên nghành lập trình Android GPSGroup
Tinh Ngo
 
PDF
ใบงานที่ 2.2
Wachi Kook
 
PPTX
MixedReality技術とその活用事例~xR(VR/AR/MR...)への基礎知識~
Takahiro Miyaura
 
DOCX
Tài liệu mô tả dự án echodientu
Đổi Thay
 
PPTX
biometrics
Akhil Kumar
 
PPT
พื้นฐานการเขียนโปรแกรม
abhichatdotcom
 
PDF
Basic Scratch
Nattanicha Seesaard
 
PDF
ข้อสอบคอมพิวเตอร์ไร้พรมแดนเฉลย
peter dontoom
 
PDF
Luan van hadoop-final
nobjta2015
 
PPT
Biometric Presentation
rs2003
 
ส่วนประกอบต่างๆของ Sketchup
Nicharee Piwjan
 
โครงงานพัฒนาเครื่องมือ
pim12582
 
Fingerprint Recognition System
123456chan
 
Introduction to SharePoint Framework (SPFx)
Fabio Franzini
 
"Time of Flight Sensors: How Do I Choose Them and How Do I Integrate Them?," ...
Edge AI and Vision Alliance
 
การใช้เทคโนโลยีปัญญาประดิษฐ์ (AI) สำหรับการทำงานในยุคดิจิทัล (AI for Working ...
Dr.Kridsanapong Lertbumroongchai
 
Ứng dụng mã nguồn mở xây dựng WebGIS thông tin hành chính
Dịch Vụ Viết Bài Trọn Gói ZALO 0917193864
 
đề Tài tìm hiểu phần mềm loadrunner kiểm tra hiệu năng web site
jackjohn45
 
Bài 1: Phát triển ứng dụng trên thiết bị di động
Tuan Nguyen
 
Đề tài: Phần mềm trợ giúp tìm việc làm cho người lao động, HAY
Dịch vụ viết bài trọn gói ZALO: 0909232620
 
Báo cáo thực tập chuyên nghành lập trình Android GPSGroup
Tinh Ngo
 
ใบงานที่ 2.2
Wachi Kook
 
MixedReality技術とその活用事例~xR(VR/AR/MR...)への基礎知識~
Takahiro Miyaura
 
Tài liệu mô tả dự án echodientu
Đổi Thay
 
biometrics
Akhil Kumar
 
พื้นฐานการเขียนโปรแกรม
abhichatdotcom
 
Basic Scratch
Nattanicha Seesaard
 
ข้อสอบคอมพิวเตอร์ไร้พรมแดนเฉลย
peter dontoom
 
Luan van hadoop-final
nobjta2015
 
Biometric Presentation
rs2003
 

Similar to Implementing Biometric Authentication & Features in iOS Apps (20)

PPTX
Biometrics and its applications for system Analysis
ssuser1ecccc
 
PPTX
Biometrics and its applications in Medical
ssuser1ecccc
 
PPT
070327 biometrics
Hamza Boucenna
 
PDF
Biometrics system penetration in mobile devices
Swapnil Jagtap
 
PPTX
Leveraging AI for Advanced Facial and Biometric Authentication
Boston Institute of Analytics
 
PPTX
Attack Vectors in Biometric Recognition Systems
Clare Nelson, CISSP, CIPP-E
 
PDF
Unlocking Any Door In The 21st Century. Immersion In Biometric Security.
Payment Village
 
PDF
Defending Biometric Security
Ned Hayes
 
PPTX
The How of Biometrics
Peachy Essay
 
PPT
Biometrics Primer
cokathleen
 
PPTX
Biometrics in Security
North Carolina State University
 
PPT
Introduction To Biometrics
suniljoshi151
 
PPTX
Biometrics
jwvantas
 
PDF
An Investigation towards Effectiveness of Present State of Biometric-Based Au...
RSIS International
 
PPT
Biomertis By Girish KenGar (WeenZy ProDucTion
Girish Kengar
 
PPT
Biometrics
senejug
 
ODP
India's UID Project: Biometrics Vulnerabilities & Exploits
Anivar Aravind
 
PPTX
Biometrics and Multi-Factor Authentication, The Unleashed Dragon
Clare Nelson, CISSP, CIPP-E
 
PDF
Top Biometric Identifiers: Risks & Rewards
Veridium
 
PDF
Biometric Recognition for Authentication, BSides Austin, May 2017
Clare Nelson, CISSP, CIPP-E
 
Biometrics and its applications for system Analysis
ssuser1ecccc
 
Biometrics and its applications in Medical
ssuser1ecccc
 
070327 biometrics
Hamza Boucenna
 
Biometrics system penetration in mobile devices
Swapnil Jagtap
 
Leveraging AI for Advanced Facial and Biometric Authentication
Boston Institute of Analytics
 
Attack Vectors in Biometric Recognition Systems
Clare Nelson, CISSP, CIPP-E
 
Unlocking Any Door In The 21st Century. Immersion In Biometric Security.
Payment Village
 
Defending Biometric Security
Ned Hayes
 
The How of Biometrics
Peachy Essay
 
Biometrics Primer
cokathleen
 
Biometrics in Security
North Carolina State University
 
Introduction To Biometrics
suniljoshi151
 
Biometrics
jwvantas
 
An Investigation towards Effectiveness of Present State of Biometric-Based Au...
RSIS International
 
Biomertis By Girish KenGar (WeenZy ProDucTion
Girish Kengar
 
Biometrics
senejug
 
India's UID Project: Biometrics Vulnerabilities & Exploits
Anivar Aravind
 
Biometrics and Multi-Factor Authentication, The Unleashed Dragon
Clare Nelson, CISSP, CIPP-E
 
Top Biometric Identifiers: Risks & Rewards
Veridium
 
Biometric Recognition for Authentication, BSides Austin, May 2017
Clare Nelson, CISSP, CIPP-E
 
Ad

More from Jean-Luc David (20)

PDF
Add Machine Learning to your iOS 11 App Using Core ML
Jean-Luc David
 
PPTX
Mobile Portfolio
Jean-Luc David
 
PDF
Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)
Jean-Luc David
 
PDF
Intro to HTTP and Node.js
Jean-Luc David
 
PDF
Introduction to MongoDB
Jean-Luc David
 
PDF
Venture For Canada - Growing Your Startup
Jean-Luc David
 
PDF
Venture For Canada - Growth Marketing
Jean-Luc David
 
PDF
Venture For Canada - Growth Hacking
Jean-Luc David
 
PDF
Startup Product Management - Analytics
Jean-Luc David
 
PDF
Startup Product Management - Execution
Jean-Luc David
 
PDF
Startup Product Management - Planning
Jean-Luc David
 
PDF
RightCycle
Jean-Luc David
 
PDF
Building WatchKit Applications
Jean-Luc David
 
PDF
Confoo Developing for Wearables
Jean-Luc David
 
PDF
Innovation & Business Acquisitions of Smart Security
Jean-Luc David
 
PDF
Developing For Wearables - Lessons Learned & Best Practices
Jean-Luc David
 
PDF
Developing for Wearables
Jean-Luc David
 
PDF
Ryerson DMZ iOS Development Workshop
Jean-Luc David
 
PDF
Pigeon Presentation at We Are Wearables Toronto
Jean-Luc David
 
PDF
iOS Development Workshop
Jean-Luc David
 
Add Machine Learning to your iOS 11 App Using Core ML
Jean-Luc David
 
Mobile Portfolio
Jean-Luc David
 
Mike Krieger - A Brief, Rapid History of Scaling Instagram (with a tiny team)
Jean-Luc David
 
Intro to HTTP and Node.js
Jean-Luc David
 
Introduction to MongoDB
Jean-Luc David
 
Venture For Canada - Growing Your Startup
Jean-Luc David
 
Venture For Canada - Growth Marketing
Jean-Luc David
 
Venture For Canada - Growth Hacking
Jean-Luc David
 
Startup Product Management - Analytics
Jean-Luc David
 
Startup Product Management - Execution
Jean-Luc David
 
Startup Product Management - Planning
Jean-Luc David
 
RightCycle
Jean-Luc David
 
Building WatchKit Applications
Jean-Luc David
 
Confoo Developing for Wearables
Jean-Luc David
 
Innovation & Business Acquisitions of Smart Security
Jean-Luc David
 
Developing For Wearables - Lessons Learned & Best Practices
Jean-Luc David
 
Developing for Wearables
Jean-Luc David
 
Ryerson DMZ iOS Development Workshop
Jean-Luc David
 
Pigeon Presentation at We Are Wearables Toronto
Jean-Luc David
 
iOS Development Workshop
Jean-Luc David
 
Ad

Recently uploaded (20)

PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 

Implementing Biometric Authentication & Features in iOS Apps