Files
myWiki/concepts/temporal-patch-shuffle.md
2026-06-01 10:46:01 +08:00

58 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Temporal Patch Shuffle (TPS)"
created: 2026-05-26
type: concept
tags: ["time-series", "data-augmentation", "forecasting", "patch-based"]
sources: ["temporal-patch-shuffle-tps"]
---
# Temporal Patch Shuffle (TPS)
> 基于重叠时间 patch 的选择性 shuffle 增强方法——当前时间序列预测增强的 SOTA。
## 核心流程
1. **拼接**x ∥ y → s从源头强制 [[data-label-consistency|数据-标签一致性]]
2. **Temporal Patching**patch 长度 p、stride s提取**重叠** patch
3. **Variance 评分**:跨通道计算每个 patch 的 variance低 variance = 更安全的扰动对象
4. **选择性 Shuffle**variance 最低的 α 比例 patch 被随机置换
5. **重建**:重叠区域取平均——自然平滑 shuffle 引入的不连续性
6. **拆分**s̃ → x̃, ỹ
## 设计直觉
- **重叠是关键**:相邻 patch 共享时间步,重建时过渡平滑;换成非重叠 → 明显退化
- **Variance 启发式**:保守策略——低 variance 的 patch 结构特征少,扰动更安全
- **时域优先**:直接操作原始信号优于 FFT 变换后操作
## 为什么比其他方法好
| 对比维度 | TPS | 频域方法 | 分解方法 |
|---------|-----|---------|---------|
| 时间定位 | ✅ 原生 | ❌ FFT 丢失 | ✅ EMD 保留 |
| 计算开销 | 低 | 低 | 高EMD |
| input-target 一致性 | ✅ 内置 | ✅ 支持 | ✅ 支持 |
| 跨任务泛化 | ✅ 预测+分类 | 预测为主 | 预测为主 |
## 超参数
- ppatch 长度
- sstride< p 则重叠
- αshuffle 比例0.7-1.0 最优
实际不跑 Cartesian 网格 20 种候选配置做验证集搜索
## 实验结果摘要
- 长期预测9 数据集 × 5 骨干MSE 改善 2.08%-10.51%
- 短期交通4 PeMS 数据集MSE 改善 0%-7.14%
- 分类任务UCR +0.50%, UEA +1.10%
## 相关页面
- [[time-series-forecasting-augmentation]] 预测增强通用框架
- [[data-label-consistency]] 联合增强的理论基础
- [[freqmask-freqmix]] 频域替代方案
- [[wavemask-wavemix]] 时频域替代方案
- [[temporal-patch-shuffle-tps]] 原始综述文章