🌠Facial Recognition
Offline facial verification for HCM field workers
Overview
Offline-first facial recognition for HCM field workers. Provides identity verification at login, periodic re-verification during the workday, co-worker (non-mobile user) enrollment/verification on a supervisor's device, and a PIN fallback — all functional without connectivity, with audit events and enrollment data syncing to the server when online.
At a glance
Used by: HCM field workers, supervisors, and non-mobile co-workers.
Works offline: profiles and verification events remain available without a network.
Protects: sign-in, periodic attendance checks, and co-worker verification.
Fallback: workers can use a backup PIN after configured failed attempts.
Syncs: profiles go to the worker registry. Audit events use HCM sync.
Dependencies
MobileFaceNet and ML Kit create face profiles and perform liveness checks.
MDMS defines match thresholds, prompt timing, and attempt limits.
Worker registry stores profiles for recovery and co-worker verification.
Attendance service and HCM sync receive audit events when the device reconnects.
Business Flow
Enrol a worker
The worker captures five face angles.
The app checks liveness through a blink or head-turn challenge.
The app rejects duplicate profiles and saves the approved profile locally.
The worker receives a backup PIN once. The app stores only its salted hash.
The profile and enrollment event sync when connectivity returns.
Supervisors can enrol non-mobile co-workers from Non-mobile users.
Verify a worker
After HCM authentication, the app captures and compares the worker's face.
It compares only with the signed-in worker's profile.
A match opens the app and records a success event.
Failed attempts lead to backup PIN verification, then HCM password verification.
The app also schedules periodic attendance prompts. Team and district supervisors are exempt. Co-workers verify after the system user verifies.
Configuration
MDMS loads tenant-scoped settings at app start and login.
START_HOUR / END_HOUR
8 / 18
Daily verification window
PROMPT_COUNT
3
Prompts each day
MIN_GAP_MINUTES
180
Minimum time between prompts
COUNTDOWN_DURATION_MINUTES
5
Time allowed to respond
MAX_FACE_ATTEMPTS
3
Attempts before PIN fallback
FACE_MATCH_THRESHOLD
0.70
Minimum face-match score
Failure & Privacy Handling
No connection: verification continues with the locally stored profile.
Missing profile: the app restores it from the registry or starts enrollment.
Failed upload: updates remain queued until the device reconnects.
Expired prompt: the app records a
MISSEDevent.Local protection: audit events use an encrypted database and secure storage.
The app stores one-way face embeddings, not reconstructable face images. A face profile can unlock only its matching signed-in worker. Logout and user switches clear local face data.
Last updated
Was this helpful?



