Journal of Electrical and Computer Engineering

Journal of Electrical and Computer Engineering / 2012 / Article
Special Issue

Algorithms for Multispectral and Hyperspectral Image Analysis

View this Special Issue

Research Article | Open Access

Volume 2012 |Article ID 628479 | 7 pages | https://doi.org/10.1155/2012/628479

Target Detection Using Nonsingular Approximations for a Singular Covariance Matrix

Academic Editor: Xiaofei Hu
Received01 Apr 2012
Accepted07 Jun 2012
Published31 Jul 2012

Abstract

Accurate covariance matrix estimation for high-dimensional data can be a difficult problem. A good approximation of the covariance matrix needs in most cases a prohibitively large number of pixels, that is, pixels from a stationary section of the image whose number is greater than several times the number of bands. Estimating the covariance matrix with a number of pixels that is on the order of the number of bands or less will cause not only a bad estimation of the covariance matrix but also a singular covariance matrix which cannot be inverted. In this paper we will investigate two methods to give a sufficient approximation for the covariance matrix while only using a small number of neighboring pixels. The first is the quasilocal covariance matrix (QLRX) that uses the variance of the global covariance instead of the variances that are too small and cause a singular covariance. The second method is sparse matrix transform (SMT) that performs a set of K-givens rotations to estimate the covariance matrix. We will compare results from target acquisition that are based on both of these methods. An improvement for the SMT algorithm is suggested.

1. Introduction

The most widely used algorithms for target detection are traditionally based on the covariance matrix [1]. This matrix estimates the direction and magnitude of the noise in an image. In the equation for a matched filter presented in [1] we have 𝑅=π‘‘π‘‡Ξ¦πΊβˆ’1(π‘₯βˆ’π‘š),(1)π‘₯is the examined pixel, π‘š is the estimate of that pixel based on the surroundings, Φ𝐺 is the global covariance matrix, and 𝑑 is the target signature. In words, we can say that our matched filter for target detection will detect the target in a particular pixel π‘₯ if π‘₯ is different than its surroundings (π‘₯βˆ’π‘š), unlike the noise (controlled by Ξ¦πΊβˆ’1) and in the direction of the target. If the target signature is unknown, then the RX algorithm uses the target residual (π‘₯βˆ’π‘š) as its own match, that is, 𝑅=(π‘₯βˆ’π‘š)π‘‡Ξ¦πΊβˆ’1(π‘₯βˆ’π‘š),(2)Φ𝐺 is traditionally calculated as follows: Φ𝐺=1𝑁𝑁𝑖=1ξ€·π‘₯𝑖π‘₯βˆ’π‘šξ€Έξ€·π‘–ξ€Έβˆ’π‘šπ‘‡.(3) Although the equation is theoretically justified if the background is stationary, it is often used in cases where this is not true.

In target detection, the image is not normally statistically stationary; it will however have quasistationary β€œpatches” which connect to each other at the edges. When one estimates the mean and covariance matrix of the background of a particular pixel, the local neighboring pixels will have provided a better estimate than the pixels of the entire image. In [2], we show that much better results can be obtained if one uses a β€œquasilocal covariance matrix” (QLRX). In general terms, it uses the eigenvectors of the overall global matrix, but the eigenvalues are taken locally. This tends to lower the matched filter scores at edges in the data (when the image is going from one stationary distribution to another), but allows for accurate detection in less noisy areas.

The overall question of using a covariance matrix from local areas in which not enough data is sparse is actually a well-studied issue in the literature. In particular, in [3], Theiler et al. consider the sparse matrix rotation method for determining a covariance matrix based on limited data. In this paper, it is our intention to compare the two methods both in terms of their detection ability and their overall efficiency.

2. Local Covariance Matrix

Assume we are given a dataset 𝑋 which is composed of 𝑛 pixels with 𝑝 dimensions. Φ𝐺 is the covariance matrix of this dataset. An SVD (singular value decomposition) can be used to decompose the global covariance matrix [2] into eigenvectors and eigenvalues; we will refer to this as PCA (principal component analysis) space.

To compare the covariance matrix based on the local area surrounding a pixel and a matrix based on all the available data (referred to as global), consider the statistics of the dataset 𝑋=𝐸𝑇𝐺𝑋𝐺. Here 𝐸𝐺 is the rotating matrix based on the global eigenvectors [2], and 𝑋 is the dataset after rotation into the PCA subspace.

If 𝑋 is based on all the pixels in the image, then the covariance matrix of 𝑋 consists of a diagonal matrix with the global eigenvalues on the diagonal. However, if 𝑋 only contains the local surroundings, then the values on the diagonal of the covariance matrix of 𝑋 will represent the variances of the local data in the direction of the global eigenvectors.

Mathematically, using the dataset 𝑋, for every pixel we calculate the local covariance Φ𝐿 from the nearest neighbors. The diagonal 𝐷𝐿 of the local covariance matrix is the variance of the neighbors in PCA subspace as follows: 𝐷𝐿𝐸=diag𝑇𝐺Φ𝐿𝐸𝐺Φ=diag𝐿.(4) Since the local covariance is composed from a small number of samples, some of the variances may be inappropriately small or even cause a singular covariance. To avoid singularity, the variance matrix Ξ›QL will be the maximum between the variances of the global (Λ𝐺) covariance and the variances of local covariance in the PCA subspace (𝐷𝐿) as follows: Ξ›QLξ‚€Ξ›=max𝐺,𝐷𝐿.(5) In this way, if the local area of the pixel has a large variance in some bands, it will be whitened by the local variance; for the bands that have too small local variances that can even cause a singular covariance matrix, it will use the global variance. The quasilocal covariance will be Ξ¦QL=𝐸𝐺ΛQL𝐸𝑇𝐺.(6) In the PCA subspace it will simply be: ΦQL=Ξ›QL.(7) If we will calculate the RX in the PCA subspace, we will need fewer rotations, we will rotate only once all the data to the PCA subspace, and then we will get: ξ€·QLRX=Μƒπ‘₯βˆ’ξ‚π‘šπΏξ€Έπ‘‡Ξ›βˆ’1QLξ€·Μƒπ‘₯βˆ’ξ‚π‘šπΏξ€Έ=𝑝𝑖=1ξ€·Μƒπ‘₯π‘–βˆ’ξ‚π‘šπΏπ‘–ξ€Έ2πœ†π‘–.(8)ξ‚π‘šπΏβ€”the mean of the selected surrounding pixels in PCA subspace.

For subpixel targets, previous work [1] shows that it will be better to use the mean of 8 neighbors ξ‚π‘šπ‘”. This can be done assuming that the target does not affect the surroundings; if we fear that the target has entered the surrounding areas, then we will ignore those pixels and only use external pixels to them for our estimate.

In this method, we use sparse matrix rotations to find the nearest covariance matrix to the original one which is still nonsingular. We can use SVD to decompose the local covariance as follows: Φ𝐿=𝐸𝐿Λ𝐿𝐸𝑇𝐿,Ξ¦πΏβˆˆπ‘…π‘Γ—π‘.(9) Based on the fact that every eigenvectors matrix 𝐸 (or any unitary matrix) can be extracted from a product of 𝐾 spare orthonormal rotation matrix [3] we can write 𝐸𝐿=0ξ‘π‘˜=πΎβˆ’1πΈπ‘˜=πΈπ‘˜βˆ’1πΈπ‘˜βˆ’2⋯𝐸0.(10) Every rotation matrix πΈπ‘˜ is a Givens rotation operating on coordinates indices (π‘–π‘˜,π‘—π‘˜); the rotation will be on the surface that contains the vectors π‘–π‘˜,π‘—π‘˜ as follows: πΈπ‘˜=βŽ›βŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽœβŽπ‘–π‘˜π‘—π‘˜1β‹…ξ€·πœƒcosπ‘˜ξ€Έξ€·πœƒβ‹…β‹…sinπ‘˜ξ€Έξ€·πœƒβˆΆβ‹…βˆΆβˆ’sinπ‘˜ξ€Έξ€·πœƒcosπ‘˜ξ€Έβ‹…1⎞⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎟⎠.(11) With 𝐾=N2ξ€Έ rotation we can get from the identity matrix to any rotation matrix.

The concept of SMT is to start from the identity matrix, rotate every time two axes in the direction of the axis of the eigenvectors of the local covariance matrix, and to stop the rotations when it gives the best fit without becoming singular.

In other words, from a first set of data we can determine the correlations between the variables. If we did all the possible rotations, we would have diagonalized the matrix, but we cannot do this since we do not have enough data to simultaneously find all the local eigenvectors. Instead, we do these rotations on the most correlated ones, testing our new matrix by the degree that it provides good results on a second dataset. When our correction to the second dataset fails, we stop the diagonalizing procedure.

Mathematically, the rotation matrix 𝑇 will be all the selected rotations combined: 𝑇=0ξ‘π‘˜=πΎβˆ’1πΈπ‘˜=πΈπ‘˜βˆ’1πΈπ‘˜βˆ’2⋯𝐸0βŽ›βŽœβŽœβŽπ‘2⎞⎟⎟⎠,when𝐾<.(12) The variances will be the variances of the local covariance matrix in the direction of the rotation matrix 𝑇,Ξ›SMT=diag(𝑇′Φ𝐿𝑇) and the inversed covariance matrix will be Ξ¦βˆ’1SMT=π‘‡Ξ›βˆ’1SMT=𝑇′. to decide what rotation matrix is best we use the maximum likelihood covariance estimation and β€œleave-third-out” cross-validation. (Note that the use of leave-one-out cross-validation will give better results but will cost much more in computational efforts).

We divide the group of pixels into three groups. We take one third to be the tested pixels π‘Œβˆˆπ‘…(𝑛/3)×𝑝, and we use the other two thirds to make the approximation of the covariance Ξ¦SMT. After every rotation we calculate the likelihood of covariance Ξ¦SMT to describe correctly the group π‘Œ. We have processed to data to make sure that π‘Œ is zero mean as follows: 𝑃ΦSMT1(π‘Œ)=(2πœ‹)𝑝/2||Ξ¦SMT||1/2ξ‚†βˆ’1exp2ξ€½π‘Œtrπ‘‡Ξ¦βˆ’1SMTπ‘Œξ€Ύξ‚‡.(13) We do this three times, each time another third is being taken out as the test data π‘Œ; after combining the results of the three tests, we find the number of rotations that gives the best result (based on the highest value of 𝑃(π‘Œ)); we then use the full set and this number of rotations to get the final approximation of the covariance matrix (see Figure 1).

To select every time the rotations that will make the biggest improvement, we perform greedy minimization, that is, always choosing the next rotation that will contribute most to reduce the correlation between data along the axis of the matrix as follows: ξ€·π‘–π‘˜,π‘—π‘˜ξ€ΈβŸ΅argmax𝑖,𝑗𝑆2𝑖𝑗𝑆𝑖𝑖𝑆𝑗𝑗,(14)𝑆 is the current covariance matrix, (𝑖,𝑗) are indices of two rows in the matrix, and 𝑆𝑖𝑗,𝑆𝑖𝑖,𝑆𝑗𝑗 are the members in the matrix with those indices.

After we calculate the covariance matrix for SMT, we can use it for anomaly detection: RXSMT=ξ€·π‘₯βˆ’π‘šπΏξ€Έπ‘‡Ξ¦βˆ’1SMTξ€·π‘₯βˆ’π‘šπΏξ€Έ,(15)π‘₯β€”the tested pixel.

π‘šπΏβ€”the mean of the selected shrouding pixels in PCA subspace.

For subpixel targets as we stated previously, it will be better to use the mean of 8 neighbors π‘š8.

3. Dataset

Two datasets were used (Figure 2); a description of their origin can be found in Table 1 and in greater detail in [4].


NameSiteSensor nameNo. bandsWaveband ( πœ‡ m)Spat. Res. (m)Scene description

OBPOberpfaffenhofen (Ge)Hymap1260.44–2.454Airfield with agricultural area around
OBP1Oberpfaffenhofen (Ge)Hymap1260.44–2.454Agricultural area
OBP2Oberpfaffenhofen (Ge)Hymap1260.44–2.454Agricultural area

The two data cubes (OBP1 and OBP2) are real data from the Hymap sensor in which anomalies were inserted artificially by linearly mixing the spectra of a green paint pixel with the original background pixel. For display purposes, in Figure 2, images with full-pixel paint spectra are shown. For the evaluation of anomaly detection results, images with a mixing ratio of 0.33 (𝑃=33%) were used.

4. Results

We now wish to compare the SMT and QLRX algorithms. We will perform RX anomaly detection (2) using the covariance matrices given by each of the algorithms.

Since the dataset being used contains implanted subpixel targets without any danger of overlap into neighboring pixels, the mean in the calculation of (2) was always the mean of the eight nearest neighbors. However, we must consider the correct neighborhood for the calculation of the covariance matrix for SMT that provides the best results.

The first test was done using only the nearest 8 neighbors for the approximation of the covariance; in this test, it is very easy to see that QLRX results are superior to the SMT results. The ROC curves are given in Figure 3. We assume that the area of the target (and of any examined pixel) consists of the square region of dimension OWS by OWS (outer window). The target area itself has area GWS by GWS (guard window); for subpixel targets GWS will equal 1. Thus the neighboring pixels are those pixels which are located in the square set of pixels in the area OWS by OWS not contained in the inner GWS by GWS matrix.

In this picture is the result for 𝑃=33%, but the tests for 10, 25, 50, and 100 percents gave similar results.

Results from the OBP2 dataset were comparable.

When the OWS is larger, the results of the SMT improve dramatically.

For the dataset OBP1 we can see a large improvement as OWS increases. For this dataset QLRX gives better results, especially in the low CFAR (constant false alarm rate).

For the dataset OBP2, the differences between QLRX and SMT are reduced but still QLRX performs better in the low CFAR regime (see Figure 5).

Similar results were received for the cases in which 10, 25, 50, or 100 percent of the target is in the pixel.

The SMT has two main difficulties: first, the algorithm calculates a new covariance matrix at every point. This calculation needs a sequential set of rotations based on the training set followed by evaluations of the test set. Both sets are taken from the pixel surrounding only, so none of the information outside the selected group is used in the calculation. In QLRX, the eigenvectors are the same for all points (the eigenvectors of the global covariance). All that we need to do is measure the variance in the local area in the spectral direction of the eigenvalues and calculate the new covariance matrix. Second, the calculation of the SMT itself is highly dependent on the size of the β€œlocal” area. While a larger area improves the results, it also increases the time for calculation (see Table 2).


β€œNameβ€β€œOWSβ€β€œGWSβ€β€œQLRX” time in secondsβ€œSMT” time in secondsTime ratio

β€œOP1_T1_S10”91263845148
β€œOP1_T1_S33”91263794146
β€œOP1_T1_S100”91253820153

β€œOP1_T1_S10”71252781111
β€œOP1_T1_S33”71242769115
β€œOP1_T1_S100”71242770115

β€œOP1_T1_S10”5123196585
β€œOP1_T1_S33”5123196986
β€œOP1_T1_S100”5123196585

β€œOP1_T1_S10”3123119552
β€œOP1_T1_S33”3122118754
β€œOP1_T1_S100”3123120152

β€œOP2_T1_S10”91142135153
β€œOP2_T1_S33”91142105150
β€œOP2_T1_S100”91142095150

β€œOP2_T1_S10”71141480106
β€œOP2_T1_S33”71141481106
β€œOP2_T1_S100”71141464105

β€œOP2_T1_S10”511396174
β€œOP2_T1_S33”511496269
β€œOP2_T1_S100”511396074

β€œOP2_T1_S10”311255646
β€œOP2_T1_S33”311355543
β€œOP2_T1_S100”311455239

5. Improvements for SMT

A small change in the published method for doing SMT could lead to a large improvement.

In the original algorithm, the initial assumed axes of the covariance matrix are in the direction of the original dataset. Then the axes are rotated in pairs into the directions of the β€œlocal eigenvectors” to create new covariance matrices.

When we stop, some of the axes will be almost the same direction as the local covariance eigenvectors and some will be closer to the direction of the original axes.

Now since the original directions were random, that is, not related to the correlations between the axes, it is easy to see that there is no reason that this should be optimum. In particular, would it not make more sense to start from the global eigenvectors and rotate into the local ones? Another benefit we will get from this approach is that we will start the rotation from a condition that most probably will be closer to the optimum point (see Figure 6); within fewer rotations, we will get to the maximum likelihood. We will call this new algorithm SMT PCA.

For the OBP1 dataset (Figure 7), the result after starting with the subspace based on the global eigenvectors are better than QLRX when OWS is big (7,9). SMT-PCA gives better results than SMT for any OWS.

For the OBP2 dataset (Figure 8), the result after starting with the subspace based on the global eigenvectors are better than QLRX when OWS is big (7,9). SMT-PCA gives better results from SMT for any OWS (for OWS = 3 SMT and SMT-PCA almost the same).

Examining the number of rotations needed in the SMT and in the SMT-PCA (see Table 3).


β€œNameβ€β€œOWSβ€β€œGWS”Original SMT number of rotationsSMT after PCA number of rotationsRotations number ratio

β€œOP1_T1_S10”91384518512.1
β€œOP1_T1_S33”91379418312.1
β€œOP1_T1_S100”91382018062.1

β€œOP1_T1_S10”71278115081.8
β€œOP1_T1_S33”71276914981.8
β€œOP1_T1_S100”71277014571.9

β€œOP1_T1_S10”51196511771.7
β€œOP1_T1_S33”51196912031.6
β€œOP1_T1_S100”51196511221.8

β€œOP1_T1_S10”3111954422.7
β€œOP1_T1_S33”3111874072.9
β€œOP1_T1_S100”3112014212.9

β€œOP2_T1_S10”9121358392.5
β€œOP2_T1_S33”9121058402.5
β€œOP2_T1_S100”9120958272.5

β€œOP2_T1_S10”7114806472.3
β€œOP2_T1_S33”7114816412.3
β€œOP2_T1_S100”7114646352.3

β€œOP2_T1_S10”519614402.2
β€œOP2_T1_S33”519624352.2
β€œOP2_T1_S100”519604312.2

β€œOP2_T1_S10”315562032.7
β€œOP2_T1_S33”315552052.7
β€œOP2_T1_S100”315522062.7

The smaller the number of rotations, the less time needed for the calculation.

6. Conclusions

As a preliminary to our conclusions, please note that when we discuss using a small or large number of pixels, that in all cases the number of pixels used is less than the number of spectral bands.

Two methods in this paper have been considered for dealing with possibly singular covariance matrices. In the first (QLRX), we use global eigenvectors and local eigenvalues as an approximation of the inverse covariance matrix. In the second (SMT), we use an iterative process to slowly β€œtwist” our axes to come closer to those determined by the data.

In our two datasets, we found that if a small area was used for estimating the background, the QLRX algorithm was superior. For large areas of background, QLRX remains superior, although SMT greatly improves as follows: Numberofpixels=𝑝Numberofbandsπ‘›βˆˆ(0,1),(16)(i)the calculation time of QLRX is much smaller (two orders of magnitude) than both SMT and SMT-PCA,(ii)the calculation time of SMT PCA is less than the calculation time of the original SMT by about a factor of two,(iii)SMT-PCA and QLRX performance are better than those of SMT for any number of pixels,(iv)for a small number of pixels (𝑝/𝑛≀0.1), the QLRX performance is better than that of SMT-PCA,(v)for a large number of pixels (0.2≀𝑝/𝑛<0.1), the performance of SMT-PCA is better than that of QLRX.

Acknowledgments

The authors gratefully recognize the partial support for this work from the Paul Ivanier Center for Robotics Research and Production Management, Beer-Sheva, Israel. The test images are part of the Oberpfaffenhofen HyMAP scene, collected in 2004, during an airborne campaign sponsored by the Belgian Science Policy Office (BelSPO). Flights were operated by the German Aerospace Center (DLR).

References

  1. C. E. Caefer, M. S. Stefanou, E. D. Nielsen, A. P. Rizzuto, O. Raviv, and S. R. Rotman, β€œAnalysis of false alarm distributions in the development and evaluation of hyperspectral point target detection algorithms,” Optical Engineering, vol. 46, no. 7, Article ID 076402, 2007. View at: Publisher Site | Google Scholar
  2. C. E. Caefer, J. Silverman, O. Orthal, D. Antonelli, Y. Sharoni, and S. R. Rotman, β€œImproved covariance matrices for point target detection in hyperspectral data,” Optical Engineering, vol. 47, no. 7, Article ID 076402, 2008. View at: Publisher Site | Google Scholar
  3. J. Theiler, G. Cao, L. R. Bachega, and C. A. Bouman, β€œSparse matrix transform for hyperspectral image processing,” IEEE Journal on Selected Topics in Signal Processing, vol. 5, no. 3, pp. 424–437, 2011. View at: Publisher Site | Google Scholar
  4. D. Borghys and C. Perneel, β€œStudy of the influence of pre-processing on local statistics-based anomaly detector results,” in Proceedings of the Workshop on Hyperspectral Image and Signal Processing: Evolution in Remote Sensing (WHISPERS '10), pp. 1–4, June 2010. View at: Publisher Site | Google Scholar

Copyright © 2012 Nir Gorelik et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1288Β Views | 523Β Downloads | 1Β Citation
 PDF  Download Citation  Citation
 Download other formatsMore
 Order printed copiesOrder