Robust principal component analysis explained
Robust Principal Component Analysis (RPCA) is a modification of the widely used statistical procedure of principal component analysis (PCA) which works well with respect to grossly corrupted observations. A number of different approaches exist for Robust PCA, including an idealized version of Robust PCA, which aims to recover a low-rank matrix L0 from highly corrupted measurements M = L0 +S0. This decomposition in low-rank and sparse matrices can be achieved by techniques such as Principal Component Pursuit method (PCP), Stable PCP,[1] Quantized PCP,[2] Block based PCP,[3] and Local PCP.[4] Then, optimization methods are used such as the Augmented Lagrange Multiplier Method (ALM[5]), Alternating Direction Method (ADM[6]), Fast Alternating Minimization (FAM[7]), Iteratively Reweighted Least Squares (IRLS [8] [9] [10]) or alternating projections (AP).
Algorithms
Non-convex method
The 2014 guaranteed algorithm for the robust PCA problem (with the input matrix being
) is an alternating minimization type algorithm.
[11] The
computational complexity is
where the input is the
superposition of a low-rank (of rank
) and a
sparse matrix of dimension
and
is the desired accuracy of the recovered solution, i.e.,
\|\widehat{L}-L\|F\leq\epsilon
where
is the true low-rank component and
is the estimated or recovered low-rank component. Intuitively, this algorithm performs projections of the residual onto the set of low-rank matrices (via the
SVD operation) and sparse matrices (via entry-wise hard thresholding) in an alternating manner - that is, low-rank projection of the difference the input matrix and the sparse matrix obtained at a given iteration followed by sparse projection of the difference of the input matrix and the low-rank matrix obtained in the previous step, and iterating the two steps until
convergence.
This alternating projections algorithm is later improved by an accelerated version, coined AccAltProj.[12] The acceleration is achieved by applying a tangent space projection before project the residue onto the set of low-rank matrices. This trick improves the computational complexity to
with a much smaller constant in front while it maintains the theoretically guaranteed linear convergence.
Another fast version of accelerated alternating projections algorithm is IRCUR.[13] It uses the structure of CUR decomposition in alternating projections framework to dramatically reduces the computational complexity of RPCA to
O\left(max\{m,n\}r2log(m)log(n)log
\right)
Convex relaxation
This method consists of relaxing the rank constraint
in the optimization problem to the nuclear norm
and the sparsity constraint
to
-norm
. The resulting program can be solved using methods such as the method of Augmented Lagrange Multipliers.
Deep-learning augmented method
Some recent works propose RPCA algorithms with learnable/training parameters.[14] Such a learnable/trainable algorithm can be unfolded as a deep neural network whose parameters can be learned via machine learning techniques from a given dataset or problem distribution. The learned algorithm will have superior performance on the corresponding problem distribution.
Applications
RPCA has many real life important applications particularly when the data under study can naturally be modeled as a low-rank plus a sparse contribution. Following examples are inspired by contemporary challenges in computer science, and depending on the applications, either the low-rank component or the sparse component could be the object of interest:
Video surveillance
Given a sequence of surveillance video frames, it is often required to identify the activities that stand out from the background. If we stack the video frames as columns of a matrix M, then the low-rank component L0 naturally corresponds to the stationary background and the sparse component S0 captures the moving objects in the foreground.[15] [16]
Face recognition
Images of a convex, Lambertian surface under varying illuminations span a low-dimensional subspace.[17] This is one of the reasons for effectiveness of low-dimensional models for imagery data. In particular, it is easy to approximate images of a human's face by a low-dimensional subspace. To be able to correctly retrieve this subspace is crucial in many applications such as face recognition and alignment. It turns out that RPCA can be applied successfully to this problem to exactly recover the face.[15]
See also
Surveys
- Robust PCA
- Dynamic RPCA [18]
- Decomposition into Low-rank plus Additive Matrices [19]
- Low-rank models[20]
Books, journals and workshops
Books
- T. Bouwmans, N. Aybat, and E. Zahzah. Handbook on Robust Low-Rank and Sparse Matrix Decomposition: Applications in Image and Video Processing, CRC Press, Taylor and Francis Group, May 2016. (more information: http://www.crcpress.com/product/isbn/9781498724623)
- Z. Lin, H. Zhang, "Low-Rank Models in Visual Analysis: Theories, Algorithms, and Applications", Academic Press, Elsevier, June 2017. (more information: https://www.elsevier.com/books/low-rank-models-in-visual-analysis/lin/978-0-12-812731-5)
Journals
- N. Vaswani, Y. Chi, T. Bouwmans, Special Issue on “Rethinking PCA for Modern Datasets: Theory, Algorithms, and Applications”, Proceedings of the IEEE, 2018.
- T. Bouwmans, N. Vaswani, P. Rodriguez, R. Vidal, Z. Lin, Special Issue on “Robust Subspace Learning and Tracking: Theory, Algorithms, and Applications”, IEEE Journal of Selected Topics in Signal Processing, December 2018.
Workshops
- RSL-CV 2015: Workshop on Robust Subspace Learning and Computer Vision in conjunction with ICCV 2015 (For more information: http://rsl-cv2015.univ-lr.fr/workshop/)
- RSL-CV 2017: Workshop on Robust Subspace Learning and Computer Vision in conjunction with ICCV 2017 (For more information: http://rsl-cv.univ-lr.fr/2017/)
- RSL-CV 2021: Workshop on Robust Subspace Learning and Computer Vision in conjunction with ICCV 2021 (For more information: https://rsl-cv.univ-lr.fr/2021/)
Sessions
- Special Session on "Online Algorithms for Static and Dynamic Robust PCA and Compressive Sensing" in conjunction with SSP 2018. (More information: https://ssp2018.org/)
Resources and libraries
Websites
Libraries
The LRS Library (developed by Andrews Sobral) provides a collection of low-rank and sparse decomposition algorithms in MATLAB. The library was designed for moving object detection in videos, but it can be also used for other computer vision / machine learning tasks. Currently the LRSLibrary offers more than 100 algorithms based on matrix and tensor methods.
External links
Notes and References
- J. Wright. Y. Peng. Y. Ma. A. Ganesh. S. Rao. Robust Principal Component Analysis: Exact Recovery of Corrupted Low-Rank Matrices by Convex Optimization. Neural Information Processing Systems, NIPS 2009. 2009.
- S. Becker. E. Candes, M. Grant. TFOCS: Flexible First-order Methods for Rank Minimization. Low-rank Matrix Optimization Symposium, SIAM Conference on Optimization. 2011.
- Book: G. Tang. A. Nehorai. 2011 45th Annual Conference on Information Sciences and Systems. Robust principal component analysis based on low-rank and block-sparse matrix decomposition. 1–5. 2011. 10.1109/CISS.2011.5766144. 978-1-4244-9846-8. 17079459.
- Book: B. Wohlberg. R. Chartrand. J. Theiler. 2012 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Local principal component pursuit for nonlinear datasets. 3925–3928. 2012. 10.1109/ICASSP.2012.6288776. 978-1-4673-0046-9. 2747520.
- Z. Lin. M. Chen. L. Wu. Y. Ma. The Augmented Lagrange Multiplier Method for Exact Recovery of Corrupted Low-Rank Matrices. Journal of Structural Biology. 181. 2. 116–27. 1009.5055. 10.1016/j.jsb.2012.10.010. 23110852. 2013. 3565063.
- X. Yuan. J. Yang. Sparse and Low-Rank Matrix Decomposition via Alternating Direction Methods. Optimization Online. 2009.
- Book: P. Rodríguez. B. Wohlberg. 2013 IEEE International Conference on Image Processing. Fast principal component pursuit via alternating minimization. 69–73. 2013. 10.1109/ICIP.2013.6738015. 978-1-4799-2341-0. 5726914.
- C. Guyon. T. Bouwmans. E. Zahzah. Foreground Detection via Robust Low Rank Matrix Decomposition including Spatio-Temporal Constraint. International Workshop on Background Model Challenges, ACCV 2012. 2012.
- C. Guyon. T. Bouwmans. E. Zahzah. Foreground Detection via Robust Low Rank Matrix Factorization including Spatial Constraint with Iterative Reweighted Regression. International Conference on Pattern Recognition, ICPR 2012. 2012.
- C. Guyon. T. Bouwmans. E. Zahzah. Moving Object Detection via Robust Low Rank Matrix Decomposition with IRLS scheme. International Symposium on Visual Computing, ISVC 2012. 2012.
- Netrapalli. P. . Niranjan. U.. Sanghavi. S.. Anandkumar. A.. Jain. P.. Non-convex robust PCA. Advances in Neural Information Processing Systems. 27. 1107–1115. 2014. 2014arXiv1410.7660N. 1410.7660.
- H.. Cai. J.-F.. Cai. K.. Wei. Accelerated alternating projections for robust principal component analysis. The Journal of Machine Learning Research. 20. 1. 685–717. 2019. 2017arXiv171105519C. 1711.05519.
- H.. Cai. K.. Hamm. L.. Huang. J.. Li. T.. Wang. Rapid Robust Principal Component Analysis: CUR Accelerated Inexact Low Rank Estimation. IEEE Signal Processing Letters. 28. 116–120. 2021. 2021ISPL...28..116C. 2010.07422. 10.1109/LSP.2020.3044130. 222378834 .
- H.. Cai. J.. Liu. W.. Yin. Learned Robust PCA: A Scalable Deep Unfolding Approach for High-Dimensional Outlier Detection. Advances in Neural Information Processing Systems. 34. 16977–16989. 2021. 2110.05649 . 2021arXiv211005649C.
- Emmanuel J. Candes. Xiaodong Li. Yi Ma. John Wright. 2009. Robust Principal Component Analysis?. Journal of the ACM. 58. 3. 1–37. 10.1145/1970392.1970395. 7128002.
- T. Bouwmans. E. Zahzah. Robust PCA via Principal Component Pursuit: A Review for a Comparative Evaluation in Video Surveillance. Computer Vision and Image Understanding. 122. 22–34. 2014. 10.1016/j.cviu.2013.11.009.
- Basri . Ronen . Jacobs . David W. . 10.1109/TPAMI.2003.1177153 . 2 . IEEE Transactions on Pattern Analysis and Machine Intelligence . 218–233 . Lambertian Reflectance and Linear Subspaces . 25 . 2003.
- N. Vaswani. Namrata Vaswani . T. Bouwmans. S. Javed. P. Narayanamurthy. Robust PCA and Robust Subspace Tracking. Preprint. 35. 4. 32–55. 1711.09492. 2017. 2018ISPM...35d..32V. 10.1109/MSP.2018.2826566. 3691367 .
- T. Bouwmans. A. Sobral. S. Javed. S. Jung. E. Zahzahg. Decomposition into Low-rank plus Additive Matrices for Background/Foreground Separation: A Review for a Comparative Evaluation with a Large-Scale Dataset . Computer Science Review. 23. 1–71. 1511.01245. 2015. 10.1016/j.cosrev.2016.11.001. 2015arXiv151101245B. 10420698.
- Z. Lin. A Review on Low-Rank Models in Data Analysis. Big Data and Information Analytics. 1. 2. 139–161. 2016. 10.3934/bdia.2016001. free.