How yusuf-shafiq-raja/ai-interview-cheat-detector works
Secure Recruit AI is a recruiter-side interview integrity monitor. A recruiter starts an interview in the dashboard; the browser sends audio chunks and video frames to the Flask API, which scores audio and visual behavior. The dashboard averages those scores for a live overall risk view and separately submits them for CSV logging. The README also describes privacy-aware, real-time multimodal analysis. The graph reflects the sampled runtime paths; the standalone audio-to-text route is not shown as part of the registered workflow, and unsampled capabilities are retained only where README evidence supports them.
Main entry points: App.js Interview dashboard · app.py Flask application · audio_stream.py Audio stream endpoint · fusion_logger.py Fusion score logger
Components 14
Recruiter dashboard
- Interview dashboard
frontend/src/App.js
Backend API
- Flask application
backend/app.py - Fusion score logger
backend/app/routes/fusion_logger.py - Fusion results CSV
backend/app/routes/fusion_logger.py
Audio analysis
- Audio stream endpoint
backend/app/routes/audio_stream.py - Speech and silence scoring
backend/app/routes/audio_stream.py - Temporal score smoothing
backend/app/routes/audio_stream.py - File transcription route
backend/app/routes/audio_to_text.py - Faster-Whisper model
backend/app.py
Text analysis
- AI text detector
backend/app/routes/text_analyzer.py - Text analysis endpoint
backend/app/routes/text_analyzer.py
Video analysis
- Video analysis endpoint
backend/app/routes/video_analyzer.py - Face and gaze analysis
backend/app/routes/video_analyzer.py
Other components
- Recruiter
Connections 18
- Recruiter → Interview dashboard: starts monitoring
README.md - Interview dashboard → Flask application: resets audio
frontend/src/App.js - Interview dashboard → Flask application: resets video
frontend/src/App.js - Interview dashboard → Audio stream endpoint: sends audio chunks
frontend/src/App.js - Interview dashboard → Video analysis endpoint: sends frames
frontend/src/App.js - Flask application → Audio stream endpoint: registers route
backend/app.py - Flask application → Video analysis endpoint: registers route
backend/app.py - Flask application → Text analysis endpoint: registers route
backend/app.py - Flask application → Fusion score logger: registers route
backend/app.py - Audio stream endpoint → Faster-Whisper model: transcribes audio
backend/app/routes/audio_stream.py - Audio stream endpoint → Speech and silence scoring: extracts speech cues
backend/app/routes/audio_stream.py - Audio stream endpoint → AI text detector: scores transcript
backend/app/routes/audio_stream.py - Audio stream endpoint → Temporal score smoothing: smooths score
backend/app/routes/audio_stream.py - Text analysis endpoint → AI text detector: predicts AI probability
backend/app/routes/text_analyzer.py - Video analysis endpoint → Face and gaze analysis: scores frame
backend/app/routes/video_analyzer.py - Interview dashboard → Fusion score logger: submits scores
frontend/src/App.js - Fusion score logger → Fusion results CSV: appends results
backend/app/routes/fusion_logger.py - Interview dashboard → Interview dashboard: averages scores
frontend/src/App.js