TimesNet is a model that finds the dominant periods in a time series with the fast Fourier transform (FFT), rearranges the 1D series into "2D tables folded by period," and captures variations with 2D convolutions, just as for images. Wu, Hu, Liu, Zhou, Wang, and Long of Tsinghua University introduced it in 2022, and it was published at ICLR 2023. It is proposed as a general-purpose time-series model whose same backbone can be used not only for forecasting but also for imputation of missing values, classification, and anomaly detection.
The value of a time series at a single time step carries little meaning on its own. What carries meaning is temporal variation, which the paper divides into two kinds:
- Intraperiod variation: Variation between adjacent time steps, such as electricity use rising from morning to noon within a day.
- Interperiod variation: Variation seen when comparing noon today with noon yesterday or noon last week, that is, variation between values at the same phase (the same time of day).
In a 1D series, adjacent time steps sit next to each other, but "the same time yesterday" is a whole period away. TimesNet folds the series by the period length into a table with one period per row. Values running across a row then represent intraperiod variation, and values running down a column represent interperiod variation, so 2D convolutions can see both at once.
In calendar terms, this is like taking a record of daily temperatures written in a single line and rearranging it into a calendar with "one week per row." Reading across shows variation within a week, and reading down shows week-to-week variation on the same weekday at a glance. TimesNet performs this "rearrangement" automatically for each period.

