Hyperspectral anomaly detection method based on double-dictionary multi-scale collaborative representation
By using adaptive dual-window and local dictionary construction methods in hyperspectral images, combined with multi-scale fusion, the problem of insufficient accuracy and robustness in detection effects in the existing technology is solved, and higher detection accuracy and robustness are achieved. Great sex.
Patent Information
- Application Number
- CN202410522143.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-24
AI Technical Summary
Existing hyperspectral abnormal target detection methods are not accurate enough in complex detection scenarios, are difficult to adapt to abnormal targets of different sizes, and have insufficient robustness.
It uses adaptive dual-window construction based on super-pixel segmentation, combines local outlier factors and local background information statistical algorithms to construct a local anomaly dictionary and a local background dictionary, and enhances detection accuracy through the collaborative representation of dual dictionaries, using multi-scale fusion results Reduce missed detections and false detections.
It improves the detection accuracy and robustness of abnormal pixels, enhances the ability to perceive local details of the image, and can better locate and distinguish abnormal targets of different sizes.
Smart Images

Figure CN118691963A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of hyperspectral image target detection, and in particular to a hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation. Background Art
[0002] Hyperspectral remote sensing images can provide a complete and continuous spectral curve for ground objects, which is similar to the characteristics of a "fingerprint" because it covers multiple continuous bands, each of which corresponds to a different wavelength range, providing rich spectral information for the image, which can be used to distinguish different ground objects or targets. This uniqueness has made target detection receive more and more attention in many applications of hyperspectral remote sensing images. In practical applications, hyperspectral abnormal target detection can be applied to many fields, such as military, resource exploration, agricultural management, urban planning, etc.
[0003] Hyperspectral anomaly target detection based on representation model can overcome the limitations of statistical models while maintaining high computational efficiency, and relatively easily solve the data requirements and parameter adjustment problems in deep learning algorithms, so it has potential advantages in practical applications. The reasons that affect the anomaly detection effect of the representation model are mainly concentrated in the construction of the dictionary, the optimization solution of the representation model, and feature extraction. More complex detection scenarios and better and more accurate detection results require more complete and robust anomaly detection algorithms. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention discloses a hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation, which specifically includes the following steps:
[0005] Construct an adaptive dual window based on superpixel segmentation. The adaptive dual window can better fit the shape of abnormal targets and can adapt to abnormal targets of different sizes.
[0006] Determine the preset number P of superpixels of approximately equal size, and use the center point of each superpixel as the initial cluster center. Then calculate the cluster center and the distribution in its local area (i.e. 2S×2S, ) The distance between pixels. The distance metric is calculated using the spectral similarity and spatial similarity between pixels. The specific definition is as follows:
[0007]
[0008]
[0009]
[0010] y i and jRepresent the spectral vectors of the i-th and j-th pixels respectively, (x i ,y i ) and (x j ,y j ) denote the spatial coordinates of the i-th and j-th pixels, respectively. S is the preset size of the superpixel, and t is a trade-off parameter that balances spatial distance and spectral distance. At the end of each iteration, the anomaly will be merged into the nearby superpixel. The superpixel block containing the pixel is taken as its inner window w in , outer window w out Also according to the obtained adaptive inner window w in The height and width of the two are taken as the maximum value h max , set w out =3*h max , external window out If the size of is not an odd number, it is necessary to determine and make it an odd number so that the pixel to be tested is located in the center of the window.
[0011] If mod(w out ,2)==0,then w out =w out +1
[0012] The mod function is the modulus operator, which is used to determine w out Is it an even number? If it is an even number, add 1 to it.
[0013] The algorithm principle of using local outlier factors and local background information statistics is designed, and the pixels between the inner and outer windows are used to construct the local anomaly dictionary and the local background dictionary respectively;
[0014] Get the pixel set X between the inner and outer windows s ∈R s×B After that, s represents the number of pixels between the inner and outer windows, and B represents the band of pixels. The local outlier factor method is used to extract the anomaly dictionary. The specific steps of using the local outlier factor method to construct the local anomaly dictionary are as follows:
[0015] 1) First calculate the pixel set X s The Euclidean distance between two pixels in the pixel set is s , find the distance between its K nearest neighbors, defined as k distance , k distance Reflects the local density around the pixel to be tested. s The Kth distance neighbor of is set to N k (x s ), that is, all pixels within the Kth distance of the pixel, including the Kth distance. So pixel x t The number of pixels in the Kth neighborhood of |N k(x s )|≥K.
[0016] 2) Calculate the pixel set X s The reachable distance of each pixel in . The reachable distance refers to x s To N k (x s ) in pixels The maximum distance represents the local density of the pixel relative to its neighbors, which is defined as:
[0017]
[0018] in Represents the Euclidean distance between two pixels;
[0019] 3) Calculate the pixel set X s The local reachability density of each pixel in . The local reachability density is x s With N k (x s ), indicating the relative density of the pixel relative to its neighboring points. It is defined as:
[0020]
[0021] 4) Calculate pixel set X s The local outlier for each pixel in . A local outlier is a pixel x s The ratio of the average local reachable density of the neighboring points to the local reachable density of the pixel is defined as:
[0022]
[0023] Get pixel set X s The local outlier value of each pixel in the pixel set X s The local outliers of each pixel in are sorted from large to small, expressed as:
[0024] [LOF max1 ,LOF max2 ,...,LOF maxs ]
[0025] Select the pixels corresponding to the m largest local outliers to form the local anomaly dictionary X A . Where m <s。
[0026] Pixel Set X s After constructing the local anomaly dictionary, there are still a total of sm pixels remaining in the pixel set X s-m , using the local background information statistics method to calculate the pixel set X s-m The mean value μ of the spectral band of all pixels in band the covariance matrix C b , the calculation formula is:
[0027]
[0028]
[0029] Then the detection results of the remaining sm pixels are obtained, which are calculated as follows:
[0030] D RX (x i )=(x i -μ b ) T C b (x i -μ b )
[0031] Get pixel set X s-m The detection value of the pixel set X s-m The detection value of each pixel in is sorted from small to large, expressed as:
[0032] [D min1 ,D min2 ,...,D mins-m ]
[0033] Select the pixels corresponding to the first n minimum detection values to form the local background dictionary X B ;
[0034] Construct a distance weighting function between the pixel to be tested and the dual dictionary to increase the accuracy of anomaly detection in collaborative representation:
[0035] The distance weighted function W from the local anomaly dictionary A Defined as:
[0036]
[0037] Among them, x A1 ,x A2 ,...,x Am is the local exception dictionary X A The pixel atoms in W A Each element in the diagonal matrix represents the pixel to be tested and the local anomaly dictionary X A The inverse of the Euclidean distance of the pixel atoms in ω represents a very small positive number to avoid the unstable result caused by the distance being zero. m represents the number of pixels in the local anomaly dictionary;
[0038] Distance weighting function W of local background dictionary B Defined as:
[0039]
[0040] Among them, x B1 ,x B2 ,...,x Bn is the background dictionary dataset X B The pixel atoms in W B Each element in the diagonal matrix represents the pixel to be tested and the local background dictionary X B The Euclidean distance of the pixel atoms in . n represents the number of pixels in the local background dictionary.
[0041] A double distance weighted function is used to calculate the degree of abnormal detection of the pixel to be tested on two local dictionaries;
[0042] Apply local exception dictionary X A The objective function of collaborative representation is expressed as:
[0043]
[0044] The objective function is solved as:
[0045]
[0046] Using the local exception dictionary X A The calculated Euclidean distance between the pixel to be tested and its approximate value is expressed as:
[0047]
[0048] Apply local background dictionary X B The objective function of collaborative representation is expressed as:
[0049]
[0050] The objective function is solved as:
[0051]
[0052] Using local background dictionary X B The calculated Euclidean distance between the pixel to be tested and its approximate value is expressed as:
[0053]
[0054] The original hyperspectral image is upsampled and downsampled once by Gaussian kernel function to construct a multi-scale hyperspectral image set;
[0055] First, it is necessary to fuse the two anomaly estimation results obtained from the hyperspectral images of each scale in the hyperspectral image set. Here, the nonlinear fusion method is used to fuse the two anomaly estimations obtained using two local dictionaries. Nonlinear fusion can improve fault tolerance by integrating multiple results. Even if a method has problems, the positive results of other methods can still support the overall detection performance.
[0056]
[0057] Where M is the number of layers of the pyramid. Represents the anomaly detection result after the fusion of the two residuals of the first layer image. It represents the anomaly detection result after the fusion of two residuals of the original hyperspectral image. It represents the anomaly detection result after the two residuals of the third layer image are fused.
[0058] Because the result sizes on the first and third layers are different from the original sizes, we first use the normalization operator N(·) to unify the result images to the same size as the result F. 2 The same size, and then add them point by point to get the detection results of the first and third layers of two scale fusion Finally, in order to suppress the background and highlight the anomaly, the second layer result F 2 and Do weighted fusion, the weighted fusion calculation formula is as follows:
[0059]
[0060]
[0061]
[0062] in(·) max Indicates taking the maximum eigenvalue of the matrix. This adaptive scoring strategy helps improve detection performance. It integrates the anomaly detection results at multiple scales to make up for the limitations that may exist at a single scale and reduce missed detections and false detections.
[0063] Due to the adoption of the above technical scheme, the present invention provides a hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation, which can fuse multi-scale anomaly detection results to enhance the perception of local details of the image, thereby better locating abnormal targets. By constructing two local dictionaries to better distinguish between background and anomaly, it is helpful to improve the detection accuracy and robustness of abnormal pixels. Different from the traditional dual-window structure, an adaptive dual window is obtained by superpixel segmentation to better adapt to abnormal targets of different sizes. The local outlier factor and the local background information statistical algorithm are introduced to construct a dual dictionary, which are a local anomaly dictionary and a local background dictionary, respectively, so as to perform more accurate anomaly detection on the pixels to be tested. The similarity between the pixels to be tested and the pixels in the dual dictionary is used as a weighting function to better distinguish between background and anomaly. This helps to improve the detection accuracy and robustness of abnormal pixels. The original hyperspectral image is used to obtain a multi-scale image set, and finally the anomaly detection results of the collaborative representation of the hyperspectral image at multiple scales are fused, which can capture local detail information at different scales. The fusion of multi-scale anomaly detection results can enhance the perception of local details of the image, thereby better locating abnormal targets. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0065] Figure 1 is a flow chart of the method disclosed in the present invention;
[0066] Figure 2a-2b This is the groundtruth annotation map and detection result map of the Airport-A dataset;
[0067] Table 1 shows the AUC values of the proposed method and the comparison method on the Airport-A dataset. DETAILED DESCRIPTION
[0068] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:
[0069] like Figure 1 A hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation is shown, which specifically includes the following steps:
[0070] S1: Using superpixel segmentation to construct an adaptive dual window of hyperspectral images, it better fits the shape of abnormal targets and can adapt to abnormal targets of different sizes;
[0071] The specific method used in S1 is as follows:
[0072] S11: Adaptive dual-window method based on superpixel segmentation, taking the superpixel block containing the pixel as its inner window w in , outer window w out Based on the obtained adaptive inner window w in The height and width of the two are taken as the maximum value h max , set w out =3*h max , external window out If the size of is not an odd number, it is necessary to determine and make it an odd number so that the pixel to be tested is located at the center of the window;
[0073] S2: The local outlier factor algorithm and the local background information statistical algorithm are used to obtain the local anomaly dictionary and the local background dictionary between the inner and outer windows. s ∈R s×B After that, s represents the number of pixels between the inner and outer windows, and B represents the band of the pixels;
[0074] The specific method used in S2 is as follows:
[0075] S21: Calculate pixel set X s The Euclidean distance between two pixels in the pixel set is s , find the distance between its K nearest neighbors, defined as k distance , k distance Reflects the local density around the pixel to be tested. s The Kth distance neighbor of is set to N k (x s ), that is, all pixels within the Kth distance of the pixel, including the Kth distance. So pixel x t The number of pixels in the Kth neighborhood of |N k (x s )|≥K;
[0076] S22: Calculate pixel set X s The reachable distance of each pixel in . Represents the Euclidean distance between two pixels;
[0077]
[0078] S23: Calculate pixel set X sThe local reachability density of each pixel in ;
[0079]
[0080] S24: Calculate pixel set X s The local outlier value of each pixel in ;
[0081]
[0082] S25: Set the pixel to X s The local outliers of each pixel in are sorted from large to small, expressed as:
[0083] [LOF max1 ,LOF max2 ,...,LOF maxs ]
[0084] Select the pixels corresponding to the m largest local outliers to form the local anomaly dictionary X A . Where m <s;
[0085] S26: Pixel Set X s After constructing the local anomaly dictionary, there are still a total of sm pixels remaining in the pixel set X s-m , using the local background information statistics method to calculate the pixel set X s-m The mean value μ of the spectral band of all pixels in b and the covariance matrix C b , the calculation formula is:
[0086]
[0087]
[0088] Then the detection results of the remaining sm pixels are obtained, which are calculated as follows:
[0089] D RX (x i )=(x i -μ b ) T C b (x i -μ b )
[0090] Get pixel set X s-m The higher the detection value of the pixel, the closer the pixel is to the abnormal pixel. It is necessary to select pixels with low abnormality to form a local background dictionary. s-m The detection value of each pixel in is sorted from small to large, expressed as:
[0091] [D min1,D min2 ,...,D mins-m ]
[0092] Select the pixels corresponding to the first n minimum detection values to form the local background dictionary X B . Where m <s。
[0093] S3: By constructing a double distance weighted matrix from the pixel to the local anomaly dictionary and the local background dictionary, the similarity between the pixel to be tested and the background and the difference between the pixel to be tested and the anomaly are more comprehensively characterized;
[0094] The specific method used in S3 is as follows:
[0095] S31: Local exception dictionary X A The distance to the pixel to be tested is used as a weighted matrix, and the distance weighted function W of the local anomaly dictionary is used as the distance matrix. A Defined as:
[0096]
[0097] Among them, x A1 ,x A2 ,...,x Am is the local exception dictionary X A The pixel atoms in W A Each element in the diagonal matrix represents the pixel to be tested and the local anomaly dictionary X A The inverse of the Euclidean distance of the pixel atoms in ω represents a very small positive number to avoid the unstable result caused by the distance being zero. m represents the number of pixels in the local anomaly dictionary;
[0098] S32: Local background dictionary X B The distance to the pixel to be tested is used as a weighted matrix, and the distance weighted function W from the local background dictionary is used as the weighted matrix. B Defined as:
[0099]
[0100] Among them, x B1 ,x B2 ,...,x Bn is the background dictionary dataset X B The pixel atoms in W B Each element in the diagonal matrix represents the pixel to be tested and the local background dictionary X B The Euclidean distance of the pixel atoms in . n represents the number of pixels in the local background dictionary;
[0101] S4: further use the obtained local anomaly dictionary and local background dictionary to calculate the outlier value from two perspectives;
[0102] The specific method used in S4 is as follows:
[0103] S41: Apply local exception dictionary X A The objective function of collaborative representation is expressed as:
[0104]
[0105] The objective function is solved as:
[0106]
[0107] Using the local exception dictionary X A The calculated Euclidean distance between the pixel to be tested and its approximate value is expressed as:
[0108]
[0109] S42: Apply local background dictionary X B The objective function of collaborative representation is expressed as:
[0110]
[0111] The objective function is solved as:
[0112]
[0113] Using local background dictionary X B The calculated Euclidean distance between the pixel to be tested and its approximate value is expressed as:
[0114]
[0115] S5: Construct a multi-scale hyperspectral image set to increase the resolution of the image and perform anomaly detection at different scales;
[0116] The specific method used in S5 is as follows:
[0117] S51: Anomalies usually have different characteristics at different scales. Using multi-scale anomaly detection can capture these anomalies more comprehensively. For anomaly detection, it is crucial to retain as much hyperspectral image information as possible. By upsampling, the resolution of the image can be increased, which helps to retain more detail information. Downsampling helps to extract the macroscopic spectral trends of hyperspectral images. Such a multi-scale feature representation can describe the target more comprehensively and improve the accuracy of anomaly detection. Here, the hyperspectral image is only upsampled and downsampled once, with sampling multiples of 2 and 0.5 respectively. Together with the original hyperspectral image, there are a total of 3 sizes of hyperspectral images. The construction of multi-scale hyperspectral images can be achieved using Gaussian kernel functions. The form of Gaussian kernel functions is usually as follows:
[0118]
[0119] Where σ represents the standard deviation of the Gaussian function, and finally we get three scales of data sets for collaborative representation, denoted as G(M), M∈[1,2,3]. is the upsampled hyperspectral image, the second layer is the original hyperspectral image, the third layer is the downsampled hyperspectral image;
[0120] S6: Multi-scale collaborative fusion, fusing the results of different scales can reduce false detection and missed detection caused by improper scale selection;
[0121] The specific method used in S6 is as follows:
[0122] S61: First, the two anomaly estimation results obtained at each layer need to be fused. Here, the nonlinear fusion method is used to fuse the two anomaly estimations obtained using two local dictionaries. The false detection or missed detection problems that may occur in the single dictionary method can be alleviated by nonlinear fusion;
[0123]
[0124] Where M is the number of layers of the pyramid. Represents the anomaly detection result after the fusion of the two residuals of the first layer image. It represents the anomaly detection result after the fusion of two residuals of the original hyperspectral image. It represents the anomaly detection result after the two residuals of the third layer image are fused;
[0125] S62: Because the result sizes on the first and third layers are different from the original sizes, the two results of different sizes are first normalized using the normalization operator N(·) to unify the result images to the same size as the result F. 2 The same size, and then add them point by point to get the detection results of the first and third layers of two scale fusion Finally, the second layer result F 2 and Do weighted fusion, the weighted fusion calculation formula is as follows:
[0126]
[0127]
[0128]
[0129] in(·) maxIt represents the maximum eigenvalue of the matrix. This adaptive scoring strategy helps to improve the detection performance. After weighted fusion, the anomaly detection result of multi-scale collaborative representation is obtained.
[0130] Next, a dual-dictionary multi-scale collaborative representation hyperspectral anomaly detection method provided by the present invention will be evaluated and assessed on a set of public and real hyperspectral image datasets.
[0131] The experimental data is the Airport-A hyperspectral scene map, which was taken by the Airborne Visible\Infrared Imaging Spectrometer (AVIRIS) on November 9, 2011, in Los Angeles. After removing the water absorption and low signal-to-noise ratio bands, there are 205 spectral bands left, and a 100*100 area is cut out for our experiment. The spatial resolution of the data image is 7.1 meters. The scene map contains abnormal information such as two aircraft, and there are 87 abnormal pixels in total.
[0132] The results of the hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation provided by the present invention on hyperspectral image data are shown in the figure below: Figure 2a and Figure 2b As shown, the area under the curve (AUC) values in Table 1 were used to quantitatively analyze the test results.
[0133] Table 1
[0134]
[0135]
[0136] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A hyperspectral anomaly detection method based on dual-dictionary multi-scale collaborative representation, characterized in that include: An adaptive double window based on superpixel segmentation is constructed. The adaptive double window fits the shape of abnormal targets in the hyperspectral image, thereby adapting to abnormal targets of different sizes. Design local outlier factor and local background information statistical algorithm, use the pixels between inner and outer windows to construct local anomaly dictionary and local background dictionary respectively; Constructing a weighted function of the distance between the pixel to be tested and the dual dictionary, and using the weighted function to perform collaborative representation anomaly detection on the pixel to be tested; A collaborative representation anomaly detection method based on dual-dictionary distance weighting is used to obtain the degree of abnormality of the pixel to be tested in two local dictionaries. Based on the Gaussian kernel function, the original hyperspectral image is sampled to construct a multi-scale hyperspectral image set, and the images of different scales in the image set are subjected to anomaly detection based on the collaborative representation of dual dictionaries. The collaborative anomaly detection results at multiple scales are integrated to make up for the limitations of a single scale and reduce missed detections and false detections.
2. The method according to claim 1, characterized in that: When constructing an adaptive dual window based on superpixel segmentation: Determine the preset number P of superpixels of approximately equal size, calculate the distance between the cluster center and the pixels distributed in its local area, and use the spectral similarity and spatial similarity between pixels to calculate the distance metric, which is specifically defined as follows: Where N is the number of pixels in the hyperspectral image, y i and j Represent the spectral vectors of the i-th and j-th pixels respectively, (x i ,y i ) and (x j ,y j ) represent the spatial coordinates of the i-th and j-th pixels, respectively, S is the preset size of the superpixel, t is the trade-off parameter for balancing spatial distance and spectral distance. At the end of each iteration, the anomaly will be merged into the nearby superpixel, and the superpixel block containing the pixel will be taken as its inner window w in , outer window w out Based on the obtained adaptive inner window w in The height and width of the two are taken as the maximum value h max , set w out =3*h max , external window out If the size of is not an odd number, it is necessary to determine and make it an odd number so that the pixel to be tested is located at the center of the window; Ifmod(w out ,2)==0,then w out =w out +1 The mod function is a modulus operator, used to determine w out Is it an even number? If it is an even number, add 1.
3. The method according to claim 1, characterized in that: The pixels between the inner and outer windows are used to construct the local anomaly dictionary and the local background dictionary respectively: Get the pixel set X between the inner and outer windows s ∈R s×B After that, where s represents the number of pixels between the inner and outer windows, B represents the band of pixels, the steps of constructing the local anomaly dictionary using the local outlier factor method are as follows: Calculate pixel set X s The Euclidean distance between two pixels in the pixel set is s , find the distance between its K nearest neighbors, defined as k distance , k distance Reflects the local density around the pixel to be tested, pixel x s The Kth distance neighbor of is set to N k (x s ), that is, all pixels within the Kth distance of the pixel, including the Kth distance, so the pixel x t The number of pixels in the Kth neighborhood of |N k (x s )|≥K; Calculate pixel set X s The reachable distance of each pixel in , where the reachable distance is x s To N k (x s ) in pixels The maximum distance is defined as: in Represents the Euclidean distance between two pixels; Calculate pixel set X s The local reachability density of each pixel in , where the local reachability density is the pixel set x s With N k (x s ) is defined as: Calculate pixel set X s The local outlier of each pixel in , where the local outlier is the pixel x s The ratio of the average local reachable density of the neighboring points to the local reachable density of the pixel is defined as: Get pixel set X s The local outlier value of each pixel in the pixel set X s The local outliers of each pixel in are sorted from large to small, expressed as: [PRAISE max1 ,PRAISE max2 ,...,PRAISE maxs ] Select the pixels corresponding to the m largest local outliers to form the local anomaly dictionary X A , where m <s; Pixel Set X s After constructing the local anomaly dictionary, the remaining pixel set X consists of sm pixels s-m , using the local background information statistics method to build a local background dictionary, and using statistical methods to calculate the pixel set X s-m The mean value μ of the spectral band of all pixels in b and the covariance matrix C b , the calculation formula is: Get the detection results of the remaining sm pixels, calculated as follows: D RX (x i )=(x i -m b ) T C b (x i -m b ) Get pixel set X s-m The detection value of the pixel set X s-m The detection value of each pixel in is sorted from small to large, expressed as: [D min1 ,D min2 ,...,D mins-m ] Select the pixels corresponding to the first n minimum detection values to form the local background dictionary X B , where n <s-m。 4. The method according to claim 1, characterized in that: Construct a weighted function of the distance between the pixel to be tested and the dual dictionary: The distance weighted function W of the local anomaly dictionary A Defined as: Among them, x A1 ,x A2 ,...,x Am is the local exception dictionary X A The pixel atoms in W A Each element in the diagonal matrix represents the pixel to be tested and the local anomaly dictionary X A The reciprocal of the Euclidean distance of the pixel atoms in , ω represents a very small positive number, and m represents the number of pixels in the local anomaly dictionary; Distance weighting function W of local background dictionary B Defined as: Among them, x B1 ,x B2 ,...,x Bn is the background dictionary dataset X B The pixel atoms in W B Each element in the diagonal matrix represents the pixel to be tested and the local background dictionary X B The Euclidean distance of the pixel atoms in , n represents the number of pixels in the local background dictionary.
