---
title: 'CCPDA: Centralized Copy-Paste Augmentation'
url: https://www.emergentmind.com/topics/centralized-copy-paste-data-augmentation-ccpda
type: topic
---

# CCPDA: Centralized Copy-Paste Augmentation

Centralized Copy-Paste Data Augmentation (CCPDA) is a data-augmentation method introduced for training deep-learning multiclass segmentation models in wildland fire science, with special focus on improving segmentation outcomes for the fire-class. It was presented in "Centralized Copy-Paste: Enhanced Data Augmentation Strategy for Wildland Fire Semantic Segmentation" [2507.06321], published on 2025-07-08. The method has three main steps: (i) identify fire clusters in the source image, (ii) apply a centralization technique to focus on the core of the fire area, and (iii) paste the refined fire clusters onto a target image. In the application scenario considered, the method increases dataset diversity while preserving the essential characteristics of the fire class, and numerical performance assessment validates its efficacy in alleviating the difficulties associated with small, manually labeled training datasets [2507.06321].

## 1. Problem setting and motivation

Wildland-fire semantic-segmentation models are described as suffering from two intertwined issues: extreme class imbalance and small, costly datasets [2507.06321]. In the formulation given for the method, “fire” regions occupy only a few percent of each high-resolution frame, yet accurate fire delineation is operationally critical. At the same time, manually labeling fire every pixel is expensive, so publicly available training sets are tiny.

The stated consequence is that deep networks overfit background and fuel classes, under-segment the fire class, and exhibit poor generalization. CCPDA was invented to synthesize new “fire” examples by isolating authentic fire clusters (“cores”), recentralizing them, and pasting them onto diverse background scenes at training time. The reported rationale is twofold: the augmentation both balances the fire-class frequency and preserves the high-frequency textural details that distinguish fire from other classes.

The paper explicitly frames the operational objective around the fire class rather than all classes symmetrically. Fuel, ash, and background are part of the multiclass setting, but the fire class is treated as carrying significantly more operational significance than the other classes. This emphasis shapes both the augmentation design and the evaluation criterion.

## 2. Formal dataset model and fire-cluster extraction

The original dataset is defined as
$$
\mathcal{D} = \{(I_i, M_i)\}_{i=1}^n,
$$
where \(I_i \in \mathbb{R}^{H\times W\times 3}\) are RGB images and \(M_i \in \{0,\dots,C-1\}^{H\times W}\) are pixel-wise masks, with one of the \(C\) labels being “fire” [2507.06321].

Fire Cluster Identification begins by extracting the binary fire mask
$$
F_i = \mathbf{1}_{[M_i==\mathrm{fire}]}.
$$
Connected components are then computed with 8-connectivity on \(F_i\) to obtain segments \(\{s_{i,j}\}\), formalized as
$$
S_i = \{s_{i,j} \subseteq \Omega \mid s_{i,j} \text{ is a connected set of pixels in } F_i \text{ and } \Omega \text{ is the image domain}\}.
$$

The procedure optionally dilates each segment to include a thin rim of hot-air pixels:
$$
s'_{i,j} = s_{i,j} \oplus K_5,
$$
where \(K_5\) is a \(5\times 5\) square structuring element and \(\oplus\) denotes morphological dilation. A subsequent area filter retains only
$$
S'_i = \{s'_{i,j} \in S_i \mid \mathrm{Area}(s'_{i,j}) \ge \tau_{\mathrm{area}}\},
$$
with \(\tau_{\mathrm{area}} = 100\) pixels recommended.

This extraction stage serves a selective role rather than a purely geometric one. By discarding tiny noise clusters and preserving a thin rim around flame regions, the method attempts to preserve informative fire structure before centralization. A plausible implication is that the extraction stage is designed to avoid trivial oversampling of noisy or low-value fire fragments.

## 3. Centralization transformation and copy-paste operation

The centralization transformation is defined as a mechanism for extracting each fire cluster’s “core,” removing spurious boundary pixels [2507.06321]. It applies morphological erosion with a small kernel \(K_x\):
$$
\hat s_{i,j} = s_{i,j} \ominus K_x,
$$
where \(\ominus\) denotes erosion and \(K_x\) is an \(x\times x\) square, with \(x=3\) recommended.

For each \(\hat s_{i,j}\), the centroid in continuous coordinates is computed as
$$
(x_{i,j}, y_{i,j}) =
\left(
\frac{1}{\mathrm{Area}(\hat s_{i,j})}\sum_{(u,v)\in \hat s_{i,j}} u,\;
\frac{1}{\mathrm{Area}(\hat s_{i,j})}\sum_{(u,v)\in \hat s_{i,j}} v
\right).
$$
If \(B_{i,j}\) is the minimal axis-aligned bounding rectangle of \(\hat s_{i,j}\), the mask and corresponding image patch are shifted by
$$
\Delta u = \mathrm{round}(W_{\mathrm{patch}}/2 - x_{i,j}), \qquad
\Delta v = \mathrm{round}(H_{\mathrm{patch}}/2 - y_{i,j}),
$$
where \(W_{\mathrm{patch}} \times H_{\mathrm{patch}} = \mathrm{size}(B_{i,j})\). Any pixels that would move outside the patch are clamped. The stated purpose is to re-center the bounding box of each \(\hat s_{i,j}\) so that \((x_{i,j}, y_{i,j})\) becomes its geometric center.

Once a library of centralized cores \(\hat S = \cup_i \hat S_i\) has been formed, augmented pairs \((I^c, M^c)\) are generated by selecting a target image \(I_t\) and target mask \(M_t\), drawing a random core, and searching for a valid placement region within image bounds. Placement is accepted when the fraction of the candidate region already labeled background-only satisfies the overlap constraint governed by \(\epsilon\). With \(\epsilon = 0\), the method ensures no overlap with existing fire. If placement succeeds, pixels under the pasted core are copied into the target image, optionally with boundary smoothing controlled by \(\alpha_{\mathrm{blend}}\), and the corresponding target-mask pixels are set to fire.

The paper reports several heuristics: \(r\) copies per image, \( \mathrm{max\_attempts}=10 \) to avoid infinite loops, \(\epsilon=0\) as the default overlap threshold, and optional rotation of the core by \(\theta \sim \mathrm{Uniform}(0^\circ,360^\circ)\) to further increase diversity. The discussion attributes CCPDA’s advantage to “isolating the highest-confidence fire pixels (the ‘core’), which reduces label noise,” and to centering them so that convolutional receptive fields see flame patterns in their canonical spatial context.

## 4. Hyperparameters and recommended settings

The method description provides explicit recommendations for the principal hyperparameters [2507.06321].

| Component | Setting | Stated role |
|---|---:|---|
| \(\tau_{\mathrm{area}}\) | \(100\,\mathrm{px}\) | Discards tiny noise clusters |
| \(K_5\) | \(5\times 5\) | Captures halo around flame |
| \(K_3\) | \(3\times 3\) | Yields stable “core” |
| \(r\) | \([1,5]\) | Number of cores pasted per image |
| \(\epsilon\) | \(0\) | No overlap with existing fire |
| \(\mathrm{max\_attempts}\) | \(10\) | Limits placement retries |

Within this range, the reported empirical recommendation is that \(r=3\) strikes a good balance. The overlap threshold can be relaxed to \(\epsilon=0.1\) for scenes with large fire. The blending flag \(\alpha_{\mathrm{blend}}\) is described as controlling whether to smooth the boundary, for example by a linear alpha-blend of width \(3\,\mathrm{px}\).

These settings indicate that CCPDA is intended as a lightweight, plug-and-play augmentation rather than a heavily parameterized synthesis framework. This suggests that its design target is practical integration with existing training pipelines under small-sample conditions.

## 5. Weighted sum-based multi-objective evaluation

The evaluation protocol is explicitly fire-centric. Because fire segmentation has multiple operationally relevant metrics, methods are compared via a single scalar score
$$
F =
w_{\mathrm{IoU}}\,\mathrm{IoU}_{\mathrm{fire}}
+
w_{\mathrm{Prec}}\,\mathrm{Prec}_{\mathrm{fire}}
+
w_{\mathrm{Rec}}\,\mathrm{Rec}_{\mathrm{fire}}
+
w_{\mathrm{FNR}}\,(1-\mathrm{FNR}_{\mathrm{fire}}),
$$
subject to
$$
w_{\mathrm{IoU}} + w_{\mathrm{Prec}} + w_{\mathrm{Rec}} + w_{\mathrm{FNR}} = 1,
\qquad
w_i \ge 0.
$$
The reported experimental weights are
$$
w_{\mathrm{IoU}}=0.4,\qquad
w_{\mathrm{Prec}}=0.2,\qquad
w_{\mathrm{Rec}}=0.2,\qquad
w_{\mathrm{FNR}}=0.2.
$$

Each metric is computed on a held-out test set, and higher \(F\) denotes better overall fire performance [2507.06321]. This weighting scheme formalizes the paper’s central premise: improvement on the fire class is the dominant operational criterion, and a single aggregate score is used to compare augmentation strategies under that premise.

A common misconception would be to treat the method as optimizing generic semantic-segmentation quality in a class-agnostic way. The stated evaluation does not do that. It aggregates \(\mathrm{IoU}_{\mathrm{fire}}\), \(\mathrm{Prec}_{\mathrm{fire}}\), \(\mathrm{Rec}_{\mathrm{fire}}\), and \(\mathrm{FNR}_{\mathrm{fire}}\), and therefore prioritizes fire-class behavior by construction.

## 6. Numerical results, limitations, and future directions

The reported numerical results summarize mean \(\pm\) \(1\) std over \(5\) random splits for the fire class only [2507.06321]. Baseline Aug (flip,rot) achieved \(\mathrm{IoU}_f = 0.502 \pm 0.012\), \(\mathrm{Prec}_f = 0.694 \pm 0.015\), \(\mathrm{Rec}_f = 0.638 \pm 0.013\), \(\mathrm{FNR}_f = 0.362 \pm 0.013\), and weighted \(F = 0.615\). Standard Copy-Paste achieved \(\mathrm{IoU}_f = 0.528 \pm 0.014\), \(\mathrm{Prec}_f = 0.708 \pm 0.016\), \(\mathrm{Rec}_f = 0.655 \pm 0.014\), \(\mathrm{FNR}_f = 0.345 \pm 0.014\), and \(F = 0.638\). CCPDA achieved \(\mathrm{IoU}_f = 0.557 \pm 0.011\), \(\mathrm{Prec}_f = 0.729 \pm 0.012\), \(\mathrm{Rec}_f = 0.682 \pm 0.011\), \(\mathrm{FNR}_f = 0.318 \pm 0.011\), and \(F = 0.674\).

The statistical-significance result reported for the comparison between CCPDA and Standard Copy-Paste is \(p < 0.01\) for \(\mathrm{IoU}_f\) and \(\mathrm{Rec}_f\). The paper therefore states that CCPDA outperforms other augmentation strategies in the application scenario considered, particularly in improving fire-class segmentation performance.

The paper also states several limitations. Pasted cores may violate physical constraints, for example fire floating above the ground. There is no dynamic lighting adaptation, so the color and brightness of pasted cores sometimes clash with target scenes. Fixed erosion and dilation kernels may under- or over-shrink clusters in extremely large or tiny fires. These points qualify a possible misunderstanding that copy-paste realism is guaranteed by centralization alone; the authors do not claim that.

Future extensions proposed in the paper include context-aware placement via depth or ground-plane estimation, learned alpha-matte generation for physically plausible blending, adaptive kernel sizes based on cluster geometry, and integration with generative adversarial augmentation (GAN-CCPDA). In that sense, CCPDA is presented not as a complete physical simulation model, but as a lightweight augmentation framework whose empirical value lies in focusing on genuine flame cores, recentralizing them, and carefully pasting them into novel backgrounds.

Source: https://www.emergentmind.com/topics/centralized-copy-paste-data-augmentation-ccpda