Handle Missing Heart Rate Readings in Fitbit Sleep Stage Features

Last updated: November 29, 2026

Quick Overview

A Fitbit sleep stage classifier uses heart rate and motion features per 30 second window, but heart rate is missing in some windows when the band is loose. Explain how you would handle the missing values and why the reason they are missing matters.

Google
Machine Learning
Data Scientist
Google
November 29, 2026
Data Scientist
Technical Screen
Machine Learning
Easy

0

0

0 solved


A Fitbit sleep stage classifier uses heart rate and motion features per 30 second window, but heart rate is missing in some windows when the band is loose. Explain how you would handle the missing values and why the reason they are missing matters.

Wearable data from Fitbit and Pixel Watch is noisy and often incomplete. The interviewer checks whether you go beyond filling with the mean, think about why values are missing, and keep the treatment consistent between training and on-device inference.

What the Interviewer Expects
  • Asks why values are missing (MCAR, MAR, MNAR) and gives examples here
  • Proposes missingness indicator features
  • Uses temporal imputation such as forward fill or interpolation with limits
  • Mentions models that handle missing values natively
  • Checks that imputation does not leak future data or differ at inference
Key Topics to Cover
missing data
imputation
missingness indicators
time series features
wearables
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • If missingness itself predicts being awake, is that a problem or a feature?
  • How would you evaluate the imputation choice?
  • What changes when inference runs on the watch with limited memory?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Ask how often heart rate is missing, whether gaps are short (a few windows) or long (the band came off), and why it happens. A loose band during tossing and turning suggests missingness correlates wit...

Approach

Classify the missingness: missing completely at random (a sensor glitch), missing at random given observed data (more gaps when motion is high), or missing not at random (gaps because of the very stat...


Submit Your Answer
Markdown supported