OptiSync
eye fatigue measurer using face mesh analysis
Created on 15th March 2026
•
OptiSync
eye fatigue measurer using face mesh analysis
The problem OptiSync solves
OptiSync 👁️
Eye Fatigue Measurer using Face Mesh Analysis
A full-stack Ocular Wellness Ecosystem that monitors eye health in real time and prevent Digital Eye Strain (DES).
🚩 The Problem
Over 2.1 billion people suffer from Digital Eye Strain — yet most solutions are just glorified timers. OptiSync is different. It actually measures your fatigue using biological markers and responds intelligently.
💡 What It Does
OptiSync uses **MediaPipe ** to continuously provide Eye Aspect ratio which is then coverted into blink rate and cognitive strain level using logic around this project
✨ Key Features
🔬 Precision Ocular Tracking
- Detects blinks, partial blinks, and prolonged staring
- BPM below 15? Strain score rises automatically
- Look away and rest? Score reduces as a reward
🌐 Works Everywhere
- A Chrome Extension (MV3) injects a live strain widget into every webpage
- Delivers OS-level notifications no matter what you're doing online
🚨 Progressive Alert System
- Mild fatigue (40%+) → Gentle nudge notification
- Critical fatigue (80%+) → Mandatory therapy session triggered
🧘 Therapy Modules
| Module | Description |
|---|---|
| 20-20-20 Rule | Monitored session — look 20ft away for 20 seconds |
| Palming Audio | Guided sensory deprivation to restore rod/cone cells |
| Infinity Eye Tracker | Eye-muscle reset following an orbital path |
| Posture Hazard Sensor | Detects if you're sitting too close to the screen |
📊 Health Analytics
- Node/Express/MongoDB backend logs hourly strain and blink history
- Track long-term ocular health trends over days and weeks
🛠️ Tech Stack
| Layer | Technology |
|---|---|
| AI Engine | MediaPipe Face Mesh, JavaScript (ES6+) |
| Frontend | React 18, Vite, Glassmorphism CSS |
| Extension | Chrome MV3, Service Workers, Content Scripts |
| Backend | Node.js, Express.js |
| Database | MongoDB (Local/Atlas), Mongoose |
👥 Team
- Arnav Singh
- Raghav Singh
- Sangram Borude
-Soham
Challenges we ran into
🧱 Challenges We Ran Into
Building OptiSync came with some real engineering hurdles. Here's how we tackled each one:
🔋 1. Battery Efficiency
Running a real-time AI face mesh engine 24/7 is expensive on system resources.
How we solved it:
- Implemented adaptive frame sampling — the MediaPipe engine only processes frames when motion is detected, reducing unnecessary CPU cycles
- Throttled the strain-score update interval to avoid redundant recalculations
- The Chrome Extension uses a lightweight content script that only listens for score updates broadcast from the dashboard — it runs no AI logic itself
- Result: Minimal battery drain compared to running a full CV pipeline on every frame
🔐 2. Protecting User Data
Webcam access and health metrics are deeply personal — privacy was non-negotiable.
How we solved it:
- All AI processing happens 100% on-device — the webcam feed never leaves the user's browser
- No raw video or images are stored anywhere; only derived metrics (strain score, BPM) are logged
- The MongoDB backend stores only anonymized numerical data — no biometrics, no personally identifiable information
- Users have full control to clear their history log at any time
⚙️ 3. Running in the Background
Browser tabs get throttled or frozen when hidden — a major problem for a continuous monitoring tool.
How we solved it:
- Implemented custom Web Workers to offload the AI engine from the main thread, preventing it from being killed when the tab loses focus
- Used Chrome Extension Service Workers (MV3) to maintain a persistent background process that keeps the strain score alive across all tabs
- Added a visibility state listener that gracefully pauses and resumes the MediaPipe engine to save resources when the dashboard is minimized
👁️ 4. Actually Reducing Eye Strain
Most apps just set a timer and call it a day. We wanted real, measurable relief.
How we solved it:
- Built a science-backed Therapy Modules Library with interactive exercises:
- 20-20-20 Rule — enforced with real detection, not just a countdown
- Palming Audio — guided sensory deprivation to restore rod and cone cells
- Infinity Eye Tracker — active eye-muscle relaxation along an orbital path
- Posture Hazard Sensor — alerts when the user is sitting dangerously close to the screen
- Therapy sessions are triggered automatically at critical strain thresholds (80%+), not left to user willpower
- The Restorative Bonus system actively rewards users for closing their eyes and looking away, reinforcing healthy habits through positive feedback
Tracks Applied (1)
Electrothon 8.0 Honors Track
Technologies used
