How StarMH platform uses Deep Learning techniques for predicting future

This blog discusses the deep learning approach used in StarMH platform to forecast future in time series data. It also explains AI configuration available in StarMH admin application to perform the desired predictions.

Atif Baig

1/15/2024 - 4 min read

StarMH dashboard can be used to perform deep learning analysis on time series data. It uses LSTM (Long Short-Term Memory) based RNN (Recurrent Neural Networks) for time series predictions. Using the historical data set, this deep learning approach could be used to train AI model so that it could get familiar with the historical patterns to make predictions for the desired period of time.

AI configuration for enabling model training for data associated with individual dashboard tiles is available in StarMH admin application. So, user has to login into StarMH admin application and navigate to the desired StarMH dashboard from below screen (which is also home page of StarMH admin application).

Add the desired StarMH table if it does exist already.

Initially there is no StarMH dashboard in StartMH admin application. So, we have use to the upload button on top right corner to upload *.starmh design file which is created and downloaded from StarMH designer application. After upload a new design, we navigate to edit link where we can configure each dashboard tile so it that it can retrieve data from the desired StarMH table. Below is the StarMH admin application screen that shows tiles in each row of dashboard.

Configure the data upload preferences for the table in which data has to be ingested.

On clicking the edit configuration of first tile, we see below tile level configuration. We can enabled/disable AI predictions for any tile with a single click.

Review the documentation for data ingestion/upload API that is generated based on the table upload preferences.

StarMH admin provides the above StarMH dashboard tile level AI configuration. Max prediction length and interval unit together determine desired time duration for which the prediction should be made. Timestamp column as the name suggests is the column that is used to associate each numeric value with a timestamp (as this analysis is performed on time series data). Please note that if we do not have sufficient historical data then we might not be able to get AI predictions for the desired period of time. This is because there is very little data to train AI model in such situations. Sometimes there might be missing values in the provided data set. To deal with those missing values, fill function configuration could be used which provides us with below options.

Develop RESTful API client in your favourite language that follows the API documentation generated in step 3.

Linear Interpolation: Estimate missing value based on the surrounding values

Previous: Fill missing value using previous value

Next: Fill missing value using next value

Run the data ingestion process developed in step 4 and review the recent records in StarMH admin application.
We can enable AI for one or more columns using the above option on StarMH admin UI. However, it is important to make sure that it makes sense to make predictions for the selected columns based on the trends or patterns existing in the historical data. Below are column level AI settings.
Develop RESTful API client in your favourite language that follows the API documentation generated in step 3.
Fill function on tile level acts as the default one for each column. However, if a fill function is selected on column level then that takes precedence over tile level configuration. If the predicted values are expected to be a whole number then that it could be ensured by ticking the checkbox in the above column settings dialog. Aggregation on column data can be performed using one of the below functions. Please choose the right aggregation function based on your requirements.
Develop RESTful API client in your favourite language that follows the API documentation generated in step 3.

It is important to note that dynamic parameters can not be used in any condition for AI predictions. This is because deep learning model training and predictions are performed daily by StarMH AI module in background which is not aware of user sessions or any dynamic parameter. If you have a requirement to make predictions based on dynamic parameters such as user session variables (for example user id or company id), you might have to create dedicated dashboards for specific users in such cases.

AI configuration for enabling model training for data associated with individual dashboard tiles is available in StarMH admin application. So, user has to login into StarMH admin application and navigate to the desired StarMH dashboard from below screen (which is also home page of StarMH admin application).

Add the desired StarMH table if it does exist already.
MapleHeap Logo
MapleHeapChatbot