arXiv:2610.02292cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02292

Diffusion-Based Synthetic Data Pretraining for Enhancing Activity Recognition

E. Riveros, D. Vega-Oliveros, A. Soriano-Vargas, A. Rocha

E. Riveros

Institute of Computing

State University of Campinas

Unicamp

Campinas, Brazil

e265685@g.unicamp.br

D. Vega-Oliveros

Institute of Science and Technology

Federal University of São Paulo

UNIFESP

São José dos Campos, Brazil

didier.vega@unifesp.br

A. Soriano-Vargas

Dept. Académico de Ciencia de Computación y Datos

Universidad de Ingeniería y Tecnología

UTEC

Lima, Perú

asoriano@utec.edu.pe

A. Rocha

Institute of Computing

State University of Campinas

Unicamp

Campinas, Brazil

arrocha@unicamp.br

Abstract—Human activity recognition (HAR) is increasingly important for healthcare, well-being, and daily monitoring applications, for which detecting alimentary activities such as eating and drinking can provide actionable insight into dietary habits and chronic disease management. HAR systems, however, often underperform on subtle and underrepresented classes, limiting their utility in real-world dietary monitoring. This work builds upon CABiGRU, a convolutional architecture with Bidirectional GRU layers, multi-head attention, and residual connections, designed to capture discriminative temporal patterns from smartwatch accelerometer, gyroscope, and magnetometer data. To improve CaBiGRU's generalization and reduce underfitting in the minority class, we leverage synthetic sensor data windows using a diffusion model and adopt a two-stage training strategy: pre-training CABiGRU on synthetic data, followed by fine-tuning on the real-world data. On the DEO (drinking/eating/other) dataset, the proposed pipeline achieves a balanced accuracy of 90.6%, improving over a strong supervised baseline and showing the benefits of diffusion-based synthetic pre-training for recognizing alimentary activities and representing a step forward dealing with unbalanced classes. These results suggest that combining diffusion-generated data with targeted fine-tuning enhances robust recognition of dietary behaviors, supporting more reliable deployment in healthcare and nutrition-monitoring settings.

Index Terms—Multiclass Classification, Alimentary Activities, Deep Learning, Wearable Sensor Data; Synthetic Data Pre-training

I. INTRODUCTION

Human Activity Recognition (HAR) is important for healthcare and daily monitoring, and wearable devices provide rich motion data for this purpose. Among HAR tasks, recognizing alimentary activities such as eating and drinking is especially relevant for dietary assessment and hydration monitoring. Unlike coarse-grained activities, these behaviors involve subtle wrist movements and short temporal patterns, making them harder to distinguish from smartwatch signals.

A key challenge in alimentary activity recognition is the combination of class imbalance and temporal subtlety. Eating and drinking are less frequent than other activities in real-world datasets, and their recognition depends on fine-grained wrist-motion dynamics and cross-sensor interactions. Prior work [13] introduced CABiGRU, achieving 86.6% balanced accuracy, but minority-class scarcity still limits generalization.

To address this, augmentation strategies such as SMOTE, autoencoders, and GANs have been explored, but these methods do not always preserve the temporal continuity and multivariate dependencies required for subtle time-series discrimination. Diffusion models offer a more principled alternative, as they better model realistic multivariate temporal structure. In particular, PaD-TS [6] preserves population-level properties — including cross-correlation distributions — reducing distribution shift between real and synthetic data.

Based on this idea, we propose a diffusion-based pretraining pipeline in which synthetic multivariate smartwatch data samples pre-train the recognition model before fine-tuning on real data. We further adapt PaD-TS by replacing attention in the encoder–decoder with Bidirectional GRU blocks, better suited to short inertial sequences. This recurrent redesign reduces overfitting and achieves 90.6% balanced accuracy on the DEO dataset, outperforming both the 86.6% scratch-trained baseline and adversarial synthetic pretraining.

Our contributions are: (1) introducing a diffusion-based pretraining strategy for fine-grained HAR, (2) developing architectures that improve temporal modeling by replacing attention with bidirectional GRUs, and (3) providing empirical validation on real-world wearable data, demonstrating improved accuracy for alimentary activity recognition.

We develop and test diffusion-model variants that use bidirectional GRU blocks instead of attention for denoising. This change better aligns with the short inertial sequences in our data. It improves temporal modeling and reduces overfitting when data is limited.

Empirical evidence on real-world wearable data: We conduct a comprehensive evaluation using a smartwatch-based dataset with 90 participant and a subject-wise protocol. Our approach reaches 90.6% balanced accuracy. It outperforms both the strong baseline trained from scratch (86.6%) and adversarial synthetic pretraining. This demonstrates the value of diffusion-based pretraining for fine-grained temporal classification.