Generic Timeseries Regression

Introduction

AI-based generic timeseries regression example, using a simple synthetic regression dataset.

Dataset and Model Details

Dataset

A synthetic regression dataset where:

Variable

Description

x

Randomly generated input in range [0,3]

y

Target: y = 1.2 sin(x) + 3.2 cos(x)

Model Architecture

  • REGR_2K lightweight regression model containing approximately 1,800 parameters with one input batch normalization layer, 4 convolution layers, and 2 fully connected layers.

  • Inference run on Cortex M33 CPU

Input Features

The model takes 4D input (N,C,H,W):

  • N (1): batch size which is restricted to 1

  • C (1): channels which is 1 for signal

  • H (10): samples of timeseries signals which is 10 in this example

  • W (1): width of samples is restricted to 1 for timeseries applications

Output Classes

1D output representing the predicted values of target variable y.

Feature Extraction Configuration

For this regression task, a SimpleWindow transformation is used, which makes use of the previous frame_size datapoints for prediction of the current target value. A frame size of 10 is used.