This project is a smart, scalable, and secure certificate verification system with ML-powered authenticity detection for comprehensive certificate validation.
Automatic notifications when certificates are not found during verification!
- π Real-time Alerts: Instant notifications on SPOC dashboard when verification fails
- π Smart Detection: Automatically triggered when certificate hash not found in database
- π― Actionable Interface: Resolve or dismiss alerts with one click
- π Auto-refresh: Dashboard updates every 30 seconds
- π¨βπ Student Details: Shows student name, roll number, and verification attempt details
- π¨ Severity-based UI: Color-coded alerts (Critical=Red, Warning=Yellow, Info=Blue)
π Quick Start: See QUICK_START_ALERTS.md for 3-step setup (takes 3 minutes!)
- ποΈ Institution Management: Complete database of educational institutions
- π IPFS Integration: Secure certificate storage via Pinata with per-institution organization
- π Hash Verification: SHA-256 based file integrity verification
- π Blockchain Anchoring: Certificate hashes anchored on blockchain for immutability
- π€ SIH ML Authentication: MobileNetV2-based AI model for certificate authenticity detection
- π§ Two-Step Verification: Database lookup with ML fallback for comprehensive validation
- π― SIH Classifier Integration: Custom MobileNetV2 model trained on real vs fake certificates
- π€ OCR Extraction: Automatic extraction of student information from certificate images
- Student name detection
- Roll number/Student ID extraction
- Certificate type identification (Bachelor, Master, Diploma, etc.)
- Marks/Grade/CGPA parsing
- Issue date recognition
- π Smart Metadata: OCR-extracted data automatically stored as searchable IPFS metadata
- π― SIH Model Architecture: MobileNetV2 + Dense layers (224x224x3 input, 2-class softmax output)
- π Confidence Scoring: HIGH/MODERATE/LOW confidence levels with detailed probability analysis
- π Model Conversion: Automated TensorFlow.js conversion from Keras .h5 models
- π‘οΈ Fallback System: Graceful handling when ML models are unavailable
- π’ Institution Database: Comprehensive institution registry with verification portals
- π₯ Student Management: Individual and bulk student registration
- π Certificate Tracking: Complete certificate lifecycle management
- οΏ½ Analytics Dashboard: Real-time insights and system analytics
- π¨βπΌ Admin Dashboard: System analytics and activity monitoring (/admin)
- ποΈ Database Admin: Institution and student management interface (/database)
- π₯ Bulk Import: CSV import for student data
- π Activity Logging: Comprehensive audit trail
- π¨ Automatic Alerts: Creates alerts when certificate verification fails
- π Dashboard Integration: Real-time alert display on SPOC dashboard
- π― Smart Notifications: Includes student info, hash, verifier details
- β‘ Instant Actions: Resolve or dismiss alerts with one click
- π Auto-refresh: Updates every 30 seconds without page reload
- π Statistics: Alert counts by severity (Critical, Warning, Info)
- π Investigation Tools: Full details for fraud detection and follow-up
- Institution Registry: Educational institutions with verification endpoints
- Student Database: Student profiles linked to institutions
- Certificate Records: Certificate metadata with IPFS and blockchain references
- Verification Logs: Activity tracking and audit trails
- Upload: Certificate + student info β IPFS + blockchain anchor
- Database: Auto-link student, institution, and certificate
- Verification: Cross-reference against database records
- Analytics: Real-time dashboard updates
/: Landing page with navigation/upload: Certificate upload with institution selection/check: Certificate verification interface/admin: System analytics and activity monitoring/database: Institution and student management
- Base Model: MobileNetV2 (ImageNet weights, frozen)
- Architecture: MobileNetV2 β GlobalAveragePooling2D β Dense(128) β Dropout(0.5) β Dense(64) β Dropout(0.5) β Dense(2, softmax)
- Input: 224x224x3 RGB images
- Output: 2-class categorical (REAL_CERT vs FAKE_CERT)
- Training: Adam optimizer (0.0001), categorical crossentropy, early stopping
# Windows
.\convert-sih-model.bat
# Linux/Mac
python convert_sih_model.py# Install converter
pip install "tensorflowjs>=3.20.0,<4.0.0"
# Convert model
tensorflowjs_converter \
--input_format=keras \
--output_format=tfjs_layers_model \
public/certificate_classifier.h5 \
public/model- Open
public/CNN_SIH.ipynbin Jupyter/VS Code - Update the data paths in the notebook
- Run all cells to train and save
certificate_classifier.h5 - Use Method 1 or 2 above to convert
public/model/
βββ model.json # Model architecture
βββ group1-shard1of1.bin # Model weights
βββ sih_model_info.json # Metadata
- Step 1: Database hash lookup (instant)
- Step 2: If not found β SIH ML analysis (2-3 seconds)
- Result: Combined confidence with detailed breakdown
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
- Automatic Processing: OCR runs automatically when you upload image files (JPG, PNG)
- Smart Detection: Uses advanced patterns to extract key information from various certificate formats
- Metadata Integration: Extracted data is automatically included in IPFS metadata for better searchability
- Fallback Support: Works even if OCR endpoint is unavailable (demo text)
- Llama OCR Endpoint: Configure via
.env(REACT_APP_LLAMA_OCR_URL) - React 19.1.1: Modern React with latest features
- IPFS/Pinata: Decentralized storage
- TensorFlow.js: ML model inference in browser
Each uploaded certificate includes up to 9 metadata fields:
{
institution: "Ranchi University",
folder: "Ranchi_University",
category: "academic_certificate",
state: "Jharkhand",
uploadDate: "2025-09-10",
studentName: "John Doe", // π€ OCR extracted
rollNumber: "RU2021001", // π€ OCR extracted
certType: "Bachelor of Science", // π€ OCR extracted
marks: "85.5%" // π€ OCR extracted
}- Universities: Ranchi University, Sido Kanhu Murmu University, etc.
- Technical: IIT Dhanbad, NIT Jamshedpur, BIT Mesra, etc.
- Medical: RIMS, MGM Medical College, etc.
- Management: XLRI, IIM Ranchi, etc.
- Arts & Science: St. Xavier's College, Gossner College, etc.
Navigate to /admin to access the admin dashboard for:
- Managing verified records
- Blacklist management
- Audit logs viewing
- System settings
Navigate to /import for:
- CSV/JSON bulk import
- Institution data management
# 1. Run SQL script
# Copy database/setup-alerts.sql β Supabase SQL Editor β Run
# 2. Test alerts
npm start
# Upload non-existent certificate at /hr/verify
# Check SPOC dashboard for alertsQUICK_START_ALERTS.md- 3-minute setup guideALERT_SYSTEM_GUIDE.md- Complete documentationALERT_IMPLEMENTATION_SUMMARY.md- Technical detailsdatabase/setup-alerts.sql- Database schema
β
Auto-create alerts when certificate not found
β
Real-time dashboard updates (30s refresh)
β
Color-coded severity (π΄ Critical, π‘ Warning, π΅ Info)
β
One-click Resolve/Dismiss actions
β
Student details + verification history
β
Alert statistics and analytics
Built with Create React App and modern web technologies for a state-wide certificate verification system.