๐ A sophisticated biometric authentication system combining facial recognition and voice verification for secure access to personalized product recommendations.
This project implements a comprehensive Multimodal Authentication and Product Recommendation System that demonstrates the integration of computer vision, audio processing, and machine learning techniques. The system provides secure access to personalized product recommendations through a two-stage biometric authentication process.
- ๐ค Facial Recognition: OpenCV-based image processing with HOG and histogram features
- ๐ค Voice Verification: MFCC-based audio analysis using Librosa
- ๐ก๏ธ Multi-layer Security: Dual authentication with confidence thresholds
- ๐ฏ Product Recommendations: ML-driven personalized suggestions
- ๐ Real-time Processing: Fast biometric verification and prediction
The system follows a secure multi-stage authentication flow:
- User attempts to access the product prediction model
- Facial image is processed using OpenCV
- HOG features and color histograms are extracted
- Random Forest classifier determines user identity
- Threshold: Minimum 60% confidence required
- If face is recognized, user gains access to prediction model
- Customer profile is retrieved (engagement score, purchase interest, rating)
- ML model generates personalized product recommendation
- Output: Product category with confidence score
- Prediction must be confirmed through voice sample
- MFCC features are extracted using Librosa
- Voice verification model validates the speaker
- Threshold: Minimum 70% confidence required
- System ensures face and voice belong to same user
- If all verifications pass, recommendation is approved and displayed
- If any stage fails, access is denied with specific error message
- Multi-modal authentication prevents single-point failures
- Confidence thresholds ensure reliable verification
- Identity matching prevents voice spoofing attacks
- Real-time processing for seamless user experience
Multimodal_Assignment/
โโโ ๐ multimodal_data_preprocessing.ipynb # Data merging and EDA
โโโ ๐ script.py # Main system implementation
โโโ ๐ Demo.ipynb # Interactive demonstration
โโโ ๐ PROJECT_REPORT.md # Comprehensive project report
โโโ ๐ requirements.txt # Python dependencies
โโโ ๐๏ธ Data Files/
โ โโโ customer_social_profiles.xlsx # Customer social data
โ โโโ customer_transactions.xlsx # Transaction history
โ โโโ merged_customer_data.csv # Processed customer data
โ โโโ image_features.csv # Extracted image features
โ โโโ audio_features.csv # Extracted audio features
โโโ ๐ผ๏ธ Images/ # Facial recognition dataset & docs
โ โโโ system_architecture.png # System architecture diagram
โ โโโ member1/ (neutral.jpeg, smiling.jpeg, surprised.jpeg)
โ โโโ member2/ (neutral.jpeg, smiling.jpeg, surprised.jpeg)
โ โโโ member3/ (neutral.jpeg, smiling.jpeg, surprised.jpeg)
โโโ ๐ต Audio/ # Voice verification dataset
โ โโโ member1/ (confirm_1.wav, confirm_2.wav, yes_approve_1.wav, yes_approve_2.wav)
โ โโโ member2/ (confirm_1.wav, confirm_2.wav, yes_approve_1.wav, yes_approve_2.wav)
โ โโโ member3/ (confirm_1.wav, confirm_2.wav, yes_approve_1.wav, yes_approve_2.wav)
โโโ ๐ค Models/
โโโ face_recognition_model.pkl # Trained face recognition model
โโโ voiceprint_verification_model.pkl # Trained voice verification model
โโโ product_recommendation_model.pkl # Product recommendation model
โโโ product_label_encoder.pkl # Label encoder for products
- Python 3.8+
- pip package manager
-
Clone the repository (or download the project files)
cd Multimodal_Assignment -
Install dependencies
pip install -r requirements.txt
-
Run the data preprocessing (if not already done)
jupyter notebook multimodal_data_preprocessing.ipynb
-
Run the system demonstration
python script.py
Or use the interactive notebook:
jupyter notebook Demo.ipynb
The system includes three demonstration scenarios:
- Input: Valid face image + matching voice sample
- Result: Full access granted with product recommendation
- Input: Unrecognized/blurred face image
- Result: Access denied to prediction model
- Input: Valid face + mismatched voice sample
- Result: Access granted but prediction blocked
# Feature extraction from facial images
- Color histogram features (RGB channels, 32 bins each)
- HOG-like features using Sobel operators
- 40-dimensional feature vector
- Random Forest classification# Feature extraction from voice samples
- MFCC coefficients (13 features + mean/std)
- Spectral features (rolloff, centroid)
- Temporal features (ZCR, RMS energy)
- 30-dimensional feature vector
- Random Forest classification# Customer profiling based on:
- Engagement score
- Purchase interest score
- Customer rating
- Historical transaction data- Authentication Speed: < 2 seconds for complete verification
- Face Recognition Threshold: 60% confidence minimum
- Voice Verification Threshold: 70% confidence minimum
- Security Level: High (multi-modal requirement)
opencv-python==4.8.0.74 # Computer vision
librosa==0.10.1 # Audio processing
scikit-learn==1.3.0 # Machine learning
pandas==2.0.3 # Data manipulation
numpy==1.24.3 # Numerical computing
matplotlib==3.7.1 # Visualization
seaborn==0.12.2 # Statistical plotting
IPython==8.14.0 # Interactive computing
openpyxl==3.1.2 # Excel file handling- E-commerce Platforms: Secure access to personalized recommendations
- Banking Systems: Multi-factor authentication for financial services
- Healthcare: Secure patient data access
- Enterprise Security: Facility and system access control
- Deep Learning: CNN for face recognition, RNN for voice verification
- Liveness Detection: Anti-spoofing measures
- Mobile Integration: Smartphone-based biometric capture
- Cloud Deployment: Scalable cloud architecture
- Continuous Authentication: Ongoing verification during usage
- Access Request: User attempts to access product prediction model
- Face Authentication: System processes facial image for identity verification
- Access Control: If face recognized (>60% confidence), grant model access
- Prediction Generation: System generates product recommendation
- Voice Confirmation: User must confirm prediction through voice sample
- Cross-Modal Verification: Ensure face and voice belong to same user
- Final Authorization: If all checks pass, display recommendation
For detailed technical implementation, methodology, and results, see PROJECT_REPORT.md.
This project demonstrates collaborative development of a complex multimodal system involving:
- System architecture and design
- Computer vision implementation
- Audio processing and analysis
- Machine learning model development
- System integration and testing
- Documentation and reporting
For questions or issues, please refer to the comprehensive documentation in the project files or the detailed technical report.
This project showcases advanced biometric authentication techniques with practical applications in secure systems and personalized recommendation engines.
