Conditional Gumbel-Softmax for constrained feature selection with application to node selection in wireless sensor networks

Thomas Strypsteen, Alexander BertrandarXiv 2024 · DOI

Abstract

In the design of Wireless Electroencephalography Sensor Networks (WESNs), selecting an optimal subset of sensor nodes involves a critical trade-off between task accuracy and energy efficiency. Traditional feature selection methods often fail to incorporate physical constraints, such as the maximum allowable distance between communicating nodes. This paper introduces the Conditional Gumbel-Softmax (CGS) framework, which performs end-to-end learning to select feature subsets while strictly adhering to pairwise distance constraints. By factorizing the selection process through a Bayesian network and masking invalid transitions, CGS ensures that every sampled configuration is physically realizable and energy-efficient.

Introduction

The proliferation of wearable technology, particularly in Brain-Computer Interfaces (BCI), has led to the development of high-density EEG systems. However, practical daily use requires discrete, wireless nodes rather than bulky wired caps. These Wireless Sensor Networks (WSNs) face a significant "energy bottleneck": wireless data transmission consumes power proportional to the distance between nodes. To maximize battery life, a network must select nodes that are not only task-relevant but also physically close to one another.

The Constrained Selection Problem

Standard feature selection typically treats features as independent entities, aiming to find the $K$ features that maximize accuracy. In WSNs, however, features are physical nodes with spatial relationships. A selection method must ensure that if node $A$ is chosen, the next node $B$ must be within a communication threshold $T$.

General architecture for selecting a subset of features using selection neurons.

As shown in the architecture above, the goal is to map $N$ input neurons to $M$ selection neurons to form a feature subset $X_S$ that minimizes a loss function $f_\theta(X_S)$, subject to topological constraints.

Methods: Conditional Gumbel-Softmax (CGS)

The authors build upon the Gumbel-Softmax trick, which enables gradient-based optimization over discrete categorical distributions. The core innovation of CGS is the introduction of conditionality into the sampling process.

Factorization and Masking

Instead of independent selections, CGS factorizes the joint probability of selecting $M$ nodes using a Bayesian network (e.g., a line or star graph). This allows the selection of each subsequent node to be conditioned on the previously selected nodes.

The CGS framework: (a) Bayesian network factorization, (b) selection of the first node, and (c) conditional selection of subsequent nodes based on previous choices.
  1. Factorization: The joint probability $p(Z)$ is decomposed into a sequence of conditional probabilities, as seen in Figure 5(a).
  2. Constraint Masking: The conditional probability matrices (e.g., $\Pi^{(2)}$ in Figure 5(c)) are modified by zeroing out entries that violate the distance constraint $T$. This "hard" masking ensures that the model never explores invalid configurations during training.
  3. End-to-End Learning: The entire system, including the task-specific classifier and the selection parameters, is trained simultaneously using backpropagation.

Experimental Validation

The CGS method was evaluated using the High Gamma Dataset (HGD), a benchmark for motor task classification (left hand, right hand, feet, or rest). The authors emulated a WESN using 44 channels from the motor cortex and tested various distance thresholds $T$ across different network topologies, such as line and star graphs.

Key Results and Insights

  • Performance vs. Heuristics: CGS consistently outperformed traditional greedy filter methods based on Mutual Information. While greedy methods select individually "strong" sensors, CGS captures complex inter-sensor dependencies.
  • The Accuracy-Power Trade-off: The experiments revealed a clear "elbow" in the performance curve. Beyond a certain distance threshold, increasing the allowable communication range yielded diminishing returns in accuracy, providing a clear design target for energy-efficient hardware.
  • Biological Synergy: Interestingly, accuracy significantly improved when the threshold $T$ allowed communication between the two brain hemispheres, aligning with the biological understanding of bilateral coordination in motor tasks.

Conclusion

The Conditional Gumbel-Softmax framework provides a robust solution for feature selection under physical constraints. By embedding constraints directly into the sampling architecture, it guarantees valid solutions while maintaining the benefits of end-to-end deep learning. Future work may explore more complex power models beyond simple distance proxies and investigate methods to reduce gradient variance during training.

Summary updated

BibTeX
@misc{strypsteen2024conditional,
  author = {Thomas Strypsteen and Alexander Bertrand},
  title = {{Conditional Gumbel-Softmax for constrained feature selection with application to node selection in wireless sensor networks}},
  year = {2024},
  eprint = {2406.01162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01162},
}
Figure