﻿# PAMAP2 missing sensors need timestamp-aware interpolation boundaries

Keep PAMAP2 timestamps, activity IDs, sensor groups, and NaN provenance separate; define interpolation scope without silently bridging sessions or using future measurements online.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-pamap2-timestamp-missing-sensor-interpolation-domain/
Language: en

## Timestamped rows contain different kinds of fields

A sensor-learning pipeline may read every PAMAP2 column as a model feature and fill missing entries with zeros. That mixes timestamps, activity targets, and physical measurements while removing evidence of unavailable sensors. A rectangular array is not a complete preparation specification.

The [PAMAP2 record](https://archive.ics.uci.edu/dataset/231/pamap2+physical+activity+monitoring) distinguishes timestamp, activity identifier, and sensor attributes. Preserve those roles and source session identity before constructing windows for a temporal network.

## Sensor groups do not share every acquisition property

The source describes inertial units and a heart-rate monitor with different acquisition frequencies. A row aligned to the distributed timeline therefore should not be assumed to contain a newly observed measurement from every physical device at that exact instant.

Retain sensor-group names and missingness masks. If an application resamples the collection, state the chosen target timeline and which values were observed, carried, or interpolated. A repeated numeric value does not identify which of those processes produced it.

## Parsing policy should preserve missingness

The [NumPy text parser reference](https://numpy.org/doc/stable/reference/generated/numpy.genfromtxt.html) documents missing-value and filling controls. Choosing a replacement during parsing can erase information before later preparation code has any chance to inspect it.

Keep a source-compatible missingness representation until the intended imputation policy is applied. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps keep time and channel roles explicit, including the fact that an unavailable channel is different from an absent timestep.

## Interpolation needs a time domain and availability rule

The [interpolation reference](https://numpy.org/doc/stable/reference/generated/numpy.interp.html) defines interpolation against supplied sample coordinates. Using row numbers instead of actual timestamps adds an assumption about regular spacing that should be checked rather than hidden.

Do not interpolate across unrelated subject sessions or removed intervals without defining that behavior. An offline interpolation using later measurements is also different from an online method restricted to data already available. Record which evaluation scenario the derived values represent.

## Audit gaps rather than only final dimensions

Inspect windows around missing stretches, activity boundaries, and session starts. Trace filled values back to their supporting observations and preserve the original activity mapping. Optional-session inclusion should be explicit rather than inferred from whatever files a directory scan finds.

The [temporal availability guide](/journal/data-guide-temporal-split-availability/) explains the information boundary. Correct preparation supports a defined activity-recognition experiment; it does not establish live-monitoring performance or convert imputed sensor values into independently measured physiological observations.
