Abstract
Linear Discriminant Analysis (LDA) is a cornerstone of dimensionality reduction but suffers from the singularity problem, rigid Gaussian assumptions, and the lack of an automated mechanism for determining optimal dimensionality. This paper introduces Optimal Dimensionality Discriminant Analysis (ODDA), which leverages local neighborhood structures and a non-monotonic optimization criterion to overcome these limitations. Experimental results on synthetic and real-world image datasets demonstrate that ODDA effectively handles complex data distributions and automatically identifies the most discriminative subspace.
Introduction
Dimensionality reduction is essential for high-dimensional data analysis, particularly in image recognition. While Linear Discriminant Analysis (LDA) is widely used to maximize class separability, it faces three critical challenges:
- The Singularity Problem: In "small sample size" scenarios where features outnumber samples, the within-class scatter matrix becomes singular, preventing standard inversion.
- Gaussian Assumption: LDA assumes classes follow a single Gaussian distribution. It fails when classes are multimodal or have complex geometries, such as concentric circles.
- Dimensionality Selection: Standard LDA metrics are monotonic, providing no clear guidance on the optimal number of dimensions to retain, often leading to suboptimal feature selection.
Methodology: Neighborhood Scatter and Optimal Selection
ODDA addresses these issues through two primary innovations: neighborhood-based scatter matrices and a non-monotonic selection criterion.
Neighborhood Scatter Matrices
Unlike LDA, which calculates scatter based on global class means, ODDA focuses on local structures. It utilizes $k$-nearest neighbors to define "within-class" and "between-class" relationships.
By preserving local neighborhoods, ODDA avoids forcing distant clusters of the same class together, making it robust to multimodal distributions. This approach ensures that the algorithm captures the intrinsic geometry of the data rather than just its global statistics.
Non-monotonic Criterion for Optimal Dimensionality
The authors propose a criterion based on the weighted difference of scatter matrices. Crucially, this criterion is non-monotonic. The optimal dimensionality is determined by the number of positive eigenvalues of a specific derived matrix. A negative eigenvalue indicates that adding that specific dimension would introduce more noise than discriminative information, providing a natural, mathematically grounded stopping point for reduction.
2D Extension (2DODDA)
To better handle image data, the framework is extended to 2D matrices. 2DODDA operates directly on image matrices, preserving spatial relationships and reducing computational overhead compared to vector-based methods that require flattening images into long vectors.
Experimental Results
The performance of ODDA was evaluated on synthetic "toy" datasets and several benchmark image databases, including AT&T Faces, UMIST, COIL-20, and USPS Digits.
Synthetic Data: The Concentric Circle Test
In tests involving concentric circles—a classic failure case for LDA—ODDA successfully identified the optimal subspace required for separation. While LDA fails to find a useful projection for such non-Gaussian data, ODDA correctly identified that exactly 2 dimensions were optimal for these cases.
Real-World Benchmarks
ODDA and 2DODDA consistently outperformed standard LDA and its variants (NLDA, DLDA). On the AT&T dataset with limited training samples (n=2), 2DODDA achieved 85.5% accuracy, a 10% improvement over standard LDA. Furthermore, the algorithm automatically tuned the dimensionality for each dataset, selecting ~80 dimensions for AT&T and ~21 for USPS, validating its adaptive nature.
Discussion and Conclusion
ODDA represents a significant advancement in discriminant analysis by shifting focus from global means to local neighborhood structures. This shift resolves the singularity problem and allows for the effective processing of non-Gaussian data. While the method introduces hyperparameters like the number of neighbors ($k$) and utilizes iterative optimization for the 2D extension, its ability to automatically determine optimal dimensionality makes it a powerful tool for automated machine learning pipelines. Future work may focus on optimizing the computational cost of neighborhood graph construction for large-scale datasets.
Summary updated