Multilinear Principal Component Analysis (MPCA)
Updated 23 Jul 2012
Matlab source codes for Multilinear Principal Component Analysis (MPCA)
The matlab codes provided here implement two algorithms presented in the paper "MPCA_TNN08_rev2012.pdf" included in this package:
Haiping Lu, K.N. Plataniotis, and A.N. Venetsanopoulos, "MPCA: Multilinear Principal Component Analysis of Tensor Objects", IEEE Transactions on Neural Networks, Vol. 19, No. 1, Page: 18-39, January 2008.
Algorithm 1: "MPCA.m" implements the MPCA algorithm described in this paper
Algorithm 2: "MPCALDA.m" implements the MPCA+LDA algorithm in this paper
Please refer to the comments in the codes, which include example usage on 2D data and 3D data below:
FERETC80A45.mat: 320 faces (32x32) of 80 subjects (4 samples per class) from the FERET database
USF17Gal.mat: 731 gait samples (32x22x10) of 71 subjects from the gallery set of the USF gait challenge data sets version 1.7
%[Verification of gait recognition results]%
To verify the gait recognition results presented in Table VII of the paper on a smaller version of the gait data in folder "USFGait17_32x22x10" so the numbers are not exactly the same
1. Run GRTestMPCA.m to get the results for ETG
2. Run GRTestMPCALDA.m to get the results for ETGLDA
testData.m specifies the data directory and probes to be processed
MADAll.m calculates the rank 1 and rank 5 identification rates using MAD measure (Table II) and symmetric matching.
GRResultsVerify.txt is the expected output in the command window.
The code needs the tensor toolbox available at http://csmr.ca.sandia.gov/~tgkolda/TensorToolbox/
This package includes tensor toolbox version 2.1 for convenience.
In all documents and papers reporting research work that uses the matlab codes provided here, the respective author(s) must reference the following paper:
 Haiping Lu, K.N. Plataniotis, and A.N. Venetsanopoulos, MPCA: Multilinear Principal Component Analysis of Tensor Objects", IEEE Transactions on Neural Networks, Vol. 19, No. 1, Page: 18-39, January 2008.
Haiping Lu (2023). Multilinear Principal Component Analysis (MPCA) (https://www.mathworks.com/matlabcentral/fileexchange/26168-multilinear-principal-component-analysis-mpca), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Dimensionality Reduction and Feature Extraction >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
1. The MPCA paper is updated with a typo (the MAD measure in Table II) corrected.
Emphasized the need for the tensor toolbox. Thanks to Chris' comment.
1. Minor code change