Nonlocal Patch-Based Fully-Connected Tensor Network Decomposition for Remote Sensing Image Inpainting

Wen-Jie Zheng, Xi-Le Zhao, Yu-Bang Zheng, Zhi-Feng PangarXiv 2021 · DOI

TL;DR

This paper introduces NL-FCTN, a novel remote sensing image inpainting method that combines the power of Fully-Connected Tensor Network (FCTN) decomposition with nonlocal self-similarity. By stacking similar image patches into higher-order tensors, the authors leverage FCTN’s unique ability to capture correlations between all dimensions simultaneously, setting a new state-of-the-art for restoring images plagued by missing pixels or cloud cover.

What Problem Does This Paper Address?

Remote sensing images (RSIs)—like those from satellites—are vital for environmental monitoring and urban planning. However, they are frequently incomplete due to sensor malfunctions (dead pixels) or atmospheric interference (clouds).

To "fill in the blanks" (inpainting), researchers treat these images as tensors (multi-dimensional arrays). The challenge lies in capturing two types of information:

  1. Global Correlation: How different spectral bands or time steps relate across the entire image.
  2. Nonlocal Self-Similarity (NSS): The fact that small patches of an image (like a specific forest texture) repeat elsewhere in the frame.

Previous methods like Tensor Train (TT) or Tensor Ring (TR) decomposition only link adjacent or circular dimensions, limiting their ability to model complex, multi-way relationships. Furthermore, traditional nonlocal methods often flatten spatial dimensions, destroying the very structures they aim to preserve.

Methods

The authors propose a two-stage framework called Nonlocal Patch-Based Fully-Connected Tensor Network (NL-FCTN) decomposition.

Fig. 1. Flowchart of the proposed RSI inpainting method. It involves two stages: A. initial FCTN decomposition inpainting and B. nonlocal FCTN decomposition inpainting. B includes three steps consisted of grouping, grouped FCTN decomposition inpainting, and aggregation.

1. The FCTN Advantage

Unlike earlier tensor networks, FCTN factorizes an $N$th-order tensor into factors where every mode is connected to every other mode. This "fully-connected" architecture allows it to characterize global correlations much more effectively than linear or ring-based structures.

Fig. 2. Illustration of FCTN decomposition.

2. Tensor Order Increment

In the nonlocal stage, the method finds similar 3D patches and stacks them together. This creates a 4D tensor (spatial x spatial x spectral x similar-patch index). This "order increment" is a clever trick: it provides more structure for the FCTN decomposition to exploit, leading to better recovery of fine details.

3. Optimization

The model is solved using a Proximal Alternating Minimization (PAM) algorithm. This approach breaks the complex optimization problem into smaller, solvable sub-problems with a theoretical guarantee that the algorithm will converge to a stable solution.

Datasets

The researchers evaluated their method on two primary types of data:

  • CAVE Database: A benchmark containing 32 multispectral images (MSIs) resized to $256 \times 256 \times 31$. These were used to test general inpainting performance across various missing data rates (from 80% to 98%).
  • Sentinel-2 Time-Series: A real-world dataset ("Morocco") consisting of images taken at different times ($200 \times 200 \times 4 \times 6$). This was used specifically to test cloud removal, where entire chunks of data are missing in specific time frames.

Key Insights and Ideas

  • Connectivity Matters: The transition from Tensor Train (adjacent connections) to Fully-Connected networks is the primary driver of performance. By allowing every dimension to "talk" to every other dimension, the model captures spectral-spatial dependencies that simpler models miss.
  • Higher Order is Better: Counter-intuitively, making the data more complex (increasing the tensor order by stacking patches) makes the inpainting task easier for FCTN. It provides a richer mathematical structure to identify redundant information.
  • Two-Stage Refinement: Using a global FCTN pass first ensures that the subsequent patch-matching (NSS) is performed on a reasonably accurate "draft" of the image, preventing errors from propagating.

Key Results

NL-FCTN consistently outperformed five other state-of-the-art tensor completion methods (KBR-TC, NL-SNN, NL-TNN, NL-TT, and FCTN-TC) across all metrics: Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), and Spectral Angle Mapping (SAM).

  • Quantitative Gains: At a 95% missing data rate, NL-FCTN achieved a PSNR of 37.54 dB, roughly 4 dB higher than the second-best method.
  • Visual Fidelity: As seen in Figure 3, NL-FCTN is significantly better at recovering sharp textures, such as the individual barbs in feathers or the delicate petals of flowers, where other methods produce blur or artifacts.
Fig. 3. Restoration results of three selected MSIs with MR=95%. The pseudo color images are composed of bands 29, 14, and 5. From top to bottom: the results of chart and stuffed toy, feathers, and flowers.
  • Cloud Removal: In the Sentinel-2 tests, NL-FCTN was the only method that successfully avoided color loss and blurring in the regions hidden by clouds (see Figure 4).

Limitations and Future Work

While the paper demonstrates superior accuracy, it does not extensively discuss computational complexity. Fully-connected networks involve more interactions than simpler chains, which typically translates to higher memory usage and longer processing times.

Future work could explore:

  • Scaling: Optimizing the FCTN decomposition for even larger, ultra-high-resolution satellite datasets.
  • Automated Rank Selection: Currently, the "rank" of the tensor decomposition (a key hyperparameter) likely requires manual tuning; automating this would make the tool more accessible for non-experts.

Summary updated

BibTeX
@misc{zheng2021nonlocal,
  author = {Wen-Jie Zheng and Xi-Le Zhao and Yu-Bang Zheng and Zhi-Feng Pang},
  title = {{Nonlocal Patch-Based Fully-Connected Tensor Network Decomposition for Remote Sensing Image Inpainting}},
  year = {2021},
  eprint = {2109.05889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.05889},
}
Figure