Once you get to the pattern creation page, a trend pattern can be created using the "+ Trend" icon (1):
which will take you to the trend pattern creation page:
The default trend method is the machine learning algorithm, but you may also choose the linear option as an alternative:
The machine learning trend method creates a seasonality analysis that decomposes time series data into long-term trend and seasonal components, such as daily, weekly, or yearly cycles, if applicable. Then the trend component is presented after this decomposition. For instance, if your time series data looks like:
Behind the scenes, this decomposition identifies the trend, daily, weekly, and yearly components of the data as:
Then, it provides you with the trend component over the time series data:
Unlike a simple linear trend-line, this model can handle non-linear behaviours and recurring patterns, making it ideal for uncovering how a metric truly evolves. This is a second example where there is a clear downward trend in the data, but with subtle granular fluctuations:
When applying the seasonality analysis, the data is decomposed into its trend and seasonal components behind the scenes:
Then, it provides you with the trend component over the time series data:
This is the legacy linear trend functionality of the iTwin IoT platform that provides you with a one-click fast linear trend creation for simpler modeling of the time series data.
Through this, the users can set the data time range for which the pattern should be created by configuring a custom fixed date. A one-time pattern model and pattern data are created based on this selection for a historical trend analysis of the time series data.
Sampling interval determines how finely the data is averaged before training. By default, it’s set to auto, where we automatically approximate the right interval based on the sensor’s estimated logging frequency, using the data time span and number of observations. If you prefer, you can also set it manually by disabling the auto toggle:
If the user is interested in predicting the possible behaviour of the sensor into the future, this configuration allows setting the duration of the forecast, starting from now:
When the forecast is enabled, a vertical line is drawn on the graph, marking the present moment.
Everything to the right-hand side of this line is the forecast into the future:
Once all the desired configurations are set, click on the create button at the bottom of the page to start creating the pattern. The pattern should be ready shortly, in the list view and in the graph.
You may hide/show a pattern by clicking on the eye icon next to each pattern, edit certain fields of the pattern, or delete it using the list view.
You may enable or disable the forecast and/or change the forecast duration when editing a machine learning trend:
Then click on "Save" to apply the changes.
Patterns Part 1: What does the Pattern tool do?
Patterns Part 2: How to Create a Pattern?
Patterns Part 3: How to Create a Regression Pattern?
Patterns Part 4: How to Create a Trend Pattern?
Patterns Part 5: How to Select a Machine Learning Regression Pattern Method?