Papers
Topics
Authors
Recent
Search
2000 character limit reached

Patient Cohesion-Separation Loss (PCSL)

Updated 4 June 2026
  • Patient Cohesion-Separation Loss (PCSL) is defined as the ratio of intra-patient scatter to inter-patient scatter, preserving unique patient signatures in feature embeddings.
  • It employs both cohesion and separation terms to cluster features from the same patient while repelling different patient centroids, enhancing the robustness of lung sound classification.
  • Integration of PCSL within the PAFA framework has shown measurable performance gains on ICBHI benchmarks by mitigating inter-patient variability.

Patient Cohesion-Separation Loss (PCSL) is a training objective introduced by Jeong and Kim in the context of lung sound classification to address inter-patient variability observable in biomedical signals, even among individuals with similar clinical presentations. Within the Patient-Aware Feature Alignment (PAFA) framework, PCSL explicitly enforces that representations of examples from the same patient are clustered together, while the centroids of different patients are pulled apart in feature space. This mechanism aims to preserve individualized patient signatures during supervised learning, thereby improving generalization and robustness on benchmarks with substantial subject-specific heterogeneity (Jeong et al., 28 May 2025).

1. Formal Definition and Mathematical Structure

PCSL operates on mini-batches composed of MM samples, each with a patient label p(i)Pp(i)\in P. The backbone and projection network fθ()f_\theta(\cdot) maps each input xix_i (e.g., a Mel-spectrogram) to a feature vector ziRdz_i\in\mathbb{R}^d. For each patient pPp\in P, let Ip={ip(i)=p}\mathcal{I}_p = \{i\,|\,p(i)=p\} denote the index set for samples from pp, with Np=IpN_p=|\mathcal{I}_p|, and define the patient-specific centroid: μp=1NpiIpzi.\mu_p = \frac{1}{N_p} \sum_{i\in\mathcal{I}_p} z_i. Two statistics are introduced:

  • Intra-patient scatter:

p(i)Pp(i)\in P0

which quantifies within-patient variance.

  • Inter-patient scatter:

p(i)Pp(i)\in P1

which quantifies between-centroid separation.

PCSL is then defined as the ratio

p(i)Pp(i)\in P2

where p(i)Pp(i)\in P3 is a small constant for numerical stability. Minimizing p(i)Pp(i)\in P4 drives embeddings for the same patient towards their centroid (reducing p(i)Pp(i)\in P5) and centroids of different patients apart (increasing p(i)Pp(i)\in P6).

2. Roles and Interplay of Cohesion and Separation Terms

The two components of PCSL operate antagonistically yet synergistically:

  • Cohesion Term (p(i)Pp(i)\in P7): Penalizes dispersion of features from the same patient, encouraging tight patient-specific clusters in feature space.
  • Separation Term (p(i)Pp(i)\in P8): Promotes dispersal among patient centroids, ensuring that patient-specific manifolds do not collapse onto one another.
  • Ratio Formulation: Simultaneously encourages intra-patient tightness and inter-patient diversity. Reduction of p(i)Pp(i)\in P9 or increase in fθ()f_\theta(\cdot)0 both independently decrease fθ()f_\theta(\cdot)1.
  • Stabilization Factor: The addition of fθ()f_\theta(\cdot)2, typically fθ()f_\theta(\cdot)3, prevents numerical instability when centroids coalesce early in training.

3. Centroid Calculation and Feature Space Dynamics

During each batch, the model executes:

  1. Forward pass to obtain fθ()f_\theta(\cdot)4.
  2. Divides embeddings per patient, determines indices fθ()f_\theta(\cdot)5.
  3. Computes fθ()f_\theta(\cdot)6 for all fθ()f_\theta(\cdot)7 via averaging.
  4. Calculates fθ()f_\theta(\cdot)8, fθ()f_\theta(\cdot)9, and thus xix_i0.

Because xix_i1 depends on all constituent xix_i2 and thus on network parameters xix_i3, centroid locations evolve throughout training. As optimization progresses, centroids for distinct patients stabilize at well-separated locations if the latent space accommodates individual-variation structure.

4. Integration into the Overall Training Objective

PCSL is combined with standard cross-entropy (for supervised class prediction) and the Global Patient Alignment Loss (GPAL), which mildly regularizes all patient centroids toward their grand mean: xix_i4 The full objective for the PAFA framework is

xix_i5

Hyperparameters xix_i6 and xix_i7 provided optimal performance in ICBHI experiments via grid search.

5. Optimization, Implementation, and Feature Manifold Effects

The backpropagated gradients from xix_i8 impact features as follows:

  • From xix_i9: Each ziRdz_i\in\mathbb{R}^d0 is pulled toward its patient centroid ziRdz_i\in\mathbb{R}^d1.
  • From ziRdz_i\in\mathbb{R}^d2: Centroid positions, being functions of current embeddings, interact so as to repel each ziRdz_i\in\mathbb{R}^d3 from others; each ziRdz_i\in\mathbb{R}^d4 thus indirectly receives a (weaker) push away from non-identical patient centroids.

Efficient computation is possible for practical batch sizes (e.g., ziRdz_i\in\mathbb{R}^d5); complexity of ziRdz_i\in\mathbb{R}^d6 is ziRdz_i\in\mathbb{R}^d7. In batches, if ziRdz_i\in\mathbb{R}^d8 (only one sample for a patient), ziRdz_i\in\mathbb{R}^d9 and that sample contributes zero to pPp\in P0, but still participates in pPp\in P1. High pPp\in P2 is necessary since raw pPp\in P3 is much smaller in magnitude than classification loss; normalization per initial batch statistics is recommended.

The effect on the embedding space is twofold: the manifold expands to provide distinct patient-specific regions (mitigating feature collapse driven solely by class labels), and the structure becomes multi-modal, reflecting mixed patient and disease characteristics.

6. Empirical Effects on the ICBHI Benchmark

The PAFA framework, incorporating PCSL and GPAL, demonstrated the following results on the ICBHI lung sound dataset:

  • Four-class (Normal/Crackle/Wheeze/Both):
    • Baseline (BEATs+CE): 63.49%
    • PCSL+GPAL (full PAFA): 64.84% (absolute gain of +1.35%)
  • Two-class (Normal/Abnormal):
    • Baseline: 70.76%
    • PAFA: 72.08% (absolute gain of +1.32%)
  • Ablation (BEATs backbone, four-class):
    • w/o PCSL: 63.92%
    • w/o GPAL: 63.88%
    • full PAFA: 64.84%
    • This suggests PCSL alone provides an improvement of approximately 0.9–1.0% absolute.

t-SNE analyses reveal that standard CE-only training produces class-centric clusters, whereas the addition of PCSL (and GPAL) introduces prominent subclusters corresponding to patient idiosyncrasies—reduced intra-patient spread and increased centroid separation.

7. Practical Considerations and Limitations

Batch size must be configured to ensure multiple samples per patient for effective pPp\in P4 computation; if not, contributions to pPp\in P5 may degenerate. The computational expense of pPp\in P6 is quadratic in the number of patients in a batch but remains tractable under common batch size settings. Weighting pPp\in P7 is set high to align magnitudes of loss terms. By directly penalizing the ratio of within- versus between-patient dispersion, PCSL preserves individualized features for each patient and affords improved generalization to under-represented or outlier patients (Jeong et al., 28 May 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Patient Cohesion-Separation Loss (PCSL).