Face detection systems that work well on single photographs often fall apart when confronted with live video. A face may be confidently detected in one frame and vanish in the next, its bounding box jumping and wobbling even when the person barely moves. Researchers at Annamalai University in India have now built a framework designed specifically to tame this flicker, combining fast object detection, capsule-based feature encoding, reinforcement learning, and a nature-inspired optimization algorithm into a single pipeline that runs in real time. The work, published in Discover Artificial Intelligence, reports 94.09 percent accuracy on unconstrained video streams while sustaining 31.4 frames per second.
The problem the team set out to solve is fundamentally temporal. Unlike static image detection, where each picture is processed independently, video-based face detection must preserve reliable decisions across a connected sequence of frames. Even when a person remains continuously visible, small variations in illumination, head pose, motion blur, camera movement, or partial occlusion can cause detection confidence to fluctuate between consecutive frames. The result is temporal flicker, where a face is detected in one frame but missed in the next, and bounding-box jitter, where the predicted facial region changes abruptly despite only minor movement of the subject. A frame-wise detector can achieve acceptable accuracy while still producing unstable, visually inconsistent output over time.
Such instability matters far beyond aesthetics. In surveillance systems, intermittent detections and unstable bounding boxes can interrupt event analysis, reduce the reliability of recorded evidence, and degrade downstream tracking or behavioral interpretation. In authentication systems, inconsistent accept-reject decisions across adjacent frames may trigger repeated verification failures, delayed access decisions, or unnecessary computational processing. The researchers argue that an effective video-based face detector must therefore optimize not only frame-level correctness but also decision continuity and localization stability across successive frames.
The new framework assigns a distinct role to each of its four components. YOLOv12, a modern anchor-free object detector, performs rapid multi-scale face localization on each frame, regressing bounding-box coordinates and confidence scores directly from feature maps and pruning redundant detections through Intersection-over-Uion-based non-maximum suppression. The detected face regions are then cropped and passed to a capsule network, which encodes facial features as vectors rather than scalars: the vector magnitude encodes the probability that a feature exists, while its orientation captures pose and spatial relationships. Through dynamic routing, in which lower-level capsules vote for higher-level representations based on agreement measures, the network produces pose-invariant embeddings that remain consistent even as the head turns or the camera shifts.
The most unconventional element is the third stage, a Deep Q-Network that acts as a temporal decision controller rather than a conventional classifier. The researchers frame face detection as a Markov decision process: the state at each moment consists of the capsule embedding of the detected region together with detection confidence and temporal information from neighboring frames, and the available actions are to accept, reject, or stabilize the detection. A reward function rewards correct classification and temporal stability while penalizing missed detections, abrupt decision changes, unstable localization, and excessive latency. This design acknowledges that a locally correct prediction in a single frame can still be undesirable if it produces flickering or inconsistent results across the sequence.
The fourth component, Harris Hawks Optimization, is a metaheuristic search algorithm that tunes the system’s operating parameters offline. It searches for suitable values of the YOLOv12 detection thresholds, the capsule routing parameters, and the DQN learning settings, using a fitness function that jointly weighs detection accuracy, temporal stability, and computational latency. Crucially, once the optimization converges, the best parameter configuration is fixed and HHO is removed entirely from the execution path. During real-time inference, the deployed system performs only localization, capsule-based feature representation, and DQN-based decision stabilization, so the iterative search adds nothing to per-frame latency.
The evaluation relied on the Selfies & Video Dataset, a collection of roughly 4,052 matched selfie-photo and video groups totaling more than 32,416 media files from 3,500 subjects across 15 countries. Participants recorded clips of about 8 to 30 seconds while pronouncing number sequences, captured with smartphones and webcams under varied indoor and outdoor lighting. To avoid a subtle but common pitfall in video machine learning, the team used five-fold subject/video-level cross-validation: all frames from a given video, and all data from a given subject, were confined to the same fold, so that highly similar consecutive frames never leaked from training into testing.
The numbers are strong. On the test set the framework achieved 94.09 percent accuracy, 94.77 percent precision, 89.47 percent recall, an F1-score of 90.84 percent, and a Matthews Correlation Coefficient of 0.9334. Against YOLO-FaceV2, a leading scale- and occlusion-aware detector, the proposed system improved accuracy by 0.49 percentage points, precision by 0.57 points, and MCC by 0.54 points. Interestingly, YOLO-FaceV2 retained higher recall and F1-score, suggesting that the new framework is more conservative, prioritizing fewer false detections over maximum sensitivity. The ablation analysis showed that adding the capsule stage lifted accuracy from 93.10 to 93.62 percent and MCC from 0.9240 to 0.9287, while the DQN module measurably reduced detection flicker and abrupt bounding-box transitions compared with frame-wise variants, particularly during head movement and partial occlusion.
Real-time feasibility was verified under GPU-assisted inference: the system averaged 31.4 frames per second with 31.8 milliseconds of latency per frame, peak GPU memory usage of about 2.8 gigabytes, and a model size of 74.5 megabytes with 18.7 million parameters. Those figures comfortably exceed the standard 25 to 30 fps real-time threshold and suggest the framework could run on GPU-enabled edge devices such as NVIDIA Jetson Xavier or Jetson Orin. The authors note, however, that ultra-low-power embedded deployment would likely require model pruning, INT8 quantization, mixed-precision inference, or TensorRT conversion, and that the capsule-routing stage in particular could be lightened by reducing routing iterations or capsule dimensionality.
The researchers are candid about the study’s limits. Evaluation rested on a single primary dataset, and broader cross-dataset validation on benchmarks such as WIDER FACE, FDDB, and AFLW remains future work. The DQN-based stabilizer also differs from detector-tracker pipelines like YOLO-DeepSORT or YOLO-ByteTrack: it does not assign identities or build trajectories, so tracking-specific metrics such as MOTA, IDF1, and HOTA could not be computed on the available data. Still, by treating real-time face detection as a temporally dependent optimization problem rather than a stack of independent frame classifications, the work offers a compelling template for video analytics systems that must remain not just accurate, but steady, when the world refuses to hold still.
Subject of Research: A hybrid deep learning framework for temporally stable real-time face detection in unconstrained video streams
Article Title: An optimized deep learning framework for temporally stable real-time face detection in unconstrained video streams
Article References: Janani Pappu, P. E., & Devanthan, B. (2026). An optimized deep learning framework for temporally stable real-time face detection in unconstrained video streams. Discover Artificial Intelligence, 6(1), Article 1500. https://doi.org/10.1007/s44163-026-02275-z
Image Credits: AI Generated
DOI: 10.1007/s44163-026-02275-z
Keywords: face detection, computer vision, deep learning, YOLOv12, capsule networks, deep Q-network, reinforcement learning, Harris Hawks Optimization, temporal stability, real-time video, surveillance, biometrics
Cite Scienmag News
Blake Davidson. (October 16, 2026). AI System Keeps Face Detection Steady in Real-World Video Streams. Scienmag. https://scienmag.com/ai-system-keeps-face-detection-steady-in-real-world-video-streams/
Blake Davidson. "AI System Keeps Face Detection Steady in Real-World Video Streams." Scienmag, 16 October 2026, https://scienmag.com/ai-system-keeps-face-detection-steady-in-real-world-video-streams/. Accessed 16 October 2026.
Blake Davidson. "AI System Keeps Face Detection Steady in Real-World Video Streams." Scienmag. October 16, 2026. https://scienmag.com/ai-system-keeps-face-detection-steady-in-real-world-video-streams/








