Frequency-Spatial Entanglement Learning for Camouflaged Object Detection

Yanguang Sun, Chunyan Xu, Jian Yang, Hanyu Xuan, Lei Luo

Abstract

Camouflaged Object Detection (COD) aims to identify targets that are seamlessly embedded in their environment. Traditional methods often struggle with the high degree of similarity between the foreground and background, particularly when relying solely on spatial-domain features. This paper introduces the Frequency-Spatial Entanglement Learning (FSEL) framework, which integrates global frequency-domain information with local spatial-domain features through a novel transformer-based architecture. By "entangling" these two domains, FSEL achieves state-of-the-art performance across major benchmarks, demonstrating superior accuracy in segmenting complex camouflaged targets.

Introduction

Camouflaged Object Detection (COD) is a specialized computer vision task focused on identifying objects that share nearly identical textures, colors, and patterns with their surroundings—such as a lizard on a rock or a grasshopper on a leaf. Unlike standard object detection, COD must overcome the "pixel similarity" problem, where the boundaries between the target and the background are intentionally obscured.

Existing deep learning approaches primarily operate in the spatial domain, focusing on pixel-level relationships. While effective for many tasks, these methods often suffer from limited receptive fields and can be easily confused by background noise. Conversely, frequency-domain methods (utilizing Fourier Transforms) have been explored but typically focus on narrow bands—such as high frequencies for edges or low frequencies for shapes—ignoring the rich relational data across the entire spectrum. The FSEL framework addresses this bottleneck by treating spatial and frequency features as a unified, interdependent representation.

The FSEL Framework

The core philosophy of FSEL is "entanglement": rather than simply fusing features at the final stage, the model forces spatial and frequency data to interact throughout the learning process. The architecture is built upon three primary components:

1. Joint Domain Perception Module (JDPM)

The JDPM serves as a multi-scale semantic enhancer. It utilizes a hierarchical structure with atrous (dilated) convolutions to capture spatial features at various scales. These features are then transformed into the frequency domain to filter out redundant information and capture global context before being reintegrated into the spatial representation. This ensures that the initial feature set is robust and contextually aware.

2. Entanglement Transformer Block (ETB)

The ETB is the central innovation of the FSEL framework. It moves beyond standard self-attention mechanisms by incorporating two distinct but linked attention paths:

  • Frequency Self-attention (FSA): This component models the relationships between different frequency bands across the entire spectrum. Because frequency data is complex-valued, the authors developed a mathematical approach to process the real and imaginary components separately before merging them, allowing the model to learn which frequency components are most critical for breaking camouflage.
  • Spatial Self-attention (SSA): This captures long-range spatial dependencies, ensuring the model maintains a global view of the image structure.
  • Entanglement Feed-Forward Network (EFFN): Replacing the standard multi-layer perceptron (MLP), the EFFN forces frequency and spatial features to collaborate across two distinct phases. This ensures that the final representation can resolve spatial ambiguities (like blurry edges) using frequency clues and vice versa.

3. Dual-domain Reverse Parser (DRP)

To produce sharp, accurate boundaries, the DRP refines the final prediction using a hybrid reverse attention map. By incorporating both frequency and spatial information during the upsampling process, the model can more effectively "complete" the object, even when large portions of the target's texture perfectly match the background.

Experimental Results

The FSEL model was evaluated against 21 state-of-the-art methods (including SINet, ZoomNet, and FEDER) on three major benchmarks: CAMO (1,250 images), COD10K (10,000 images), and NC4K (4,121 images).

Quantitative Performance

FSEL demonstrated significant improvements in accuracy. On the CAMO dataset using a Res2Net backbone, the model improved the Mean Absolute Error (M) by 9.23% over the previous second-best method. Similar performance gains were observed across the COD10K and NC4K datasets, confirming the model's robustness.

Qualitative Analysis and Generalization

Visual results indicate that FSEL is particularly adept at segmenting the entire body of a camouflaged object, whereas other models often only detect high-contrast fragments like a head or tail. Furthermore, the framework showed strong generalization capabilities when applied to related tasks, such as Polyp Segmentation in medical imaging and Salient Object Detection.

Conclusion and Future Work

Frequency-Spatial Entanglement Learning represents a significant step forward in COD by moving away from simple feature fusion toward a deeper integration of data domains. While the model achieves top-tier accuracy, its computational complexity (FLOPs) remains at a medium-to-high level. Future research will focus on optimizing the entanglement mechanism for real-time applications on edge devices and extending the dual-domain approach to video-based camouflaged detection, where temporal motion can serve as an additional clue for disambiguation.

Summary updated

BibTeX
@inproceedings{sun2024frequency,
  author = {Yanguang Sun and Chunyan Xu and Jian Yang and Hanyu Xuan and Lei Luo},
  title = {{Frequency-Spatial Entanglement Learning for Camouflaged Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72658-3\_20},
}
Figure