CALANet: Cheap All-Layer Aggregation for Human Activity Recognition

Jaegyun Park, Dae-Won Kim, Jaesung Lee

TL;DR

CALANet is a novel neural network architecture for Human Activity Recognition (HAR) that improves accuracy by aggregating features from every single layer—not just the last one—without increasing computational costs. By using clever "cheap" transformation matrices and scalable pooling, it achieves state-of-the-art performance on wearable sensor data while remaining efficient enough for real-time use on resource-constrained devices.

What Problem Does This Paper Address?

Human Activity Recognition (HAR) using wearable sensors is a pillar of modern healthcare and fitness tracking. To work in the real world, these systems must be "real-time," meaning they need to run efficiently on low-power devices like smartwatches and fitness bands.

Current research usually solves this by making models "lightweight"—either by making them very shallow or by pruning connections. However, there is a major drawback: these models typically only use the features extracted at the very last layer to make a prediction.

The authors point out that in HAR, the "semantic" high-level features at the end of a network (which are good for general categories) often lose the fine-grained, "vibrational" details found in earlier layers. For example, a model might easily distinguish "Jumping" from "Sitting" using last-layer features, but struggle to tell "Sitting" apart from "Talking while Sitting" because the subtle signal differences were filtered out by deep pooling layers.

Motivation behind CALANet

Methods: Bridging the Gap Between Efficiency and Detail

To solve this, the authors introduce CALANet (Cheap All-Layer Aggregation Network), which employs two primary innovations:

  1. Learnable Channel-wise Transformation Matrices (LCTMs): Instead of a standard fully-connected layer (which is computationally expensive), LCTMs perform a linear transformation on each channel's feature vector. This compresses the global temporal information of every layer into a fixed-size vector very cheaply. These vectors from all layers are then combined, allowing the final classifier to "see" the signal at multiple levels of abstraction simultaneously.
  2. Scalable Layer Aggregation Pool (SLAP): To prevent the computational cost from exploding as the network gets deeper, the authors use grouped convolutions and channel shuffles. This allows them to stack more layers (increasing the "receptive field") while keeping the total FLOPs (floating-point operations) equivalent to much shallower, conventional networks.

Crucially, the paper provides a theoretical proof showing that the time complexity of CALANet remains equivalent to a standard shallow CNN, regardless of how many layers are aggregated.

Key Insights and Ideas

  • The "Last Layer" Fallacy: In many computer vision tasks, the last layer is the "gold standard" for classification. This paper argues that for 1D sensor signals, the "rawer" information in early layers is just as vital for distinguishing activities with similar semantic meanings but different signal textures.
  • Aggregation for "Free": The most impressive feat is the mathematical proof that you can aggregate information from multiple layers without the complexity scaling linearly. By fixing the number of features fed into the final Softmax layer, they avoid the "overfitting" and "slowdown" typically associated with deep feature fusion.
  • Versatility: The "CALA" structure isn't just for one specific model. The authors demonstrated that they could plug their LCTM and SLAP modules into other architectures and see immediate jumps in F1-score without increasing the computational footprint.

Key Results

The model was rigorously evaluated on seven publicly available HAR datasets, covering a wide range of sensors, activities, and sampling frequencies (including UCI-HAR, UniMiB-SHAR, DSADS, OPPORTUNITY, KU-HAR, PAMAP2, and REALDISP). CALANet was compared against 11 state-of-the-art baselines, including real-time CNNs and complex attention-based models.

Performance comparison of CALANet against baselines
  • Superior Accuracy: CALANet achieved the highest F1-score on almost all seven datasets. For instance, on the KU-HAR dataset, it reached a 97.5% F1-score, significantly outperforming standard shallow CNNs (77.9%).
  • Efficiency: Despite being much deeper (often 9 layers vs. 3), CALANet maintained lower FLOPs than many "lightweight" competitors.
  • Real-world Latency: On an AMD Ryzen 7 processor, CALANet's inference time was roughly 2.25ms per window, which is nearly identical to a simple "Shallow ConvNet" (2.15ms), proving its readiness for real-time deployment.

Limitations and Future Work

While the theoretical computational cost (FLOPs) is low, the authors acknowledge that they haven't yet optimized for device-specific constraints like memory access patterns or parallel computation on specific hardware (e.g., NPUs or specialized DSPs).

Future work may involve using Neural Architecture Search (NAS) to automatically find the optimal number of layers and channel sizes for specific wearable devices, further squeezing performance out of every milliwatt of power.

Summary updated

BibTeX
@inproceedings{park2024calanet,
  author = {Jaegyun Park and Dae-Won Kim and Jaesung Lee},
  title = {{CALANet: Cheap All-Layer Aggregation for Human Activity Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ouoBW2PXFQ},
}
Figure