This section reports the experimental validation of the proposed HNGT-Net for hyperspectral small-target detection under the scene-specific normal-only setting. The five evaluation benchmarks and the construction of the purified training data are introduced first.
3.1. Benchmark Datasets and Training Data Preparation
Our evaluation is conducted on four publicly available hyperspectral scenes and one Salinas-derived synthetic benchmark, which are selected to rigorously examine the capability of HNGT-Net in detecting small targets. The collection covers real-world scenes with naturally embedded anomalies as well as a simulated scene with synthetically injected targets, and the scenes differ considerably in composition, spectral characteristics, and background complexity. A property shared by all five benchmarks is that the anomalous targets are sparse and extremely small in footprint, occupying only a tiny portion of the image pixels: their anomaly-to-background pixel ratios range from approximately 0.08% to less than 1%. Such a setting closely reproduces the challenge of revealing unknown small anomalous targets under complex real-world sensing conditions, and therefore provides a demanding test bed for assessing the sensitivity and generalization capability of the proposed method under the scene-specific normal-only setting.
ABU Urban Scene 1 (abu-urban-2). The first dataset originates from the widely adopted Airport–Beach–Urban (ABU) benchmark collection. Its scene was recorded over an urban area in Gainesville by the Airborne Visible/Infrared Imaging Spectrometer (AVIRIS) sensor and comprises pixels, with 191 spectral bands retained after the water-absorption and low signal-to-noise ratio bands are removed. Buildings, roads, and vegetation dominate the scene, whereas sparsely distributed vehicles constitute the anomalous targets and cover only a minute fraction of the total pixels.
ABU Urban Scene 2 (abu-urban-4). The second ABU scene was likewise collected by the AVIRIS sensor, but over a different urban area, and it shares the spatial size and band count of abu-urban-2 ( pixels and 191 spectral bands). Because of its distinct urban layout, heterogeneous background materials, and anomalous objects of varying sizes and spectral signatures, this scene probes the adaptability of the method to different urban configurations under the same small-target constraint.
ABU Coastal Scene (abu-beach-3). The third ABU scene was imaged by the AVIRIS sensor over a coastal area in San Diego and likewise contains pixels with 191 spectral bands. Sandy beach, seawater, and coastal vegetation form the background, and the anomalies correspond to small fishing-related objects. Owing to the extremely low anomaly pixel ratio and the high spectral similarity between certain anomalous pixels and the surrounding beach background, this scene is particularly challenging for small-target detection.
Pavia Centre urban benchmark (PaviaC). PaviaC is an urban ROSIS scene collected over central Pavia, Italy. The original scene spans pixels and provides 102 spectral bands covering the wavelength range of 430–860 nm; following the standard protocol in the hyperspectral anomaly detection literature, a representative sub-image is cropped from it for evaluation. Buildings, roads, water bodies, and shadow regions are intermixed in the scene, and the anomalous targets—bridge structures and barren earth along the pier—exhibit spectral characteristics distinct from the dominant background materials while accounting for less than 0.5% of the total pixels.
Salinas-derived synthetic benchmark (Salinas simulate). The last benchmark is a synthetic anomaly detection dataset constructed upon the real Salinas scene, which was collected by the AVIRIS sensor over an agricultural test site in Salinas Valley, California. The image consists of pixels and 204 spectral bands after the water-absorption and noisy bands are removed. Synthetic anomalous targets are embedded into the genuine background through a linear mixing model: twelve square-shaped anomalous regions are arranged in close proximity to one another, with two targets per side length from 1 to 6 pixels. These regions contain anomalous pixels out of total pixels, corresponding to approximately 0.16% of the image. The anomalous signatures produced by this controlled linear spectral mixing remain spectrally coherent with the surrounding background while retaining discriminability for evaluation, making this dataset an extremely challenging micro-target detection scenario. The 1–6 pixel side-length range provides a controlled test bed for assessing the sensitivity of detection methods to targets at and below the spatial-resolution limit.
Table 1 summarizes the key characteristics of the five datasets.
Normal-only training data preparation. The adopted supervision protocol requires the training set to contain only purified background pixels. Each benchmark provides a raw hyperspectral cube together with a pixel-level ground-truth (GT) mask, where 1 marks an anomalous pixel and 0 marks background. A background purification procedure is therefore applied to obtain a purely normal training set. In the first step, all background pixels are extracted according to the GT mask (), and the per-band mean and standard deviation of these pixels are computed. In the second step, the anomalous regions () are located and filled with synthetically generated background values, so that anomalous information is eliminated while local spatial continuity is preserved. Concretely, an anomalous pixel at spectral band b is replaced by , where , and is a noise scaling factor. The injected Gaussian perturbations preserve stochastic spectral variability in the filled pixels, avoiding unrealistically smooth replacements and reducing the risk that the network memorizes artificial holes. The purified image is then stored as a .mat file under the variable name data, and its GT mask is reset to all zeros to mark a completely anomaly-free image. Consequently, the student network is exposed exclusively to normal spectral–spatial patterns during training, which enforces the normal-only supervision constraint. The GT mask is used only to construct the purified training image and is not used in the optimization objective. Because purification and model training are performed separately for each evaluation scene, whereas testing uses the corresponding original image, this protocol is more accurately characterized as scene-specific normal-only, or transductive, learning. It should not be interpreted as strict cross-scene, cross-sensor, or cross-domain transfer. A strict transfer protocol would require training on one set of scenes or sensors and testing on completely different scenes or sensors without target-scene purification or adaptation; evaluating such a protocol constitutes an important direction for future work.
Normal-only training data preparation. The adopted supervision protocol requires the training data to contain only normal background information. For each benchmark, the original hyperspectral cube is denoted by , where H, W, and B represent the image height, width, and number of spectral bands, respectively. The corresponding pixel-level ground-truth (GT) mask uses 1 to mark an anomalous pixel and 0 to mark a background pixel. To prevent anomalous spectra from participating in the training process, a background-purification procedure is performed before the input cube is supplied to HNGT-Net.
First, all pixels satisfying
are extracted from the original cube. Let
and
denote the sets of background and anomalous pixels, respectively. For the
bth spectral band, the mean and standard deviation of the background pixels are calculated as
These statistics characterize the band-wise spectral distribution of the normal background in the current scene.
Second, all positions satisfying
are located, and their original anomalous spectra are removed. Direct deletion is not adopted because it would alter the spatial dimensions of the hyperspectral cube. Likewise, replacing every anomalous pixel with the same mean spectrum would produce unnaturally smooth regions that could be memorized by the network. Instead, each anomalous pixel is filled with a stochastic background value. Specifically, the purified value at anomalous pixel
i and spectral band
b is generated as
where
is the noise-scaling factor used in all experiments. The original values of the background pixels are retained:
The band-dependent Gaussian perturbation preserves a limited amount of stochastic spectral variability in the filled pixels. Consequently, the replacement regions remain statistically compatible with the surrounding background and do not form constant artificial holes. If a scene contains no labeled anomalous pixel, the original hyperspectral cube is directly retained.
After the replacement operation, the purified cube preserves the same spatial and spectral dimensions as the original image. The associated GT mask is reset to an all-zero matrix, indicating that every spatial position in the resulting training cube is treated as normal. Therefore, the original GT information is used only during this offline purification procedure and is not provided to the network during parameter optimization.
Before training, invalid numerical entries, including NaN and infinite values, are replaced with finite values. Each spectral band of the purified cube is then independently normalized to the interval
:
where
is a small constant used to avoid numerical instability. If a spectral band has zero dynamic range, its denominator is set to one. The normalized cube is subsequently rearranged from
to
to match the network input format.
Because each benchmark contains one complete hyperspectral scene, the entire purified cube is treated as one training sample, with the batch size set to 1 and sample shuffling disabled. The number of input channels is automatically adjusted according to the number of spectral bands in the current scene. During each training epoch, the normalized normal cube is forwarded through the fixed teacher branch and the trainable student branch. The teacher provides the reference spectral–spatial representations, whereas the student and its feature-projection layer are optimized using the joint objective described in
Section 2. Only the student-related parameters receive gradient updates. Adam is adopted for optimization, and the gradient norm is clipped to 0.5 before each parameter update to improve numerical stability. An iteration is discarded if the computed loss is NaN, infinite, or greater than
. After the prescribed number of epochs, the scene-specific model parameters are saved for subsequent anomaly detection. Consequently, the complete preparation and training sequence is given by raw-cube loading, background-statistics estimation, anomalous-pixel replacement, band-wise normalization, teacher–student forward propagation, loss calculation, and student-parameter updating.
3.2. Detection Performance Comparison
The experimental platform is the Wuhan node of the National Supercomputing Internet (SCNet), administered by Sugon Intelligence Computing Information Technology Co., Ltd., Beijing, China. Every run is executed inside a Kubernetes-orchestrated container instance allocated with seven cores of a Hygon C86-7380 processor (32-core, 2.0 GHz base frequency), 60 GB of DDR4 system memory, and one Hygon Deep Computing Unit (DCU) accelerator built on the AMD CDNA-compatible gfx906 architecture with 16 GB of HBM2 memory. GPU acceleration is delivered through the ROCm-compatible Hygon DeepTensorKit (DTK) software stack, version 24.04, and the environment variable HSA_OVERRIDE_GFX_VERSION=9.0.6 is exported so that the ROCm runtime correctly recognizes the gfx906 device. All compared models are implemented in Python 3 and executed on a single DCU card within this containerized environment.
Benchmarking is performed against six representative detectors, covering two classical shallow models and four recent deep learning-based models. The former category comprises the Local Reed–Xiaoli detector (LRX) [
12] and the Collaborative Representation-based Detection (CRD) [
21], while the latter comprises the autoencoder-driven anomaly detection network (Auto-AD) [
44], the Deep Feature Aggregation Network for Hyperspectral Anomaly Detection (DFAN-HAD) [
45], the non-local and local feature-coupled self-supervised network (NL2Net) [
46], and the Dual-window-inspired reconstruction Network (DirectNet) [
47].
AUC-based quantitative evaluation.
Table 2 reports the detection accuracy of HNGT-Net and all baseline detectors across the five benchmarks. With an average AUC of 0.9953, HNGT-Net ranks first among all compared methods, exceeding the strongest baseline DirectNet (0.9870) by 0.83 percentage points and outperforming the classical LRX (0.9436) and CRD (0.9727). Equally importantly, the per-dataset AUCs of HNGT-Net lie within 0.9856–0.9996; their population standard deviation is approximately 0.00535, the smallest among the compared methods. Such stability suggests that the three-level consistency-transfer strategy learns transferable normal-feature representations that remain reliable under diverse sensing scenarios.
The remaining methods behave considerably less evenly. Driven purely by reconstruction error, Auto-AD records the lowest mean AUC (0.8077) and collapses on the abu-urban-4 scene (0.5444), which exposes the inherent fragility of reconstruction-only discrimination when small targets are embedded in heterogeneous backgrounds. NL2Net posts the best individual scores on abu-urban-2 (0.9994), abu-urban-4 (0.9966), and PaviaC (0.9997), yet it degrades markedly on abu-beach-3 (0.9259) and Salinas simulate (0.9279), revealing a pronounced sensitivity to scene-dependent spectral characteristics. DFAN-HAD follows a similar pattern: it leads on abu-beach-3 (0.9999) but falls to 0.9625 on abu-urban-4. Taken together, these results indicate that HNGT-Net achieves a favorable balance between detection accuracy and stability across the evaluated scenes under scene-specific normal-only conditions.
Because overall AUC accumulates detection performance across the entire false-alarm range, it tends to saturate when ROC curves lie close to the upper-left corner and therefore provides limited information about performance in the low-FPR regime that is critical for real-world surveillance. To obtain a more operationally meaningful assessment, we additionally report the detection probability
evaluated at fixed false-alarm rates
. The results are summarized in
Table 3.
As shown in the table, although AUC spans a narrow interval of 0.9856–0.9996, the metrics uncover substantial scene-dependent differentiation that is invisible to the full AUC. At the most stringent threshold , the proposed method attains on Salinas simulate, demonstrating that the topology-transfer objective and hard-negative separation preserve sufficient discriminative cues for 1–6-pixel micro-targets even under a one-in-ten-thousand false-alarm constraint. PaviaC also exhibits strong low- performance ( at , rising sharply to at ), confirming that the structural and Laplacian consistency terms effectively capture the bridge-structure anomalies in this spectrally heterogeneous scene.
On abu-urban-2 and abu-beach-3, the method achieves moderate values at (0.2516 and 0.1818, respectively) and improves monotonically with relaxed , reaching on abu-beach-3 at . The abu-urban-4 scene presents the greatest challenge: its anomalous targets are extremely sparse and spectrally subtle against a complex urban background, which intrinsically suppresses at ultra-low . Nevertheless, the method recovers to at while maintaining AUC , indicating that the learned topology still encodes useful discriminative information once a modest false-alarm tolerance is permitted.
Moreover, three of the five scenes (abu-urban-2, PaviaC, and Salinas simulate) achieve perfect detection () at , which confirms that the proposed framework can eliminate missed detections entirely when the operational system tolerates a one-percent false-alarm rate. Collectively, these low- results demonstrate that HNGT-Net maintains practical detection capability for micro-scale targets under the stringent false-alarm constraints required by real-world remote-sensing surveillance, well beyond what saturated AUC values alone can convey.
To evaluate the sensitivity of HNGT-Net to micro-scale targets of varying spatial extent, the Salinas-derived synthetic dataset is further analyzed by grouping anomalous targets according to their side lengths. The scene contains twelve synthetic anomalous regions that can be stratified into six size classes from
to
pixels, with two targets per class.
Table 4 reports the detection performance for each size group.
Several clear trends emerge from the stratified results. First, detection capability improves monotonically with target size at stringent false-alarm rates. At , the pixel targets are not detected (), reflecting the fundamental difficulty of resolving single-pixel anomalies against complex agricultural backgrounds. As target size increases to pixels, rises sharply to , and for pixels it reaches . This progressive improvement confirms that the topology-transfer objective successfully aggregates spectral–spatial evidence from neighboring pixels, enabling reliable detection once the target occupies a sufficient spatial footprint.
Second, at the relaxed threshold , even the smallest targets achieve perfect detection (), and only the group falls slightly below saturation (). This indicates that while sub-pixel and single-pixel targets remain challenging under ultra-low false-alarm constraints, the method can recover them entirely once a modest false-alarm tolerance is permitted. The AUC values across all size groups remain consistently high (–), demonstrating that the ranking-based metric is less sensitive to target size than the operationally relevant metrics.
Third, the and groups exhibit the strongest low- performance ( and at , respectively), suggesting that targets occupying sixteen or more pixels provide sufficient spectral–spatial contrast for the graph-Laplacian and structural consistency terms to discriminate effectively. Conversely, the intermediate group shows slightly lower at () than the group, which may be attributed to the particular spectral mixture coefficients and background configuration at those target locations.
Overall, these stratified results validate that HNGT-Net maintains robust detection capability for micro-scale targets down to pixels under stringent false-alarm constraints, and achieves perfect or near-perfect detection for all target sizes at . The degradation for single-pixel targets at ultra-low is expected and consistent with the fundamental limits of spatial resolution in hyperspectral anomaly detection.
ROC behavior.
Figure 2 presents the three-dimensional waterfall ROC curves of HNGT-Net and the competing methods on the five benchmark scenes. Overall, HNGT-Net remains within the leading group across all datasets, demonstrating a favorable trade-off between the true-positive rate and the false-positive rate. On abu-urban-2, HNGT-Net achieves an AUC of 0.9989 and performs comparably to the best-performing NL2Net (0.9994), while outperforming the remaining detectors. On abu-urban-4, HNGT-Net obtains an AUC of 0.9856, ranking second behind NL2Net (0.9966) and maintaining a clear advantage over the other competing methods. On PaviaC, the ROC curves of HNGT-Net, NL2Net, and DFAN-HAD are concentrated near the upper-left region, with AUC values of 0.9991, 0.9997, and 0.9988, respectively, indicating similarly strong detection performance at low false-positive rates. For abu-beach-3, DFAN-HAD, LRX, and CRD achieve the three highest AUC values, whereas HNGT-Net remains competitive with an AUC of 0.9935 and slightly exceeds DirectNet (0.9924). On Salinas simulate, HNGT-Net provides the best overall performance, achieving an AUC of 0.9996 and a rapidly rising ROC curve, followed by DirectNet with an AUC of 0.9945. These results show that HNGT-Net provides consistently high detection accuracy across scenes, although the relative advantages of individual competing methods vary with the spectral and spatial characteristics of each dataset.
Visual inspection of detection maps.
Figure 3 provides a scene-by-scene visual comparison of the anomaly score maps produced by all methods, revealing several consistent patterns.
On the abu-urban-2 scene, HNGT-Net renders the anomalous vehicle targets as compact, high-intensity bright spots embedded in an almost entirely dark background. LRX and CRD, by contrast, respond with only a few dim, barely perceptible pixels that convey little of the true spatial extent of the anomalies. Auto-AD produces diffuse background activation together with blurred anomaly contours; DFAN-HAD overlays the map with stripe-shaped background artifacts that heavily mask the targets; and NL2Net, although it detects most anomalies, leaves a visible background haze that reduces spatial fidelity.
The abu-urban-4 scene separates the methods even more clearly. LRX, CRD, NL2Net, and DirectNet yield only faint, poorly defined responses and therefore fail to localize the anomalous targets in any meaningful way. DFAN-HAD finds the targets but at relatively low contrast, and Auto-AD raises heavy background clutter that conceals them. HNGT-Net instead delivers the brightest and most compact anomaly localization while keeping background interference minimal.
On the abu-beach-3 coastal scene, every method succeeds in detecting the anomalous fishing-related targets, albeit with markedly different background quality. LRX and NL2Net offer clean backgrounds with well-delimited target regions. HNGT-Net again returns the brightest and most compact anomaly response, at the cost of a small amount of background misactivation along the shoreline. CRD, Auto-AD, and DFAN-HAD, on the other hand, are hampered by severe clutter induced by sand textures, which partially buries the true anomalies.
For the PaviaC scene, LRX produces no usable anomaly response at all. CRD, Auto-AD, DFAN-HAD, and NL2Net suppress the background insufficiently, so that background structures mingle with target localization in cluttered detection maps. DirectNet keeps the background clean and correctly detects all bridge-structure targets along the diagonal pier, although its anomaly regions are less crisp than those of HNGT-Net. The proposed HNGT-Net provides the brightest and most compact target localization; its only visible flaw is that one edge of the bridge structure is mistakenly highlighted as anomalous.
On the Salinas simulate scene, LRX reveals almost none of the six synthetically embedded anomalous squares. CRD, Auto-AD, DFAN-HAD, and NL2Net respond excessively along the agricultural field boundaries, which seriously undermines the visibility of the true targets. Both DirectNet and HNGT-Net suppress the background cleanly and recover all anomalous targets, with HNGT-Net yielding markedly brighter and more sharply delineated anomaly regions than DirectNet. Overall, these qualitative comparisons confirm that the topology-transfer learning and hard-negative separation mechanisms jointly equip HNGT-Net with accurate detection and high spatial fidelity for small targets across diverse sensing scenarios.
Detailed visual analysis of the selected regions of interest. To provide a more intuitive assessment of spatial detection quality,
Figure 4 presents enlarged comparisons between the GT maps and the HNGT-Net detection results. Each row corresponds to one dataset, while the three columns show the complete detection map with the selected region of interest (ROI), the enlarged GT map, and the corresponding enlarged HNGT-Net response, respectively. These enlarged regions permit target localization, boundary preservation, response continuity, and background interference to be examined at the pixel level. For the ABU-Urban-2 scene (
Figure 4a–c), the selected ROI contains a dense group of spatially adjacent anomalies with different shapes and sizes. HNGT-Net assigns strong responses to most anomalous objects and preserves their overall spatial distribution. Several closely spaced targets remain distinguishable instead of being merged into one continuous response. Some detected regions extend slightly beyond their GT boundaries, indicating limited response diffusion around high-contrast targets; nevertheless, the dominant responses remain concentrated within the actual anomalous region, while the surrounding homogeneous background is largely suppressed. For ABU-Urban-4 (
Figure 4d–f), the enlarged region includes isolated anomalies with noticeably different spatial extents. HNGT-Net produces prominent responses at the corresponding locations and maintains the separation between these objects. Both compact targets and relatively large anomalies can be distinguished from the surrounding background, showing that the detector is not restricted to a single target scale. Although weak residual responses occur around several target boundaries, the response maxima remain spatially consistent with the GT locations. In ABU-Beach-3 (
Figure 4g–i), the GT contains one dominant compact anomaly in the selected ROI. HNGT-Net clearly highlights this object and reproduces its vertically elongated spatial structure. The highest anomaly scores occur in the target interior, whereas the responses gradually decrease near its boundary, demonstrating accurate localization against the relatively uniform beach background. Weak responses remain outside the ROI, particularly near scene boundaries and locally heterogeneous structures, but their intensities are substantially lower than that of the true target. For PaviaC (
Figure 4j–l), the selected ROI contains several small anomalies close to elongated urban structures. HNGT-Net assigns high scores to the principal anomalous objects and retains their relative positions and approximate spatial extents. The enlarged result also reveals responses along some neighboring linear structures. Such responses arise from the strong spectral–spatial contrast of urban edges and narrow human-made materials, which may locally resemble anomalies. Despite this structured-background interference, the true anomalies generally exhibit brighter and more compact responses and therefore remain visually distinguishable. For the Salinas simulated scene (
Figure 4m–o), the ROI contains multiple simulated anomalies with different sizes and irregular shapes. HNGT-Net detects most targets with strong and spatially compact responses, including both small isolated objects and larger anomaly clusters. The response centers agree well with the GT locations, and adjacent targets remain separable. Meanwhile, the complete map exhibits residual activations along image boundaries and diagonal background structures, indicating that high-contrast field boundaries remain challenging without obscuring the principal anomaly cluster. Overall, the enlarged comparisons demonstrate consistent spatial correspondence between HNGT-Net responses and the GT maps across isolated targets, dense target clusters, and anomalies of different scales. The method generally produces compact high-score regions at true anomaly locations while suppressing most homogeneous background pixels. The remaining discrepancies mainly appear as slight boundary expansion around strong targets or weak responses to high-contrast edges and linear structures. These observations provide a detailed and balanced account of both the localization capability of HNGT-Net and the background conditions under which residual false responses may occur.
3.3. Computational Complexity and Runtime Analysis
The computational efficiency and deployment feasibility of the proposed HNGT-Net are examined from four complementary angles: theoretical time complexity, per-module FLOPs decomposition, parameter and computation compression between the teacher and student networks, and space complexity.
Theoretical Time Complexity. Consider an input hyperspectral image of size , with denoting the total number of pixels. The asymptotic inference complexity of HNGT-Net is contrasted with that of representative competitors as follows:
LRX and CRD demand operations per pixel, where w denotes the sliding-window size. The quadratic growth with respect to w makes these methods prohibitively expensive on large scenes.
Pure deep networks (Auto-AD, DFAN-HAD) incur FLOPs, where C denotes the feature-channel width. Although the window-squared term disappears, the cost remains heavy once C becomes large.
HNGT-Net decomposes into four additive terms:
where
and
denote the teacher and student channel widths, respectively, and
K is the number of nearest neighbors. All four terms grow linearly with the pixel count
N; therefore, the overall pipeline avoids the window-squared penalty of statistical methods, although the frozen teacher remains part of the inference stack and contributes the largest share of the measured FLOPs.
Per-Module FLOPs Decomposition. The estimated inference FLOPs of each HNGT-Net module on a
input (the standard crop size adopted throughout our experiments) are listed in
Table 5. The convolutional encoders absorb the overwhelming majority of the computational budget, whereas the graph-structured operations jointly contribute less than
of the total.
Parameter and Computation Compression. The teacher network is built as a three-layer encoder with channel configurations , amounting to roughly 0.21 Mparameters, whereas the student network halves every layer to and appends a lightweight projection head , totaling only about 0.02 M parameters. The resulting parameter compression ratio reaches 10.5×.
At the layer level, width halving predicts an approximately fourfold reduction in convolutional FLOPs. In the implemented three-layer encoders, the measured FLOPs decrease from 1.33 G for the teacher to 0.61 G for the student, corresponding to a 2.18× encoder-level reduction; the difference from the ideal factor of four arises from input/output channel terms and auxiliary operations. Because the teacher remains active during inference, the 10.5× figure should be interpreted as student-side parameter compression, while the complete teacher–student stack retains a compact footprint of approximately 0.23 M parameters. The sparse graph operations add less than of the total FLOPs.
Space Complexity. The peak memory footprint at inference time scales as
with the four terms corresponding respectively to the input image (
), the teacher feature map (
), the student feature map (
), and the sparse adjacency storage (
non-zero entries in CSR format). Storing the adjacency matrix sparsely, rather than as a dense
matrix, eliminates the
memory blow-up that would otherwise preclude deployment on high-resolution scenes.
Scalability Analysis. Owing to its linear-in-N complexity, HNGT-Net scales gracefully to larger image sizes. On the crops evaluated in this paper, KNN graph construction accounts for less than of the total FLOPs. When N grows to pixels (e.g., full-scene inference), the convolutional terms increase linearly (), while the KNN term grows as () and gradually becomes a non-negligible fraction. In such regimes, approximate KNN algorithms (e.g., locality-sensitive hashing or FAISS-based fast search) can replace exact KNN without materially affecting detection accuracy. Conversely, enlarging the spectral dimension B affects only the first convolutional layer and leaves the graph structure intact, which makes HNGT-Net particularly attractive for high-spectral-resolution sensors.
Measured runtime. All methods were timed on the same SCNet container and hardware configuration described above, with one DCU card used per run. For reproducibility, all dual-window sizes are reported as inner window × outer window. LRX uses
for abu-urban-2,
for abu-urban-4,
for abu-beach-3,
for PaviaC, and
for Salinas simulate. CRD uses
for abu-urban-2,
for abu-urban-4,
for abu-beach-3,
for PaviaC, and
for Salinas simulate. The inference runtimes (in seconds) of all competing algorithms on the five benchmark datasets are reported in
Table 6. HNGT-Net averages 2.29 s per scene, which is roughly 462× faster than LRX and 639× faster than CRD, since the shallow statistical methods depend on computationally expensive sliding-window operations. Within the deep learning group, DirectNet records the shortest average runtime (0.12 s), followed by NL2Net (0.69 s); HNGT-Net ranks third, being approximately 3.3× slower than NL2Net and 18.8× slower than DirectNet. This additional overhead stems from the graph construction and Laplacian computation introduced by the topology-transfer learning pipeline. Even so, the runtime of HNGT-Net remains well within the acceptable range for practical deployment, and the modest extra cost is amply compensated by the detection accuracy gains reflected in the leading mean AUC of 0.9953.
3.4. Hyperparameter Sensitivity and Selection
To assess the stability of HNGT-Net with respect to its key hyperparameters—the structural consistency weight
, the Laplacian response weight
, the hard-negative separation weight
, and the response margin
m—a systematic one-dimensional sensitivity analysis was conducted on each of the five benchmark datasets. In each sweep, one parameter was varied over a prescribed grid while all remaining hyperparameters were held fixed at their reference values. The resulting AUC curves are shown in
Figure 5,
Figure 6,
Figure 7 and
Figure 8, and the selected optimal values are summarized in
Table 7.
Structural consistency weight
.
Figure 5 plots the detection AUC as a function of
, which scales the edge-weight structural alignment term
in Equation (
18). The five datasets exhibit markedly different sensitivity profiles. On abu-urban-2, the AUC increases steadily with
and peaks at
(AUC
); on abu-urban-4, the optimum is much smaller (
, AUC
); abu-beach-3 and PaviaC favor intermediate values of
(AUC
) and
(AUC
), respectively; while Salinas simulate achieves its best result at
(AUC
). These disparities reflect the varying spatial homogeneity of the background scenes: urban scenes with heterogeneous human-made structures require stronger structural regularization, whereas agricultural or synthetic scenes with spectrally uniform backgrounds need only weak structural coupling.
Laplacian response weight
.
Figure 6 shows the sensitivity to
, which balances the graph-Laplacian consistency term
. On abu-urban-2, the AUC rises monotonically up to
(AUC
) before collapsing for
, indicating that a moderate Laplacian penalty is beneficial but excessive smoothing erases the fine spectral deviations associated with small targets. abu-urban-4 is almost insensitive to
in the range
, with a flat plateau near
. abu-beach-3 peaks at
(AUC
), while PaviaC shows a pronounced upward trend that culminates at
(AUC
). Salinas simulate is entirely insensitive to
in the tested range, with its optimum at
(AUC
). This suggests that the value of high-order topological smoothing depends strongly on the spectral dimensionality and background complexity of the scene.
Hard-negative separation weight
.
Figure 7 examines the influence of
, which scales the hinge separation loss
. All datasets display a non-monotonic behavior: the AUC first improves as
increases from zero, reaches a distinct maximum, and then degrades when the separation term dominates the total objective. The optimal
values are
for abu-urban-2 (AUC
),
for abu-urban-4 (AUC
),
for abu-beach-3 (AUC
),
for PaviaC (AUC
), and
for Salinas simulate (AUC
). The narrowness of the peak on abu-urban-4 underscores the need for careful tuning of the separation weight in scenes with subtle anomalies.
Response margin
m.
Figure 8 presents the sensitivity to the margin
m that appears in the hinge separation loss Equation (
17). For abu-urban-2, the AUC remains near
for
, then jumps to its maximum at
(AUC
), after which performance collapses precipitously for
. A similar pattern is observed on abu-urban-4, where the optimum is also
(AUC
). abu-beach-3 peaks at
(AUC
), whereas PaviaC is completely flat at AUC
for all tested margins, implying that the separation constraint is either inactive or always satisfied for this scene. Salinas simulate achieves its best AUC of
at
. The sharp transitions seen on the urban datasets confirm that the margin must be large enough to enforce a tangible gap between normal and hard-negative responses, yet small enough to avoid over-separating spectrally similar background pixels.
3.5. Ablation Study
To validate the incremental contribution of each learning objective, a cumulative ablation study was conducted by successively adding the four hyperparameter-weighted modules—structural consistency (
), Laplacian response consistency (
), hard-negative separation (
), and response-margin separation (
m)—on top of the node-level consistency baseline. In each step, the newly introduced module was set to its optimal value identified in the preceding hyperparameter sensitivity analysis, while all subsequent modules remained disabled (weight
). The resulting progression is reported in
Table 8.
Node-level baseline. The node-consistency term already achieves strong detection performance in isolation: its AUC ranges from (abu-urban-4) to (Salinas simulate). This confirms that the frozen-teacher paradigm provides a robust prior for normal-background representation even before any relational or discriminative regularization is introduced.
Structural consistency (). Adding the edge-weight alignment term yields the largest single gain on PaviaC (), where the scene’s heterogeneous human-made structures—buildings, roads, and water—benefit strongly from explicit pairwise similarity modeling. Moderate improvements are observed on abu-urban-2 () and abu-beach-3 (). On abu-urban-4, the gain is small () because the successful training chain was already identified after a seed-diagnostic restart; nevertheless, structural consistency still contributes positively. On Salinas simulate, the baseline is near saturation, and the incremental contribution of is minimal ().
Laplacian response consistency (). The high-order topological smoothing term produces its strongest effect on PaviaC (), complementing the structural term by regularizing graph-frequency responses in spectrally textured backgrounds. On abu-urban-2 and abu-beach-3, the gains are modest ( each), while on abu-urban-4 and Salinas simulate the Laplacian term does not materially change the AUC. These results suggest that is primarily helpful when the normal background exhibits pronounced spectral–spatial texture that cannot be fully captured by node and edge consistency alone.
Hard-negative separation (). The separation hinge loss produces the largest cumulative ablation improvement on PaviaC () and abu-beach-3 (). On PaviaC, the hard-negative term almost doubles the total gain accumulated up to that point, indicating that the bridge-structure anomalies are particularly well separated once an explicit normal–negative margin is enforced. On abu-beach-3, the large gain reflects the high spectral similarity between fishing-related targets and the sandy background, which the preceding consistency terms alone cannot fully disentangle. On abu-urban-2, the improvement is moderate (), while on abu-urban-4 and Salinas simulate, the contribution is small ( and , respectively).
Response margin (m). The margin parameter yields a clear positive gain only on abu-urban-4 () and Salinas simulate (). On abu-urban-2, the gain is marginal (), and on abu-beach-3, the best margin configuration slightly underperforms the -only result (), suggesting that the hinge loss is already well-satisfied by the preceding separation term for this scene. PaviaC does not contain a dedicated margin search in the available log data, so no cumulative entry is reported; the final AUC for this dataset therefore equals the -only result.
Summary. Taken together, the cumulative ablation results reveal a clear scene-dependent hierarchy of module importance. Structural consistency () and hard-negative separation () are the two primary drivers of performance: together they account for the majority of the total improvement on PaviaC ( out of ), abu-urban-2 ( out of ), and abu-beach-3 ( out of ). Laplacian smoothing () and the margin constraint (m) act as secondary refinements that become relevant only when the primary terms leave residual discrimination gaps. This modular behavior validates the design rationale of HNGT-Net: rather than relying on a single dominant objective, the framework layers complementary regularizers so that each scene can exploit the particular combination best suited to its background complexity and anomaly characteristics.