VocalID: Intelligent Voice Authentication with Spoof & Liveness Detection
Description
VocalID is a multi-factor voice biometric authentication and attendance management system designed for hybrid workforces. It combines three verification layers: dynamic text validation using OpenAI’s Whisper ASR, speaker identity confirmation via SpeechBrain’s ECAPA-TDNN (512-dim embeddings), and deepfake/spoof detection using a fine-tuned wav2vec2 model. The system achieves 97.06% composite authentication accuracy and a 1.87% Equal Error Rate. It also automates attendance tracking with randomized prompts (45–75 min intervals), a three-retry mechanism, server-side state persistence, and manager alerts for consecutive misses. Built with React, FastAPI, and MySQL, VocalID provides dual dashboards for managers and users, full audit logging, and CSV export.
Objectives
The primary objective of VocalID is to design and implement a robust, production-ready voice authentication platform that integrates speaker verification, automatic speech recognition, and deepfake anti-spoofing to secure user login and automate hybrid workforce attendance tracking. Specific goals include: 1. Building a multi-factor voice enrollment pipeline with five samples per user, validated for text accuracy (=65%), quality, and spoof probability. 2. Implementing a tripartite authentication decision engine combining Levenshtein distance text validation, ECAPA-TDNN speaker embedding cosine similarity (=65%), and wav2vec2 spoof classification. 3. Achieving state-of-the-art spoof detection with an EER of 1.87% via fine-tuning on the EchoFake dataset. 4. Developing an intelligent attendance scheduler with randomized 45–75 min prompts, browser alerts, three retries with dynamic phrase refresh, and server-side state persistence. 5. Providing dual dashboards: manager (user CRUD, log filtering, CSV export) and user (enrollment status, attendance history). 6. Ensuring end-to-end auditability and achieving 97.06% composite authentication accuracy for enterprise deployment readiness.
Socio-economic benefit
VocalID delivers significant socio-economic value by balancing security with workforce flexibility. It eliminates trust-based “buddy punching” in hybrid/remote work through verifiable biometric attendance. The 1.87% EER anti-spoofing module mitigates AI-generated deepfake threats, protecting financial services, legal firms, and healthcare from voice-based fraud. By using standard device microphones and web browsers, it offers a cost-effective, hardware-agnostic solution for small and medium enterprises, remote education, and non-profits. It also enhances academic integrity in online assessments via dynamic challenge-response verification. Finally, the open, replicable architecture serves as a benchmark for voice liveness research, demonstrating that fine-tuned ECAPA-TDNN and wav2vec2 fusion can repel modern generative audio attacks.
Methodologies
The development followed a structured six-phase plan over ~16 weeks using a classic client-server model. Methodologies include: 1. Frontend: React SPA with reusable components (VoiceRecorder, ManagerDashboard, UserDashboard) and MediaDevices API for microphone capture. 2. Backend: FastAPI RESTful endpoints with asynchronous ML inference orchestration. 3. ML Pipeline: Whisper (ASR) ? Levenshtein text similarity (=65%); fine-tuned wav2vec2 (spoof classification); SpeechBrain ECAPA-TDNN (512-dim embeddings, cosine similarity threshold 65% login / 60% attendance). 4. Database: MySQL with tables for users, speaker embeddings, verification attempts, attendance logs, and deleted IDs. 5. Attendance Logic: Server-side timer (randomized 45–75 min), three-retry mechanism, consecutive miss counter, SMTP alerts to managers at 3 misses. 6. Security: TLS/HTTPS encryption, bcrypt password hashing for managers, soft deletion with ID reuse prevention, input sanitization. 7. Testing: 17 formal test cases covering functional, anti-spoofing, performance, and integration scenarios with a traceability matrix. 8. Deployment: Docker containerization, environment variables for configuration.
Outcome
VocalID successfully delivered a fully functional, production-ready voice biometric platform meeting all specified requirements. Key outcomes: 1. Authentication accuracy: 97.06% composite (text + voice + spoof). 2. Spoof detection: 1.87% Equal Error Rate on EchoFake dataset (20k bona fide + synthetic samples). 3. Latency: End-to-end verification =8 seconds per attempt; enrollment sample processing =5 seconds. 4. Attendance tracking: Randomized 45–75 min prompts with server-side persistence, three-retry + dynamic phrase refresh, consecutive miss counter, and automatic manager email alerts at three misses. 5. Dashboards: Manager (user CRUD, filterable logs, CSV export) and User (enrollment progress, attendance history). 6. Auditability: Every attempt logged with text/voice/spoof scores and latency. 7. Testing: All 17 test cases passed (login, enrollment, anti-spoofing, retries, filtering, export, email alerts). 8. Deployment ready: Dockerized backend with environment-agnostic configuration, runs on standard cloud/on-prem Linux servers. The system validates that ECAPA-TDNN + fine-tuned wav2vec2 fusion effectively counters generative audio threats, setting a new benchmark for biometric integrity in workforce management.
Gallery
More from Computer Science
Ustad Go: An AI-Powered Mobile and Web Ecosystem for Verified Local Service Provision in P…
Ustad Go is a dual-platform solution bridging the gap between skilled local service providers and households.…
Supervisor: Dr. Wasif Nisar
Sales Distribution Hub
The Sales Distribution Hub is a web-based management system designed for Masood & Company to automate and stre…
Supervisor: Dr. Wasif Nisar.
AI Based Road Damage Detection System
AI Based Road Damage Detection System is a smart application that uses YOLOv8 and computer vision techniques t…
Supervisor: Mehwish Mukhtar
EvaluTech: AI-Powered Hiring & Job Platform for Employers and Applicants
EvaluTech is an intelligent recruitment management platform that streamlines the complete hiring lifecycle fro…
Supervisor: Dr. Wasif Nisar