Bachelor of Technology Project
Department of Information Technology and Computer Applications
Andhra University College of Engineering, Visakhapatnam
Academic Year: 2020-2024
KESBEES is an intelligent examination proctoring system that combines keystroke dynamics and eye gaze tracking to ensure exam integrity and automate essay evaluation. The system uses machine learning algorithms to verify user identity during online examinations and detect potential impersonation attempts.
- Pothabathula Bala Mahendra (320106411035)
- Prathipati Jithendra (320106411036)
- Prof. V. Valli Kumari, Professor, Department of IT & Computer Applications
The KESBEES system creates a smart examination environment that:
- Evaluates essay writing quality objectively
- Verifies student identity through behavioral biometrics
- Monitors exam integrity using real-time gaze tracking
- Provides fair assessment beyond simple word counting
By analyzing typing patterns (speed, pauses, rhythm) and eye movements, the system builds a behavioral profile during a mock test and compares it against real-time exam behavior to detect impersonation.
- Captures typing dynamics: speed, rhythm, pause patterns
- Analyzes production rate, word count, and typing consistency
- Uses Euclidean distance metrics for pattern matching
- Threshold-based authenticity scoring (configurable at 0.40)
- Monitors where users look during typing (left/center/right keyboard zones)
- Uses facial landmark detection (468 points) via CNN models
- Trains on mock test data to establish baseline behavior
- Real-time comparison during actual examination
- Detects unauthorized users via face-api.js
- Monitors face absence (10-second tolerance)
- Automatic violation tracking with termination protocol
- Tab switch detection (prevents external resource access)
- Multi-face detection (detects proxy test-takers)
- Violation counting system (1 warning โ 2nd strike = termination)
- Real-time proctoring dashboard
- Mock Test (3 minutes): Captures baseline typing + gaze patterns
- Real Exam (30 minutes): Essay writing with continuous monitoring
- Automatic data collection and ML-based comparison
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ KESBEES SYSTEM โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Registration โโโโโโโโโโถโ Mock Test โ โ
โ โ Interface โ โ (Training) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโ โ
โ โ Feature Store โ โ
โ โ - Keystroke โ โ
โ โ - Gaze Data โ โ
โ โ - Face Profile โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโ โ
โ โ Real Exam โ โ
โ โ + Monitoring โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ML Analysis Engine โ โ
โ โ - Voting Regressor (Keystroke) โ โ
โ โ - Voting Classifier (Gaze Direction) โ โ
โ โ - Face Recognition (face-api.js) โ โ
โ โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโ โ
โ โ Result Output โ โ
โ โ - Score โ โ
โ โ - Status โ โ
โ โ - Violations โ โ
โ โโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Ensemble model combining:
- Random Forest Regressor
- Gradient Boosting Regressor
- Extra Trees Regressor
- XGBoost Regressor
Features Extracted:
- Production rate (process & product)
- Word count and paragraph count
- Key press/release timing
- Pause patterns
- Text modification behavior (input/delete/cut)
Performance Metrics:
- Rยฒ Score: 0.92+ (high accuracy)
- RMSE: Low error rates across test samples
Classifies eye gaze into 3 zones:
- Left: Looking at left keyboard region
- Center: Looking at center keyboard region
- Right: Looking at right keyboard region
Features:
- 468 facial landmarks (MediaPipe)
- Eye iris positions (left/right)
- Eye corner coordinates
- Euclidean distance calculations
- Pre-trained face-api.js models
- Face descriptor generation
- Distance-based matching (threshold: 0.50)
- Multi-face detection capability
Frontend:
- HTML5, CSS3, JavaScript (ES6+)
- TensorFlow.js for ML inference
- face-api.js for facial recognition
- MediaPipe for landmark detection
Backend:
- Python 3.8+
- Flask web framework
- scikit-learn for ML models
- pandas, numpy for data processing
Libraries & Frameworks:
- OpenCV (computer vision)
- scikit-learn (machine learning)
- pickle (model serialization)
- JSON (data interchange)
| Feature | Description |
|---|---|
production_rate_process |
Characters typed per second |
production_rate_product |
Words produced per minute |
word_count |
Total words in essay |
paragraph_count |
Total paragraphs written |
action_time |
Time between keystrokes |
activity |
Input/Remove/Nonproduction |
Landmark Points Used:
- Iris Centers: 468-476 (left), 469-471 (right)
- Eye Corners: 263, 362 (left), 33, 133 (right)
- Calculated: Iris midpoints, eye midpoints, euclidean distances
Python 3.8+
pip (Python package manager)
Webcam-enabled device
Modern web browser (Chrome/Firefox recommended)git clone https://github.com/YOUR_USERNAME/KESBEES.git
cd KESBEES# Windows
python -m venv myenv
myenv\Scripts\activate
# Linux/Mac
python3 -m venv myenv
source myenv/bin/activatepip install -r requirements.txtpython application.pyOpen browser and navigate to:
http://127.0.0.1:5000
KESBEES/
โ
โโโ application.py # Main Flask application
โโโ questions.json # Essay question bank
โโโ requirements.txt # Python dependencies
โโโ .gitignore # Git ignore rules
โ
โโโ templates/
โ โโโ index.html # Registration page
โ โโโ mock.html # Exam interface (mock + real)
โ
โโโ static/
โ โโโ models/ # Pre-trained ML models
โ โ โโโ face_landmark_detection_model-shard*
โ โ โโโ face_recognition_model-shard*
โ โ โโโ ssd_mobilenetv1_model-shard*
โ โ โโโ tiny_face_detector_model-shard*
โ โโโ w3.css # Styling framework
โ
โโโ src/
โ โโโ pipeline/
โ โ โโโ predict_pipeline.py # ML prediction pipelines
โ โโโ exception.py # Custom exception handling
โ โโโ logger.py # Logging configuration
โ
โโโ artifacts/ # Trained model artifacts
โ โโโ model.pkl # Voting regressor
โ โโโ preprocessor.pkl # Data preprocessor
โ โโโ direction.pkl # Gaze classifier
โ
โโโ notebooks/ # Jupyter notebooks (optional)
โ โโโ data_exploration.ipynb
โ โโโ model_training.ipynb
โ
โโโ README.md # This file
-
Configure System
- Set exam duration (default: 30 minutes)
- Set mock test duration (default: 3 minutes)
- Configure detection thresholds
- Upload essay questions to
questions.json
-
Monitor Exams
- View real-time violation logs
- Check student authentication status
- Review keystroke similarity scores
-
Registration
- Enter name and registration ID
- Grant camera permissions
- Click "Start Mock Test"
-
Mock Test (3 minutes)
- Type randomly generated characters
- Look at keyboard while typing
- System captures baseline behavior
- Do not switch tabs or look away
-
Real Exam (30 minutes)
- Read essay question carefully
- Write essay (minimum 200 words, 3 paragraphs)
- Stay focused on screen
- System monitors behavior continuously
-
Submit Exam
- Click submit button
- View your keystroke similarity score
- See authentication status (GENUINE/IMPOSTOR)
# Keystroke Authentication
KEYSTROKE_THRESHOLD = 0.40 # Lower = stricter matching
# Score > 0.40 โ GENUINE
# Score < 0.40 โ IMPOSTOR DETECTED
# Gaze Direction
DIRECTION_THRESHOLD = 0.65 # Confidence threshold
# Face Recognition
FACE_DISTANCE_THRESHOLD = 0.50 # Lower = stricter matching
# Security Limits
MAX_FACE_ABSENCE_TIME = 10 # seconds
MAX_VIOLATIONS = 1 # warnings before termination
MAX_UNAUTHORIZED_STRIKES = 2[
{
"question": "Discuss the impact of artificial intelligence on modern education systems.",
"topic": "Technology & Education"
},
{
"question": "Analyze the role of renewable energy in combating climate change.",
"topic": "Environment"
}
]| Model | Rยฒ Score | RMSE |
|---|---|---|
| Random Forest | 0.94 | 0.08 |
| Gradient Boosting | 0.93 | 0.09 |
| Extra Trees | 0.92 | 0.10 |
| Voting Regressor | 0.95 | 0.07 |
- Training Accuracy: 89%
- Test Accuracy: 87%
- 3-class classification (Left/Center/Right)
-
Behavioral Biometrics
- Unique typing patterns per user
- Difficult to replicate or spoof
- Continuous authentication
-
Multi-Modal Verification
- Keystroke + Gaze + Face recognition
- Reduces false positive rates
- Comprehensive impersonation detection
-
Real-Time Monitoring
- Tab switch detection
- Face absence tracking
- Violation logging
-
Automatic Termination
- Threshold-based enforcement
- Immediate exam suspension on violation
- Prevents cheating attempts
-
Lighting Conditions
- Poor lighting affects face detection accuracy
- Recommendation: Well-lit environment required
-
Camera Quality
- Low-resolution cameras reduce landmark detection
- Recommendation: Minimum 720p webcam
-
False Positives
- Different typing speeds (nervousness, fatigue)
- Different keyboard layouts (laptop vs desktop)
- Solution: Adjustable threshold parameters
-
Network Latency
- Slow connections may affect real-time monitoring
- Recommendation: Stable internet connection
-
Mouse Dynamics Integration
- Track cursor speed, acceleration, click patterns
- Enrich behavioral profile
-
Real-Time Feedback
- Provide writing suggestions during exam
- Adaptive difficulty based on performance
-
Audio/Video Analysis
- Voice recognition for oral exams
- Emotion detection via facial expressions
-
Enhanced Accessibility
- Screen reader support
- Alternative input methods for disabled users
-
Teacher Dashboard
- Comprehensive analytics
- Batch processing for multiple students
- Integration with LMS platforms
-
Advanced Security
- Blockchain-based exam records
- Encrypted data transmission
- Multi-factor authentication
-
Kevin S. Killourhy, Roy A. Maxion, "Comparing Anomaly-Detection Algorithms for Keystroke Dynamics," IEEE/IFIP International Conference on Dependable Systems & Networks, 2009.
-
Nuwan Kaluarachchi et al., "A New Distance-Based Feature Set for Keystroke Dynamics," IEEE Conference Paper, 2023.
-
Bernard Aldrich et al., "Translating Keystroke and Mouse Dynamics Data to Classify Human Mood," IEEE Conference Paper, 2023.
-
P. Kasprowski et al., "Biometric identification based on keystroke dynamics," Sensors, vol. 22, no. 9, p. 3158, 2022.
-
A. Acien et al., "Typenet: Deep learning keystroke biometrics," IEEE Transactions on Biometrics, Behavior, and Identity Science, vol. 4, no. 1, pp. 57โ70, 2021.
-
T. Wu et al., "User identification by keystroke dynamics based on feature correlation analysis," IEEE ICCC, pp. 40โ46, 2019.
This project is developed as an academic requirement for Bachelor of Technology degree.
ยฉ 2024 Pothabathula Bala Mahendra, Prathipati Jithendra
Andhra University College of Engineering, Visakhapatnam
We express our sincere gratitude to:
- Prof. V. Valli Kumari - Project Guide, for invaluable guidance and support
- Prof. Kunjam Nageswara Rao - Head of Department, for constant inspiration
- Prof. G. Sasi Bhushana Rao - Principal, AUCE, for providing facilities
- Prof. P.V.G.D. Prasad Reddy - Vice-Chancellor, Andhra University
- Department faculty, lab technicians, and support staff
- Our families and friends for unwavering support
For queries regarding this project:
- Pothabathula Bala Mahendra - 320106411035
- Prathipati Jithendra - 320106411036
Institution: Department of Information Technology and Computer Applications
Address: Andhra University College of Engineering, Visakhapatnam-530003, India
โ
Core functionality implemented
โ
ML models trained and deployed
โ
Real-time monitoring active
โ
Security features operational
๐ Future enhancements in planning
Last Updated: November 2024