iOS 12 Face Tracking During Rapid Head Movements
In iOS 12, Apple enhanced ARKit 2 to significantly improve facial expression mapping accuracy during rapid head movements by integrating hardware-level sensor fusion with advanced algorithmic tracking. By combining high-frequency inertial data from the device’s motion sensors with the TrueDepth camera's structural infrared grid, the operating system effectively isolates quick head rotations from subtle facial deformations. This ensures that features like Memoji and third-party AR face filters maintain seamless real-time tracking without expression lag, warping, or loss of calibration when a user moves quickly.
Hardware-Level Sensor Fusion
The foundation of iOS 12's tracking stability lies in sensor fusion. While the TrueDepth camera captures depth points via an infrared dot projector and reading camera at 60 frames per second, rapid head turns can introduce motion blur in optical feeds. To compensate, iOS 12 feeds low-latency data from the iPhone’s built-in gyroscope and accelerometer (Inertial Measurement Unit, or IMU) directly into ARKit's tracking pipeline. The system uses high-frequency IMU reads to anticipate the head's exact 6-degree-of-freedom (6DoF) trajectory, allowing the software to compensate for rapid shifts before the next optical frame is fully processed.
Decoupled Pose and Expression Estimation
A common issue in computer vision is misinterpreting rigid head rotation as non-rigid facial distortion (such as an opening mouth or raised brow). iOS 12 addresses this by mathematically decoupling global head pose estimation from local facial blend shape estimation:
- Global Pose Estimation: Calculates the head’s absolute position and angle relative to the device using a baseline rigid 3D skull model.
- Blend Shape Mapping: Tracks 50 discrete facial muscle movements (blend shapes) independently mapped onto localized zones.
Because global head orientation is calculated as a separate vector, sudden changes in head direction do not corrupt the localized calculations of expressions like winks, smiles, or jaw drops.
Predictive Modeling and Temporal Smoothing
Rapid head turns frequently cause brief frame drops, severe viewing angles, or partial occlusions where the TrueDepth camera temporarily loses sight of half the face. ARKit 2 in iOS 12 incorporates temporal filtering and predictive algorithms similar to extended Kalman filters. If tracking data becomes noisy due to high-velocity movement, the system relies on the user's immediate historical movement vectors to predict where the facial geometry should be on subsequent frames.
Instead of snapping abruptly when full visual contact is restored, the system applies a sub-perceptual smoothing transition. This dynamic filtering suppresses jitter and prevents blend shapes from snapping back to a neutral rest state during split-second optical dropouts.
Expanded Geometry and Occlusion Tolerance
iOS 12 expanded the tracking framework to include directional gaze tracking and tongue detection, which required more precise boundary mapping around the eyes and mouth. The updated framework tolerates sharper planar angles between the face and the lens. Even when a quick turn leaves the camera with an extreme profile view of the user, the facial mesh stays anchored to visible anatomical landmarks, extrapolating the occluded half until the head returns to a frontal orientation.