AI / Computer Vision / IoTIn Development

IntelliGuard

Edge-to-Cloud Biometric Access Control & Presentation Attack Detection System

DisciplineAI
StatusIn Development
Lead EngineerMichael Umoize
ArchitectureDocumented
IntelliGuard - Display Image

Engineering Overview

IntelliGuard is an edge-to-cloud biometric access control and physical security platform designed with a strict fail-closed security architecture. The system authenticates individuals through facial biometrics while actively preventing presentation attacks (such as printed photographs, digital screen replays, and cut-out masks). The processing pipeline begins with person detection via YOLOv8 and face detection via SCRFD. Before biometric feature extraction, a dual-model Presentation Attack Detection (PAD) ensemble—combining MiniFASNetV2 (2.7x dynamic boundary crop) and MiniFASNetV1SE (4.0x crop with Squeeze-and-Excitation channel attention)—evaluates facial authenticity using ONNX Runtime. Spoof attempts are denied immediately without querying the database or generating embeddings. Bona fide human presentations are aligned and processed through InsightFace ArcFace to extract a 512-dimensional facial embedding vector. Embeddings are matched against registered individuals in PostgreSQL using the pgvector extension with an HNSW cosine distance index (<=>). The Next.js authoritative API gateway enforces strict access authorization: requiring minimum similarity thresholds (0.50), verifying an ambiguity margin (>= 0.05 between top candidates to prevent false-positive impersonation), checking person and door permissions, and verifying edge device HMAC/API key credentials. The platform includes an interactive administrative dashboard for real-time camera HUD simulation, liveness inspection, device monitoring, enrollment duplicate detection, and security audit logging. Physical edge hardware (ESP32-S3 CAM, OV5640, PIR sensor, status LEDs, and relay lock actuators) is in active bench development, with the gateway software fully implementing the device communication and door control contracts.
System Architecture Pipeline
Data Flow Contract
ESP32-S3 CAM (OV5640) / Camera HUD → Next.js API Gateway (HMAC Device Auth) → FastAPI AI Microservice (Dual MiniFASNet PAD Ensemble + SCRFD + InsightFace ArcFace 512D ONNX) → PostgreSQL + pgvector (HNSW Cosine Index <=>) → Fail-Closed Authorization Guard (Ambiguity Check) → Relay Door Actuation & Audit Log

Key Implementations & Technical Features

Dual-model presentation attack detection (PAD) using MiniFASNetV2 and MiniFASNetV1SE ONNX ensemble to detect photo and screen replays
512-dimensional facial feature extraction via InsightFace ArcFace with SCRFD face detection and facial landmark alignment
Sub-millisecond biometric similarity search using PostgreSQL and pgvector with HNSW cosine distance indexing (<=>)
Fail-closed authoritative access decision engine enforcing similarity thresholds and a 0.05 ambiguity margin between top candidates
Enrollment pre-check and duplicate face prevention preventing duplicate registrations across active identity records
Comprehensive composite face quality scoring evaluating head pose (yaw/pitch/roll), Laplacian blur variance, and illumination
Cryptographic edge device authentication via HMAC SHA-256 signatures, API keys, timestamp validation, and replay prevention nonces
Unified audit logging and security alerting for unauthorized entries, spoof attempts, ambiguous identifications, and device disconnections
Interactive administrative dashboard featuring real-time camera HUD simulation, liveness inspection, and identity management
Edge hardware integration architecture for ESP32-S3 CAM, OV5640 camera, HC-SR501 PIR sensor, status LEDs, and fail-secure/fail-safe relay door locks

Technologies & Libraries

FastAPIPythonInsightFaceArcFaceONNX RuntimeOpenCVYOLOv8Next.jsTypeScriptPostgreSQLpgvectorPrismaBetter AuthImageKitTailwind CSSESP32-S3C++