Depth-Weighted Detection of Behaviours of Risk in People with Dementia using Cameras

Pratik K. Mishra, Irene Ballester, Andrea Iaboni, Bing Ye, Kristine Newman, Alex Mihailidis, Shehroz S. KhanarXiv 2024

This study addresses a critical challenge in geriatric care: the automated detection of "behaviours of risk" (such as agitation or aggression) in people living with dementia (PwD). By introducing a novel depth-weighted loss function and a proxy-outlier thresholding strategy, the researchers significantly reduced false alarms in video-based anomaly detection, moving the technology closer to real-world deployment in care facilities.

TL;DR

Researchers developed a video-based anomaly detection system for dementia care that uses pixel-depth weighting to ensure events occurring far from the camera are treated with the same importance as those nearby. This approach, combined with a novel way to set detection thresholds using "proxy outliers," significantly reduces false positives—the primary barrier to using such systems in busy clinical environments.

What Problem Does This Paper Address?

Video Anomaly Detection (VAD) systems often use autoencoders to learn "normal" behavior. When the system sees something it can't reconstruct well (a high reconstruction error), it flags it as an anomaly.

However, standard autoencoders suffer from a "perspective bias." Because objects closer to a camera occupy more pixels than those further away, any movement near the lens generates a much larger error signal than the same movement at the end of a hallway. In a long corridor, this leads to a flood of false alarms for nearby normal activities while potentially missing dangerous behaviors in the distance. For staff in a Long-Term Care (LTC) facility, a system that "cries wolf" every time someone walks past the camera is unusable.

Methods

The authors propose two primary innovations to the standard 3D Convolutional Autoencoder (3DCAE) framework:

  1. Depth-Weighted Loss ($L_{dmse}$): The core idea is to normalize the importance of pixels based on their distance from the camera. Using the pinhole camera model, the authors demonstrate that the projected area of an object is inversely proportional to the square of its distance ($Z$). To counteract this, they weight the reconstruction error of each pixel by its estimated depth. This ensures that a person agitating 10 meters away contributes as much to the anomaly score as someone 2 meters away.
  2. Proxy Outlier Thresholding: Anomaly detection is tricky because you often don't have "risk" examples during training. The authors utilized "unusual but non-risk" activities (like crowded scenes or large objects) found in the training data as proxy outliers. By creating a validation set containing both normal behavior and these proxies, they could mathematically determine an optimal threshold that maximizes the F1-score before the system ever sees a real behavior of risk.

    Fig. 4: Proxy Validation Set Creation.

Datasets

The study utilized a unique, real-world dataset collected at the Specialized Dementia Unit (SDU) at Toronto Rehabilitation Institute:

  • Participants: 9 individuals (3 male, 6 female) aged 66–93 with a history of agitation.
  • Video: ~93.5 hours of footage per camera across three different views (Cam1, Cam2, Cam3).
  • Annotation: Two research assistants independently annotated motor/physical agitation, achieving high percentage agreement (0.99) but moderate Cohen’s kappa (0.48), reflecting the subjective difficulty of defining the exact start and end of behavioral episodes.

Key Insights and Ideas

  • Distance Invariance is Essential: The mathematical proof that anomaly scores are depth-dependent is a vital insight for any VAD task involving hallways or large rooms. By incorporating depth, the model becomes spatially "fair."
  • Architecture Agnostic: The depth-weighted loss isn't tied to one specific model. The authors successfully integrated it into standard 3DCAEs, Variational Autoencoders (VAE), and Transformer-based models (CTBAE), seeing improvements across the board.
  • The Power of Proxies: Using "unusual but normal" events to set thresholds solves a major cold-start problem in anomaly detection, providing a principled way to tune sensitivity without needing a library of dangerous incidents.

Key Results

The proposed depCAE (Depth-weighted 3DCAE) outperformed existing methods across multiple metrics:

  • Accuracy: Achieved AUROC scores of 0.852, 0.81, and 0.768 for the three different camera views.
  • False Positive Reduction: The depth variants consistently recorded lower False Positive Rates (FPR) than their standard counterparts. For example, in Cam1, the FPR dropped from 0.372 (3DCAE) to 0.316 (depCAE).
  • Robustness: Ablation studies showed that combining depth-weighting with proxy-outlier thresholding provided the best balance of precision and recall (F1-score).

Limitations and Future Work

While promising, the authors note several hurdles for deployment:

  • Generalization: Performance dropped when a model trained on one camera was tested on another (Cross-Camera Analysis), suggesting that "few-shot" fine-tuning might be necessary for new environments.
  • Privacy: Cameras were only in public hallways. Detecting risks in private rooms remains a challenge, though the authors suggest "pose tracking" (which extracts skeletal data without recording video) as a potential privacy-preserving alternative.
  • Severity Bias: The data came from a specialized unit with severe cases; the system still needs to be validated in standard Long-Term Care homes where incidents are rarer.

Summary updated

BibTeX
@misc{mishra2024depth,
  author = {Pratik K. Mishra and Irene Ballester and Andrea Iaboni and Bing Ye and Kristine Newman and Alex Mihailidis and Shehroz S. Khan},
  title = {{Depth-Weighted Detection of Behaviours of Risk in People with Dementia using Cameras}},
  year = {2024},
  eprint = {2408.15519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.15519},
}
Figure