Abstract
We consider the problem of simultaneous sparse coding and anomaly detection in a collection of data vectors. The majority of the data vectors are assumed to conform with a sparse representation model, whereas the anomaly is caused by an unknown subset of the data vectors—the outliers—which significantly deviate from this model. The proposed approach utilizes the Alternating Direction Method of Multipliers (ADMM) to recover simultaneously the sparse representations and the outliers components for the entire collection. This approach provides a unified solution both for jointly sparse and independently sparse data vectors. We demonstrate the usefulness of the proposed approach for irregular heartbeats detection in Electrocardiogram (ECG) as well as for specular reflectance and shadows removal from natural images.
Similar content being viewed by others
Notes
The observant reader may notice that problem (5) is actually separable, implying that we can solve for each column of X independently from the others. Nevertheless, we choose in this paper a joint solver for two reasons: (i) Giving a unified view of the two problems (5 and 6); and (ii) Our approach loses nothing in terms of complexity nor elegance when compared to the independent sparse coding tasks.
Note that the related problem of a sparsely represented interference matrix E=ΨC, where Ψ is a dictionary and C is sparse, can be formulated as follows:
$$\begin{array}{*{20}l} \min\limits_{\mathbf{X},\mathbf{C}} \frac{1}{2}\|\mathbf{Y}-\mathbf{D} \mathbf{X}-{\Psi} \mathbf{C}\|_{F}^{2}+ \alpha\|\mathbf{X}\|_{1,p} + \beta\|\mathbf{C}\|_{1,1} , \end{array} $$and its solution can be also obtained using the proposed approach in this section.
All the results in this paper are reproducible with a MATLAB package that is freely available for distribution.
A total of six dictionaries were trained—each using all of the dimensionality-reduced samples from each segment.
This is in contrast to cast-shadows, where one part of an object is shadowed by another part.
References
Chandola, V., Banerjee, A., Kumar, V. (2009). Anomaly detection: a survey. ACM Computing Surveys, 41(3), 15:1–15:58.
Bruckstein, A.M., Donoho, D., Elad, M. (2009). From sparse solutions of systems of equations to sparse modeling of signals and images. Society for Industrial and Applied Mathematics Review, 51(1), 34–81.
Nguyen, N.H., Nasrabadi, N.M., Tran, T.D. (2011). Robust multi-sensor classification via joint sparse representation. In International conference on information fusion (FUSION).
Shekhar, S., Patel, V.M., Nasrabadi, M., Chellappa, R. (2012). Joint sparsity-based robust multimodal biometrics recognition. In The 12th European conference on computer vision (ECCV).
Cong, Y., Yuan, J., Liu, J. (2011). Sparse reconstruction cost for abnormal event detection. In Computer vision and pattern recognition (CVPR).
Zhao, B., Fei-Fei, L., Xing, E.P. (2011). Online detection of unusual events in videos via dynamic sparse coding. In Computer vision and pattern recognition (CVPR).
Levorato, M., & Mitra, U. (2012). Fast anomaly detection in smartgrids via sparse approximation theory. In Sensor array and multichannel signal processing workshop (SAM).
Cotter, S.F., Rao, B.D., Engan, K., Kreutz-Delgado, K. (2005). Sparse solutions to linear inverse problems with multiple measurement vectors. IEEE Transactions on Signal Processing, 53(7), 2477–2488.
Kong, D., Ding, C., Huang, H. (2011). Robust nonnegative matrix factorization using l21-norm. In The 20th ACM international conference on information and knowledge management(CIKM).
Dobigeon, N., & Févotte, C. (2013). Robust nonnegative matrix factorization for nonlinear unmixing of hyperspectral images. In The 5th workshop on hyperspectral image and signal processing: evolution in remote sensing (WHISPERS).
Boyd, S., Parikh, N., Chu, E., Peleato, B., Eckstein, J. (2010). Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1), 1–122.
Ince, T., Kiranyaz, S., Gabbouj, M. (2009). A generic and robust system for automated patient-specific classification of ecg signals. IEEE Transactions on Biomedical Engineering, 56(5), 1415–1426.
Ye, C., Kumar, B.V., Coimbra, M.T. (2012). Heartbeat classification using morphological and dynamic features of ecg signals. IEEE Transactions on Biomedical Engineering, 59(10), 2930–2941.
Mailhe, B., Gribonval, R., Bimbot, F., Lemay, M., Vandergheynst, P., Vesin, J. M. (2009). Dictionary learning for the sparse modelling of atrial fibrillation in ecg signals. In Internatioanl conference on acoustics, speech and signal processing (ICASSP).
Moody, G.B., & Mark, R.G. (2001). The impact of the mit-bih arrhythmia database. IEEE Engineering in Medicine and Biology Magazine, 20(3), 45–50.
Aharon, M., Elad, M., Bruckstein, A.M. (2006). K-svd: an algorithm for designing overcomplete dictionaries for sparse representation. IEEE Transactions on Signal Processing, 54(11), 4311–4322.
Beck, A., & Teboulle, M. (2009). A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM Journal on Image Science.
Szeliski, R. (2010). Computer vision: algorithms and applications. New York: Springer.
Artusi, A., Banterle, F., Chetverikov, D. (2011). A survey of specularity removal methods. Computer Graphics Forum, 30(11).
Basri, R., & Jacobs, D.W. (2003). Lambertian reflectance and linear subspaces. IEEE Transactions on Pattern Analysis and Machine Intelligence, 25(2).
Shashua, A. (1997). On photometric issues in 3d visual recognition from a single 2d image. International Journal of Computer Vision, 21(1–2).
Author information
Authors and Affiliations
Corresponding author
Additional information
A. Adler is the recipient of the 2011 Google European Doctoral Fellowship in Multimedia, and this research is partly supported by this Google Fellowship and partly by ERC Grant agreement no. 320649.
Appendix
Appendix
The update equation for X k+1 is obtained by solving:
The solution of Eq. (29) is computed from:
which results in:
and the update equation is given by:
Rights and permissions
About this article
Cite this article
Adler, A., Elad, M., Hel-Or, Y. et al. Sparse Coding with Anomaly Detection. J Sign Process Syst 79, 179–188 (2015). https://doi.org/10.1007/s11265-014-0913-0
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11265-014-0913-0