In-depth technical architecture breakdowns, algorithmic analysis, and engineering case studies from real-world systems.
Computer Vision • Edge AI
Real-Time Driver Fatigue & Distraction Architecture
Problem Space: Micro-sleep episodes and cognitive inattention cause a substantial percentage of highway transit collisions. Cloud-based video telemetry introduces prohibitive latency (>300ms) and privacy concerns. Developing an on-device, real-time edge computer vision model required balancing high inference frame rates with low thermal and CPU envelopes.
Algorithmic Solution: The FocusGuard pipeline uses OpenCV and MediaPipe to detect 68 distinct facial coordinate landmarks at 60 FPS. The system calculates the Eye Aspect Ratio (EAR) based on vertical and horizontal Euclidean distances: EAR = (||p2 - p6|| + ||p3 - p5||) / (2 * ||p1 - p4||). When the EAR falls below a calibrated threshold (<0.22) across consecutive frames, a rolling temporal window computes the PERCLOS (Percentage of Eye Closure) metric.
Spatial Head Pose Estimation: By mapping 2D facial landmarks to an idealized 3D generic facial anthropomorphic model via Perspective-n-Point (solvePnP), the system derives the user's pitch, yaw, and roll Euler angles. Inattention thresholds trigger auditory haptic alarms whenever prolonged angular deviation exceeding 35° is detected.
Python
OpenCV
MediaPipe
SciPy EAR
Perspective-n-Point
Distributed Systems • Deep Learning
Autonomous Multi-Camera AI Surveillance & Spatial Tracking
Distributed Stream Processing: The Visio-Nexus platform ingests multiple simultaneous high-definition RTSP video streams across industrial and smart-campus environments. The architecture incorporates an asynchronous multi-threaded frame consumer pattern to prevent buffer bloat and avoid I/O blocking during inference spikes.
Object Re-Identification Pipeline: Frame feeds pass through a lightweight YOLO convolutional backbone for high-confidence bounding box localization. Detected faces are normalized through affine transformations before generating 512-dimensional feature embeddings via FaceNet / InsightFace. Spatial tracking across occlusions is maintained using Kalman Filter state prediction coupled with Hungarian association (DeepSORT).
Vector Search & Anomaly Detection: Identity matching is accomplished in sub-10ms latency using hierarchical navigable small world (HNSW) vector search against high-dimensional biometric index registries. Unsupervised autoencoder anomaly models flag erratic trajectory velocities and perimeter breaches, delivering immediate secure web notifications.
YOLOv8
DeepSORT
FaceNet
RTSP Stream Ingestion
Vector Indexing
WebGL • Shader Engineering
High-Performance 3D Scene Graph Optimization in Three.js
Shader & Geometry Design: Creating cinematic WebGL web experiences requires strict GPU memory budgets to ensure fluid 60-120 FPS rendering on mobile devices. The centerpiece icosahedron and interactive particle networks rely on custom vertex shaders with procedural noise displacement rather than high-polygon static meshes.
Lighting & Post-Processing: Studio-quality cinematic aesthetics are achieved using a multi-pass lighting pipeline consisting of directional rim illumination, ambient chromatic shifts, and subtle radial vignette shaders. Mouse-driven parallax is dampened through spring-physics lerping (linear interpolation: current += (target - current) * alpha) to produce a weighted, physical feel.
Performance Budgeting: The render loop dynamically throttles DPR (device pixel ratio) scaling on high-density displays (capping at 2.0x) and terminates animation rendering when the document visibility state enters background tabs via the Page Visibility API, reducing battery drain to zero.
Three.js
GLSL Shaders
WebGL 2.0
Page Visibility API
Spring Physics
IoT Telemetry • Graph Algorithms
Smart City Telemetry & Dynamic Route Optimization
Sensor Telemetry Architecture: Municipal waste collection in modern urban centers suffers from inefficient fixed schedules. The Smart City IoT system connects ultrasonic fill-level transducers and GPS modules via low-power MQTT micro-protocols to publish real-time bin capacity metrics to a centralized event bus.
Graph-Based Dispatch Routing: When bin fill thresholds breach 80% capacity, an automated dispatch job constructs a dynamic weighted graph of pickup waypoints. The engine evaluates Euclidean distances, traffic weightings, and vehicle capacity constraints using Dijkstra's shortest path and A* heuristic routing algorithms.
Operational Impact: Fleet simulations demonstrate a 32% reduction in fuel consumption, complete elimination of waste overflow incidents, and automated driver navigation delivery via native Android client applications.
MQTT
IoT Microcontrollers
Graph Algorithms
A* Route Optimization
Android Client