Few shot clustering for indoor occupancy detection with extremely low-quality images from battery free cameras

Homagni Saha, Sin Yong Tan, Ali Saffari, Mohamad Katanbaf, Joshua R. Smith, Soumik SarkararXiv 2020

Abstract

Occupancy detection is a cornerstone of smart building applications, yet it faces significant hurdles regarding privacy, power consumption, and data scarcity. This paper introduces Siamese Convolutional Few-shot Clustering (SCFC), a framework designed to detect room occupancy using extremely low-quality, privacy-preserving images from battery-free cameras. By combining Siamese neural networks with an iterative Expectation-Maximization (E-M) clustering approach, the system can be commissioned with minimal labeled data and adapt to environmental changes in an unsupervised, online fashion.

Introduction

Smart building applications, such as automated HVAC control and elderly monitoring, rely heavily on knowing if a room is occupied. However, three major hurdles prevent widespread adoption: privacy concerns with high-resolution cameras, the maintenance burden of battery-powered devices, and the high cost of labeling data for every specific room configuration.

To address these challenges, this research utilizes battery-free cameras powered by ambient light and RF energy. These cameras produce grainy, low-resolution images that inherently preserve privacy but render traditional person-detection algorithms ineffective. The proposed SCFC algorithm overcomes these limitations by enabling accurate detection from degraded imagery with "zero-knowledge" commissioning.

Methodology: Siamese Convolutional Few-shot Clustering (SCFC)

The SCFC framework operates in two primary phases to enable rapid deployment and continuous adaptation.

Siamese Network Initialization

The system utilizes a Siamese CNN—a pair of identical networks that learn to determine if two images are "similar" (e.g., both occupied) or "dissimilar." Unlike standard deep learning models that require thousands of labeled images, SCFC can be initialized with a "Test Set" of as few as 1–5 handpicked examples of the room being empty versus occupied.

Online Adaptation via E-M Clustering

To handle changing environmental conditions like shifting light or furniture layouts, the model employs an iterative process:

  1. The "E" Step: The model evaluates new, unlabeled images (the Support Set) against the initial calibration images, assigning "imaginary labels" based on similarity scores.
  2. The "M" Step: The model retrains itself using these newly labeled images to refine its understanding of the specific room's occupancy states.
Overview of the SCFC architecture showing the Siamese network and the E-M adaptation loop.

Experimental Evaluation

The authors evaluated SCFC on several benchmarks, including the PIROPO indoor occupancy dataset and standard computer vision benchmarks like miniImageNet. Crucially, they also tested the system on a novel dataset collected from six real-world residential rooms using custom battery-free hardware.

Key Results

  • Superior Accuracy: On the PIROPO dataset, SCFC achieved 82.5% accuracy, significantly outperforming the standard k-Nearest Neighbor (kNN) baseline of 78.5%.
  • Benchmark Performance: In the 5-way 5-shot miniImageNet challenge, SCFC reached 65.5% accuracy, surpassing established meta-learning models like MAML and Matching Nets.
  • Real-World Adaptation: When tested on custom battery-free camera images, the algorithm improved accuracy by approximately 10% over baseline methods, typically landing in the 75%–85% range despite the extreme image degradation.
Accuracy improvement over iterations for a specific room, demonstrating the effectiveness of the online adaptation process.

Discussion and Insights

The research highlights several critical insights for low-power, privacy-centric sensing:

  • Privacy by Degradation: The study found a "sweet spot" for privacy; using a 10x10 max-pooling window blurs images enough to make humans unrecognizable while maintaining high occupancy detection accuracy.
  • Clustering as Adaptation: Using clustering for online adaptation allows the model to "drift" with environmental changes, such as lighting transitions, without requiring further human intervention.

Limitations and Future Work

Current limitations include a reliance on a relatively stable background; significant layout changes may require re-calibration. Additionally, while inference is lightweight, the computational demands of the "M" step retraining may require offloading to an edge gateway for ultra-low-power microcontrollers like the MSP430. Future work will explore multi-person counting and activity recognition using similar few-shot logic.

Summary updated

Abstract

Reliable detection of human occupancy in indoor environments is critical for various energy efficiency, security, and safety applications. We consider this challenge of occupancy detection using extremely low-quality, privacy-preserving images from low power image sensors. We propose a combined few shot learning and clustering algorithm to address this challenge that has very low commissioning and maintenance cost. While the few shot learning concept enables us to commission our system with a few labeled examples, the clustering step serves the purpose of online adaptation to changing imaging environment over time. Apart from validating and comparing our algorithm on benchmark datasets, we also demonstrate performance of our algorithm on streaming images collected from real homes using our novel battery free camera hardware.
BibTeX
@misc{saha2020few,
  author = {Homagni Saha and Sin Yong Tan and Ali Saffari and Mohamad Katanbaf and Joshua R. Smith and Soumik Sarkar},
  title = {{Few shot clustering for indoor occupancy detection with extremely low-quality images from battery free cameras}},
  year = {2020},
  eprint = {2008.05654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.05654},
}
Figure