Y-debug-sys / Diffusion-TS

[ICLR 2024] Official Implementation of "Diffusion-TS: Interpretable Diffusion for General Time Series Generation"
MIT License
138 stars 19 forks source link

Diffusion model not capturing cyclical nature #20

Closed OmegaAsh closed 4 months ago

OmegaAsh commented 4 months ago

Hi there, thanks for your work on this,

I am just using the model to generate some synthetic PPG signal data for a project (will be sure to cite), and it seems to perform quite good, although it isn't capturing the cyclical nature of the signals enough (e.g. too much variation between cycles) which is really important in this type of data.

Just wondering as you have used and tuned the model a lot, whether you know of any tricks to guide the model towards a more cyclical and uniform output? An example of my current output is shown below (original in blue, synthetic in yellow).

graph

Thanks again

Y-debug-sys commented 4 months ago

Hi, OmegaAsh.

On the one hand, due to using MLP to build the main network, it's prone to overfitting, so you can try adding a bit of dropout ratio in the config.

On the other hand, please check your dataset. I just downloaded a PPG dataset from https://zenodo.org/records/3902676 and ploted out the following sequence of a feature. p1

It shows that its periodicity actually varies over time (your synthetic curve is more similar to the front part, while the real sequence you chose to plot are more like the latter segment). So in my opinion, this is actually a probability issue depending on your dataset.

Thanks !

OmegaAsh commented 4 months ago

Hi just want to verify this did seem to give better results. Thanks for your help!