CEREBRO - Cognitive Assessment Platform
A sophisticated web-based IQ testing platform I engineered with Mensa-aligned methodology—featuring 100+ questions, adaptive difficulty, anti-cheat systems, and real-time score analysis with a premium, minimalist interface.
Project Overview
I built CEREBRO after experiencing inconsistencies in existing cognitive assessment platforms and recognizing an opportunity to create something more rigorous and transparent. This is a scientifically-grounded IQ testing system that implements Mensa-standard scoring algorithms, delivering results from IQ 70-160+ through a carefully curated question bank spanning six cognitive domains. The platform features strict validation protocols to prevent guessing, real-time adaptive difficulty, and comprehensive performance breakdowns—all wrapped in an elegant, distraction-free interface that rivals premium assessment tools.
Key Features & Solutions
- Intelligent Question Selection Engine: Implements stratified sampling in selectQuestionsForTest() to curate 20 questions from a 100+ pool, following distribution rules (2 easy, 4 medium, 6 hard, 8 expert) with type-diversity constraints to prevent consecutive duplicates and Fisher-Yates shuffling for randomization.
- Mensa-Aligned Scoring System: Core algorithm in calculateIQ() converts raw performance to percentile rankings using normal distribution (mean 100, SD 15), applying inverse CDF with Welford's approximation for z-score conversion. Implements weighted scoring via pointsMap (1.0-5.0 multipliers based on difficulty 1-8) and enforces strict validation thresholds—requiring ≥70% accuracy on difficulty 7-8 questions for IQ 130+.
- Multi-Layer Anti-Cheat Architecture: Deploys initializeAntiCheat() with context menu blocking, DevTools detection via viewport differential monitoring (outerHeight - innerHeight > 160), tab-switch tracking with visibilitychange listeners, and keystroke interception (F12, Ctrl+Shift+I/J, Ctrl+U). Flags suspicious patterns through flagSuspiciousActivity() and applies score penalties for rapid-fire answering (<5s per question).
- Real-Time Performance Analytics: Generates six-category radar charts (Sequence Logic, Spatial Reasoning, Matrix Patterns, Logic Chains, Mathematical, Resource Allocation) using HTML5 Canvas API, with weighted breakdown calculations in performanceBreakdown that track score/maxScore ratios per cognitive domain.
- State Management & Persistence: Utilizes localStorage for cross-page data transfer (cerebroTestData object containing selectedQuestions, answers, timestamps, and testID), with session state managed through TestState object tracking 30-minute countdown timer, question progression, and user interactions.
- Premium UI/UX Design: Crafted with Inter + JetBrains Mono typeface pairing, glassmorphic cards using backdrop-filter: blur(40px), animated particle system (80 elements with randomized delays), CSS custom properties for color theming (--graphite, --silver, --ghost-white), and magnetic button effects for enhanced interactivity.