Abstract
Both diet and physical activity are associated with obesity and chronic diseases such as diabetes and metabolic syndrome. Early efforts in connecting dietary and physical activity behaviors to generate patterns rarely considered the use of time. In this paper, we propose a distance-based cluster analysis approach to find joint temporal diet and physical activity patterns among U.S. adults ages 20-65. Dynamic Time Warping (DTW) generalized to multi-dimensions is combined with commonly used clustering methods to generate unbiased partitioning of the National Health and Nutrition Examination Survey 2003-2006 (NHANES) dataset. The clustering results are evaluated using visualization of the clusters, the Silhouette Index, and the associations between clusters and health status indicators based on multivariate regression models. Our experiments indicate that the integration of diet, physical activity, and time has the potential to discover joint temporal patterns with association to health.
Introduction
While diet and exercise are established cornerstones of metabolic health, traditional nutritional studies often focus on aggregate metrics—total caloric intake or total minutes of activity. However, human behavior is inherently sequential and rhythmic; the timing of these behaviors is a critical factor often overlooked. A significant challenge in analyzing this temporality is that human schedules are "warped." For instance, two individuals eating breakfast thirty minutes apart would be seen as distinct by standard point-by-point comparisons (Euclidean distance), despite having identical patterns. This research addresses this gap by identifying "Joint Temporal Diet and Physical Activity Patterns" (JTDPAP) using time-series clustering techniques that account for these temporal shifts.
Methodology
The study proposes a distance-based cluster analysis approach utilizing two primary innovations:
- Multi-Dimensional Dynamic Time Warping (DTW): DTW measures similarity between sequences that may vary in speed or time. The authors generalized this to multi-dimensions to handle diet and physical activity simultaneously. Two versions were explored: Independent ($DTW_I$), allowing sequences to shift independently, and Dependent ($DTW_D$), forcing shared alignment.
- The $\alpha$ Parameter: To account for the different scales of energy intake (kcal) and physical activity counts (PAC), a weighting parameter ($\alpha$) was introduced. This ensures that high-magnitude activity data does not numerically overwhelm dietary patterns.
These distances were processed using kernel-based clustering algorithms—Kernel K-Means (KKM) and Kernel Hierarchical Agglomerative Clustering (KHAC)—to group participants from the National Health and Nutrition Examination Survey (NHANES) 2003-2006 dataset into distinct lifestyle clusters.
Key Results and Discussion
The integration of time into behavioral analysis reveals "joint temporal patterns" that act as holistic bio-signatures of lifestyle. The study found that Independent DTW ($DTW_I$) generally outperformed the dependent version, suggesting that dietary and physical activity behaviors are "loosely coupled"—a shift in meal timing does not necessarily dictate a synchronized shift in exercise.
Using the Silhouette Index, the researchers identified that partitioning the population into three distinct clusters ($k=3$) provided the optimal balance of similarity and distinction. The KHAC method combined with $DTW_I$ achieved the highest external criteria scores, identifying significant differences across 8 of the 12 health indicators tested, including BMI and blood pressure. As shown in the visualization of mean trajectories, these clusters represent distinct lifestyles, such as those with high-intensity morning activity versus those with late-night energy intake peaks.
Limitations and Future Work
The study noted limitations regarding data asymmetry, as dietary data relied on 24-hour recall subject to memory bias, whereas physical activity was objectively measured. Additionally, the computational intensity of DTW ($O(N^2)$) presents challenges for scaling to larger datasets. Future research may explore more complex "elastic" distances and investigate how these temporal patterns evolve across different socio-economic groups or throughout a person's lifespan.
Summary updated