BlinkShield
A step towards safer roads in India
The problem BlinkShield solves
BlinkShield is a web-based application that analyzes eye movement patterns from user-uploaded videos using advanced computer vision and AI technologies. Users simply upload a video—such as their eyes following a moving dot—and BlinkShield extracts key frames, detects facial and eye landmarks, and calculates metrics like average eye movement and movement variance. The system identifies patterns such as smooth pursuit, jerking, or fluttering, and can generate natural language insights using generative AI. Results are presented in an interactive web dashboard, making it easy to visualize and interpret findings.
Potential applications include:
Early detection of neurological or ocular disorders
Attention and cognitive studies in psychology and neuroscience
User experience testing for digital interfaces
Tech stack: FastAPI (Python), OpenCV, MediaPipe, Google Generative AI, and Next.js (React).
Challenges we ran into
Accurate Eye Landmark Detection
Ensuring reliable detection of eye landmarks across different lighting conditions, camera qualities, and user positions is difficult. MediaPipe and OpenCV help, but edge cases (e.g., glasses, partial occlusion) can still cause errors.
Processing Performance
Video analysis is computationally intensive, especially when extracting frames and running landmark detection on each frame. Balancing real-time feedback with accuracy required optimization.
Handling Diverse Video Inputs
Users may upload videos in various formats, resolutions, and qualities. Building robust preprocessing to handle this diversity without crashing or producing poor results was a challenge.
Interpreting Eye Movement Patterns
Translating raw landmark data into meaningful, clinically or scientifically relevant metrics (like smooth pursuit or jerking) required research and careful algorithm design.
Integrating AI Insights
Using generative AI to summarize or interpret eye movement data in a way that is both accurate and understandable by non-experts required prompt engineering and validation.
Frontend-Backend Communication
Ensuring seamless, secure, and efficient communication between the Next.js frontend and FastAPI backend, especially for large video files, posed technical hurdles.
User Experience and Visualization
Designing a dashboard that makes complex eye tracking data easy to understand, actionable, and visually appealing was a UX/UI challenge.
Technologies used
