HAROOD: Human Activity Classification and Out-of-Distribution Detection with Short-Range FMCW Radar

Sabri Mustafa Kahya, Muhammet Sami Yavuz, Eckehard Steinbach · DOI

Abstract

We propose HAROOD as a short-range FMCW radar-based human activity classifier and out-of-distribution (OOD) detector. It aims to classify human sitting, standing, and walking activities and to detect any other moving or stationary object as OOD. We introduce a two-stage network. The first stage is trained with a novel loss function that includes intermediate reconstruction loss, intermediate contrastive loss, and triplet loss. The second stage uses the first stage's output as its input and is trained with cross-entropy loss. It creates a simple classifier that performs the activity classification. On our dataset collected by 60 GHz short-range FMCW radar, we achieve an average classification accuracy of 96.51%. Also, we achieve an average AUROC of 95.04% as an OOD detector. Additionally, our extensive evaluations demonstrate the superiority of HAROOD over the state-of-the-art OOD detection methods in terms of standard OOD detection metrics.

Introduction

Frequency-Modulated Continuous-Wave (FMCW) radar has emerged as a robust sensing modality for human activity recognition, offering advantages in low-light conditions, through-wall sensing, and privacy preservation compared to camera-based systems. However, deep learning models for radar data often exhibit "overconfidence," incorrectly classifying unknown environmental noise—such as swinging curtains or robotic vacuums—as known human activities. This phenomenon necessitates effective Out-of-Distribution (OOD) detection. We present HAROOD (Human Activity classification and Out-Of-Distribution detection), a framework designed to bridge the gap between high-accuracy classification and reliable anomaly detection.

Methodology

The HAROOD framework utilizes a two-stage architecture processing both Macro Range-Doppler Images (RDIs) for coarse movement and Micro RDIs for fine-grained signatures.

Stage 1: Feature Extraction and OOD Training

The first stage employs multi-encoder multi-decoder pairs optimized via a multi-task loss function:

  1. Intermediate Reconstruction Loss ($L_{rec}$): Forces the model to learn the distribution of In-Distribution (ID) samples. High reconstruction error at inference time serves as a primary indicator of OOD samples.
  2. Intermediate Contrastive Loss ($L_{con}$): Implements "Outlier Exposure" by utilizing a small subset of OOD data during training to push OOD embeddings away from ID clusters in the latent space.
  3. Triplet Loss ($L_{tri}$): Ensures high intra-class compactness and inter-class separation for the target activities (sitting, standing, walking).
HAROOD Architecture: The two-stage training process incorporates reconstruction, triplet, and contrastive losses to refine feature embeddings for both classification and OOD detection.

Stage 2: Classification

The second stage consists of a lightweight convolutional classifier that operates on the optimized embeddings from Stage 1. This decoupled approach ensures computational efficiency during the final inference step.

Experimental Setup

Data was collected using an Infineon 60 GHz FMCW radar. The ID dataset includes four individuals performing activities across 21 diverse indoor environments. The OOD dataset comprises various "disturbers," such as table fans, RC cars, and swinging laundry. Notably, the model was trained with "Outlier Exposure" using only two OOD types (fans and RC cars) to evaluate its ability to generalize to unseen anomalies like boiling water or moving curtains.

Results

HAROOD achieves a classification accuracy of 96.51%, surpassing the ResNet34 baseline of 94.38%. In OOD detection, the model reaches an average AUROC of 95.04%.

Confusion matrices comparing HAROOD (left) and ResNet (right). HAROOD shows superior performance in distinguishing between similar activities like sitting and standing.

Beyond accuracy, HAROOD demonstrates significant computational advantages. Inference on the entire test set required only 28 seconds, compared to 1,480 seconds for distance-based methods like MAHA, making it highly suitable for real-time edge deployment.

Conclusion

HAROOD effectively combines generative and discriminative learning to solve the overconfidence problem in radar-based activity recognition. While current results focus on single-person scenarios, future work will explore multi-person environments and expand the activity set to include critical events such as falls.

Summary updated

BibTeX
@misc{kahya2023harood,
  author = {Sabri Mustafa Kahya and Muhammet Sami Yavuz and Eckehard Steinbach},
  title = {{HAROOD: Human Activity Classification and Out-of-Distribution Detection with Short-Range FMCW Radar}},
  year = {2023},
  eprint = {2312.08894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.08894},
}
Figure