arXiv:2610.32768cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32768

SCDM-HTD: Spectral-Wise Conditional Diffusion Model for Hyperspectral Target Detection

Dunbin Shen, Wenfeng Kong, Jianjun Liu, Xiaorui Ma, Hongyu Wang

Dunbin Shen, Wenfeng Kong, Jianjun Liu, Member, IEEE, Xiaorui Ma, Member, IEEE

Hongyu Wang, Member, IEEE,

Abstract—Hyperspectral target detection (HTD) aims to locate and recognize objects at a fine-grained scale, playing a pivotal role in remote sensing. Despite significant progress, current HTD methods primarily focus on feature comparison while neglecting distribution learning for background-target separation, which can limit detection robustness in practical applications. This paper addresses this issue by introducing a spectral-wise conditional diffusion model that reformulates HTD as a task of generating a detection map. Specifically, we treat background and target confidence scores as training samples and use the corresponding pixel spectra as guiding conditions to capture the distributional discrepancy between background and target through diffusion and denoising. To enhance practical applicability, we propose a lightweight conditional denoising network based on multilayer perceptron to map noisy confidence scores to their ideal counterparts and adopt a deterministic reverse non-Markov chain to skip sampling steps, thereby accelerating the generation process. Furthermore, we introduce a composite loss to improve background-target separation. This loss integrates constrained energy minimization loss to enhance target saliency and suppress the background by maximizing the target response while minimizing average output energy, alongside binary cross-entropy loss to classify background and target using pixel-wise labels. Experimental results on four benchmark datasets demonstrate the effectiveness of the proposed method, with improvements in both quantitative metrics and qualitative visual effects. The code is available at https://github.com/shendb2022/SCDM-HTD.

Index Terms—Hyperspectral target detection, distribution learning, diffusion model, conditional denoising

I. INTRODUCTION

The advancement of remote sensing technology has propelled the development of precision Earth observation. Hyperspectral imaging is a widely used technique that captures three-dimensional data integrating both spectral and spatial information. The resulting hyperspectral image (HSI) comprises two spatial dimensions, which depict the geometric structure of a scene, and one spectral dimension, which characterizes the electromagnetic radiation of materials [1]–[5]. This spectral information encodes distinct physical and chemical properties, enabling precise identification of ground objects [6]–[9]. Hyperspectral target detection (HTD) is a key task in HSI processing, aimed at locating and identifying targets of interest within a complex background at the pixel or subpixel level [10]. Compared to traditional object detection, HTD enables fine-grained target identification, even in scenarios with low spatial resolution and image corruption. As a result, HTD has been widely applied in various fields, including camouflage detection [11], forest fire monitoring [12], disaster response [13], and urban and rural planning [14].

Based on the availability of target priors, HTD can be categorized into target detection and anomaly detection. Target detection identifies pixels that match a given target prior, enabling high detection accuracy [15]. In contrast, anomaly detection locates pixels that deviate from the surrounding background, operating in a fully unsupervised manner, which enhances its practicality [16]. This paper focuses on target detection, where a single target spectrum serves as prior knowledge. Over the past decades, various detection methods have been developed. Statistical-based methods [17]–[19] typically assume that the background follows a Gaussian distribution or adheres to an energy minimization principle, detecting targets by computing statistical measures. While simple and efficient, these methods may struggle in complex real-world scenarios due to mismatches with prior assumptions. Representation-based methods [20]–[22] formulate HTD as an optimization problem, estimating representation components via matrix or tensor decomposition with appropriate regularizations. These methods offer physical and mathematical interpretability but may suffer from handcrafted regularization inaccuracies and limited nonlinear representation capabilities. Deep learning-based methods [23]–[25] leverage neural networks to extract discriminative features. To mitigate the challenge of limited labeled samples, strategies such as transfer learning [23], data augmentation [24], and unsupervised learning [25] have been explored. However, these data-driven methods often rely on deep network architectures, which may introduce redundancy and lack physical interpretability. Furthermore, the absence of explicit data distribution learning can compromise detection robustness in real-world applications.

To capture data distribution for background-target discrimination, several distribution learning-based methods have been explored. For example, Xie et al. [26] proposed a background reconstruction model that estimates the background distribution using an adversarial autoencoder (AAE) with a target suppression constraint. Gao et al. [27] leveraged a generative adversarial network (GAN) as an auxiliary tool to augment background and target samples, which were then used to train the detector. To address the challenge of limited prior knowledge and better exploit background information, Qin et al. [28] introduced a Wasserstein GAN-based approach

This work was supported by the National Natural Science Foundation of China under Grant 62271102. (Corresponding author: Xiaorui Ma.)

Dunbin Shen, Wenfeng Kong, Xiaorui Ma, and Hongyu Wang are with the School of Information and Communication Engineering, Dalian University of Technology, Dalian 116024, China (e-mail: sdb_2012@163.com; kksamakwf@163.com; maxr@dlut.edu.cn; whyu@dlut.edu.cn).

Jianjun Liu is with the School of Artificial Intelligence and Computer Science, Jiangnan University, Wuxi 214122, China (e-mail: liuofficial@163.com).

that incorporates weakly supervised learning and channel attention to estimate the background and generate detection proposals. Despite these advancements, distribution learning-based methods largely rely on autoencoders (AEs) or GANs, which suffer from weak generative capabilities and training instability issues such as mode collapse and gradient vanishing.

Recently, diffusion models have gained significant attention for their ability to generate high-quality and realistic data. The denoising diffusion probabilistic model (DDPM) [29], a cornerstone in this family, extends the variational autoencoder by introducing multiple latent variables to model progressive probability transitions via a Markov chain. It corrupts data by incrementally adding Gaussian noise and trains a neural network to reverse this process. New samples are generated by starting from Gaussian noise and progressively denoised through the reverse Markov chain. Leveraging this powerful generative capability, DDPM has been widely applied across various tasks. However, its application in HTD remains limited. Existing studies primarily use diffusion models as auxiliary tools for background-target discrimination. Some estimate background distributions for suppression [30], [31], and some generate diverse HSIs to mitigate spectral variation [32]. These indirect approaches do not treat HTD as a generative task, and their non-end-to-end frameworks may constrain detection accuracy and efficiency. Therefore, an efficient diffusion model that directly captures the distributional discrepancy between background and target is needed for improved detection.

To address the aforementioned issues, this paper proposes a spectral-wise conditional diffusion model for HTD (SCDM-HTD). The model estimates the distribution of confidence scores using corresponding pixel spectra as guiding conditions and directly generates the detection map. Detection is achieved by distinguishing between the reconstructed background and target confidence scores. Specifically, to obtain sufficient background and target samples, we treat the original pixels as background and generate target samples by mixing them with the target prior, simulating spectral mixture and variation. The corresponding confidence scores are computed using cosine similarity between the pixels and the target prior. We then introduce the spectral conditional diffusion model to estimate the confidence score distribution. In the forward process, confidence score pairs from the same position are progressively diffused into noisy sequences by adding Gaussian noise. To efficiently recover the confidence score pairs, we design a lightweight multilayer perceptron (MLP)-based conditional denoising network (CDNet), which embeds pixel spectra as guiding conditions. A tailored background-target separation loss supervises the denoising process, integrating constrained energy minimization (CEM) loss to enhance target saliency while suppressing the background, and binary cross-entropy (BCE) loss to enforce binary classification of background and target. In the reverse process, the detection map is progressively refined from Gaussian noise, with the original HSI serving as the guiding condition. To accelerate the generation process, we adopt a deterministic reverse non-Markov chain, inspired by the denoising diffusion implicit model (DDIM) [33], enabling step skipping during sampling. This acceleration significantly reduces the required number of steps while maintaining promising detection performance, facilitating practical applications. Experimental results on four benchmark datasets validate the effectiveness of the proposed SCDM-HTD. In summary, the main contributions of this paper are as follows:

  1. We propose a spectral-wise conditional model to transform HTD into a task of generating a detection map. It employs the background and target confidence scores as negative and positive samples, respectively, and the corresponding pixel spectra as guiding conditions, to capture the distributional discrepancy between background and target through diffusion and denoising. Thus, the desired confidence map can be refined via iterative sampling to accomplish detection.

  2. We propose a lightweight CDNet to model the mapping between noisy confidence scores and the ideal ones, employing MLPs to embed spectral conditions and extract distributional features. Additionally, we adopt a deterministic reverse non-Markov chain to skip sampling steps and accelerate the generation process. Compared to DDPM, the parameter capacity and computational requirements are significantly reduced, facilitating practical application.

  3. We propose a composite background-target separation loss to distinguish between background and target, and enhance detection robustness. It integrates CEM loss to highlight the target and suppress the background by maximizing the target response while minimizing the average output energy, and BCE loss to classify background and target into two classes using pixel-wise labels.

The remainder of the paper is organized as follows: Section II surveys existing HTD methods and related diffusion models. Section III presents the proposed method in detail. Section IV provides experimental results and discussions. Finally, Section V concludes the paper.

References (68)