Abstract
This paper presents a two-stage approach for the automatic extraction of individuals and their attributes (gender, birth year) from photo and video albums. By modifying a MobileNet architecture to simultaneously predict age, gender, and identity features, the author achieves high performance with low computational overhead. The system uses hierarchical agglomerative clustering to group faces and aggregates predictions across clusters for refined accuracy. Experimental results show the approach is competitive with state-of-the-art deep networks while being significantly faster and more memory-efficient, making it ideal for mobile applications.
Introduction
The explosion of digital photography has made manual photo organization nearly impossible. Modern smartphones require automated systems to group photos by person and tag them with relevant metadata. However, performing these tasks—identity recognition, age estimation, and gender classification—typically requires three separate deep learning models. On mobile devices, this approach is often too resource-intensive, leading to high latency and excessive battery drain.
The Challenge of Mobile Photo Organization
Traditional "three-model" stacks are impractical for offline processing on smartphones. Beyond hardware constraints, training these models is complicated by "noisy" age datasets where ground truth labels are often derived from unreliable metadata. The author identifies a key opportunity: facial features for identity, age, and gender overlap significantly. A model trained to distinguish identities already possesses much of the information needed to estimate age and gender. The goal is to exploit this overlap to create a single, efficient "all-in-one" representation.
Multi-Output Architecture
The core of the proposed solution is a multi-output Convolutional Neural Network (ConvNet) built on a modified MobileNet v1 backbone. MobileNet is chosen for its efficiency on mobile hardware. The backbone is pre-trained on the VGGFace2 dataset to extract robust identity features.
As shown in the architecture diagram, the network branches after the base layers. One branch continues to provide identity features, while two additional heads are added: a fully connected layer with 100 outputs for age probabilities and a single-output head for gender probability. This shared backbone allows the model to learn "richer" features that benefit all three tasks simultaneously, boosting performance on age and gender tasks compared to standalone models.
The Processing Pipeline
The system operates in two distinct stages. In the first stage, the multi-output ConvNet processes all images to extract facial representations and initial attribute predictions.
The pipeline handles both static photos and video frames. For videos, a frame selection step ensures only the most informative faces are processed. After simultaneous feature extraction, the system moves to the second stage: Hierarchical Agglomerative Clustering. Faces are grouped based on identity features, but the distance metric is augmented with predicted age. This helps the system distinguish between family members who look alike but belong to different generations (e.g., a father and son).
Smart Age Estimation and Refinement
To handle noisy training data, the author avoids simple classification for age. Instead, age is estimated as the expected value of the top predictions. This smoothing technique reduces the impact of outliers and metadata errors. Once faces are clustered, the system performs "Cluster Refinement," aggregating all predictions within a cluster to produce a stable birth year and gender estimate for the individual.
Key Results
The efficiency of this approach is its standout feature. On a modern smartphone, the model processes a face in just 60–70 ms. Despite its small size—roughly 6.5 times smaller than a ResNet-50—it maintains high accuracy:
- Gender Recognition: 94.1% accuracy on the UTKFace dataset.
- Age Estimation: A Mean Absolute Error (MAE) of 5.44 years, outperforming many larger public models.
- Clustering Quality: Achieved a BCubed F-measure of 0.751 on the GFW dataset, matching or exceeding much larger, computationally expensive networks.
Conclusion
By consolidating identity, age, and gender recognition into a single, efficient MobileNet-based architecture, this research provides a practical path for sophisticated photo organization on mobile devices. The "identity-first" training strategy and the use of age-aware clustering demonstrate that efficiency does not have to come at the cost of accuracy. Future work will focus on the "aging problem"—tracking a person's appearance as it changes over decades—to further improve long-term album organization.
Summary updated