Abstract
Traditional Principal Component Analysis (PCA) has long been a staple of face recognition, yet it suffers from high computational costs and estimation inaccuracies due to the necessity of flattening 2D images into 1D vectors. While Two-Dimensional PCA (2DPCA) addressed computational efficiency by working directly with image matrices, it introduced a significant storage overhead. This paper presents Bidirectional 2DPCA (Bi-2DPCA), a method that performs dimensionality reduction in both horizontal and vertical directions sequentially. By leveraging a separable transform approach, Bi-2DPCA achieves the high compression rates of traditional PCA while maintaining the computational advantages of 2D matrix-based operations. Experimental results on the FERET and AT&T databases demonstrate that Bi-2DPCA is not only faster and more memory-efficient than PCA but also achieves comparable or superior recognition accuracy.
Introduction
For decades, the "Eigenfaces" method—based on Principal Component Analysis (PCA)—represented the gold standard for holistic face recognition. PCA operates by transforming 2D image matrices into high-dimensional 1D vectors. For instance, a $100 \times 100$ pixel image is treated as a 10,000-dimensional vector, resulting in a massive covariance matrix that is computationally expensive to solve and difficult to evaluate accurately with limited training samples.
To mitigate these issues, Two-Dimensional PCA (2DPCA) was developed. Unlike PCA, 2DPCA constructs an image covariance matrix directly from the original 2D matrices, significantly reducing the size of the matrix and the complexity of determining eigenvectors. However, 2DPCA has a notable drawback: it only reduces dimensionality in one direction (usually horizontal), leading to feature representations that require substantially more storage space than those produced by PCA. This paper introduces Bi-2DPCA to bridge this gap, providing a method that is as compact as PCA and as efficient as 2DPCA.
Methodology: The Bidirectional Approach
The core innovation of Bi-2DPCA is the application of dimensionality reduction in two sequential stages: horizontal projection followed by vertical projection.
- Horizontal Projection: The image matrix is projected onto an optimal set of axes to eliminate correlations between columns. This stage mirrors standard 2DPCA, concentrating the image's "energy" into a reduced number of columns.
- Vertical Projection: The resulting feature matrix is then transposed and projected again to eliminate correlations between rows.
This sequential pipeline effectively squeezes the most important visual information into the top-left corner of the matrix. The final representation is a small $p \times q$ matrix (e.g., $15 \times 15$), which is significantly smaller than the original image or the intermediate 2DPCA output.
Mathematically, the authors provide a theoretical foundation (Theorem 2) proving that this sequential approach is optimal for minimizing mean-square error (MSE). This distinguishes Bi-2DPCA from previous "separable" transforms like ST-KLT, which often abandoned the theoretical assumptions necessary to guarantee they remained good approximations of the Karhunen-Loève Transform (KLT).
Experimental Setup
The performance of Bi-2DPCA was evaluated using two prominent benchmarks:
- AT&T Face Database: Comprising 400 images of 40 individuals, used for initial testing and image reconstruction analysis.
- FERET Database: The industry standard for face recognition. The study utilized the 1996 standard subset, featuring a gallery of 1,196 images and four probe sets (fafb, fafc, Duplicate I, and Duplicate II) to test the algorithm against variations in expression, lighting, and time intervals.
Key Insights and Results
Computational and Storage Efficiency
Bi-2DPCA demonstrates a clear advantage in resource management. In tests on the FERET dataset, the total time for training and testing was 799 seconds for Bi-2DPCA, compared to 1,232 seconds for PCA.
More strikingly, the memory requirements for the transformation model (Projector Size) were drastically reduced. While PCA required 1,280,000 units of memory, Bi-2DPCA required only 2,320. This makes Bi-2DPCA highly suitable for systems with limited storage or real-time processing requirements.
Recognition Accuracy
Bi-2DPCA consistently matched or outperformed PCA across various distance metrics. Using the L1 distance metric on the full FERET set, Bi-2DPCA achieved a 55.08% recognition rate, surpassing PCA’s 53.89%. Furthermore, Bi-2DPCA showed greater stability across different metrics (L1, L2, and Cosine) compared to 2DPCA, indicating higher robustness for diverse deployment scenarios.
Visual Representation
Analysis of the "basis images" revealed that Bi-2DPCA captures meaningful facial structures. Unlike 2D-DCT basis images, which appear as generic checkerboard patterns, Bi-2DPCA basis images resemble ghostly face prototypes. This confirms that the algorithm is successfully learning the underlying structural features of human faces rather than just performing generic frequency analysis.
Conclusion and Future Work
Bi-2DPCA successfully addresses the storage limitations of 2DPCA while retaining its computational speed. By performing bidirectional projections, it provides a compact, efficient, and accurate framework for face coding. While the method shows some sensitivity to extreme environmental changes (such as significant lighting variations in the fafc probe set), its efficiency makes it a compelling candidate for various biometric applications. Future research may explore the application of the Bi-2DPCA framework to other 2D biometric data, such as palmprints or gait analysis, where maintaining structural integrity during dimensionality reduction is critical.
Summary updated