# Search the Community

Showing results for tags 'prediction'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• Community Technical Forums
• General Seeq Discussions
• Training Resources
• Product Suggestions
• Seeq Data Lab
• Community News
• Seeq Blog Posts
• News Articles
• Press Releases
• Upcoming Events
• Resources

### Calendars

• Community Calendar

### Categories

• Seeq FAQs
• Online Manual
• General Information

• Published
• Code
• Media

• 0 Replies

• 0 Reviews

• 0 Views

### Level of Seeq User

Found 12 results

2. The following steps will create a prediction model for every capsule in a condition. Step 1. pick a condition with capsules that isolate the desired area of regression. Any condition with non-overlapping capsules will work as long as there are enough sample points within its duration. For this example, an increasing temperature condition will be used. However, periodic conditions and value search conditions will work as well. Step 2. Create a time counter for each capsule in the condition. This can be done with the new timesince() function in the formula tool. The timesince() function will have samples spaced depending on the selected period so it is important to select a period that has enough points to build a model with. See below for details on the timesince() formula setup. Step 3. In this step a condition with capsule properties that hold the regression constants will be made. This will be done in the formula tool with one formula. The concept behind the formula below is to split the condition from step one into individual capsules and use each of the capsules as the training window for a regression model. Once the regression model is done for one capsule the coefficients of the model are assigned as properties to the capsule used for the training window. The formula syntax for a linear model-based condition can be seen below. An example of a polynomial regression model can be found in the post below. \$Condtition.removeLongerThan(24h).transform(\$cap-> { \$model=\$SignalToModel.validValues().regressionModelOLS( group(\$cap),false,\$Time) \$cap.setProperty('Slope',\$model.get('coefficient1')) .setProperty('Intercept',\$model.get('intercept'))}) Below is a screenshot of how the formula looks in Seeq. Note: The regression constants can be added to the capsule pane by clicking on the black stats button and selecting add column. Below is a screen shot of the results. Step 4. Once a condition with the regression coefficients has been created the information will need to be extracted to a signal form. The following formula syntax will extract the information. This will need to be repeated for every constant from your regression model. e.g.(So for a linear model this must be done for both the slope and for the intercept.) The formula syntax for extracting the regression coefficients can be seen below. \$signal=\$Condition.transformToSamples( \$cap -> sample(\$cap.getmiddle(), \$cap.getProperty('Intercept').toNumber()), 1min) \$signal.aggregate(average(),\$Condition,durationKey()) Below is a screenshot of the formula in Seeq. Below is a screenshot of the display window of how the signals should look. Step 5. Use the formula tool to plot the equation. See screenshot below for details. Final Result
3. Another common question through the support portal this morning that is of general interest To help with this example I am going to create a quick polynomial prediction using Data from Area C in the example set. Our target is going to be to try to predict compressor power as a function of all of the input weather signals If you wanted to re-create this prediction model in excel or another tool you need the coefficients from block #1 in the screenshot above and the y-intercept from block #2 in the screenshot. Inside of the workbench tool you will see rounded values for each of the coefficients and intercepts but the full values are available when you copy them to the clipboard by clicking the little button highlighted in red. To fill out the example in excel the formula will look like the following \$temperature^2 * -0.000230 + \$temperature * 0.0607 + \$WB^2 * 0.000646 + \$WB * -0.101 + 6.5946 A final point to mention here is that for multi-variable regressions with many input signals it is important to take a minute and evaluate the p-values listed in the coefficient table. If the p-values for any coefficient are above 0.05 it is best practices to rethink if that signal needs to be included in the model at all or if you may need to perform data data cleansing or re-alignment to create a better performing model. Good blog post on P-values - https://medium.com/analytics-vidhya/understanding-the-p-value-in-regression-1fc2cd2568af Great reference post on how to optimize regression models using time shifting -
4. Using some of the new Asset Group features in R52 we can easily create unique prediction training ranges for each asset. In this example we are going to create three separate training ranges for three assets. Step 1 - Find the assets you want to model with your prediction and add them to a new asset group Step 2 - Create a Manual Condition for each asset with your desired training range for each particular asset. These training ranges can be as simple as single capsules or as complex as a Manual Condition combined with a mode of operation condition. Step 3 - Add the manual conditions to your asset group as a new "Training Range" column Step 4 - Create the prediction using the signals and the condition from the asset group. Key points in the prediction tool is to make sure that you select a wide training window that encompasses the ranges of all the individual assets. Under the advanced section select the training range condition we created in Step 3. You now have a Temperature Model signal that you can "swap" across all assets in your group with different training ranges in on each of the assets.
• 4
• • 7. We were very excited to announce that in R21.0.44+ we can now add best fit curves and their corresponding r2 value to the Scatter Plot display. Something that could further enhance this display would be adding in the ability to display the trend line equation on the chart beside the r2.
8. Scenario: I have created a regression or prediction model for my process but i want to apply that same regression model to another set of signals or a different period of time. This could be helpful for comparing how one piece of equipment is operating when compared against a regression built for another system. It could be used to predict how a system will behave based on how some other similar system behaved. It could be used predict how a system will behave before you have enough information to build that system or run its own model, or any number of applications where we might want to apply a regression or prediction model built on one set of signals to another set of signals. Solution: First off, we have to build a prediction model! In this case i have modeled a Filtration system, predicting filter head loss. I took into account the time the filter has been in service, the raw water turbidity, and the Filter turbidity. Next, if i click on the information icon for my prediction signal, i am able to see the formula that was used to create this prediction. We will need to copy this formula: Next, I need to identify my new signals. In my case, i am going to apply this prediction model to Filter 12. Once i have all of my signals that will be sued to the prediction i can paste my formula into a new formula and make sure all my variables line up (or, alternately and a bit easier, just use the duplicate to formula function from the information screen shown above by clicking on the down arrow next to the duplicate button). Finally, I need to update the PREDICT section of my formula denoted by the .predict() function with the signals i will apply my prediction model to. I can do this by using the search button in the formula tool to add my new signals, and then update the .predict() section of my formula with my new variables, make sure to put them in correctly and in the right order otherwise your model will be off! Finally, i can use my prediction model that i built for Filter 1 on Filter 12 and derive further insight, in this case i might question whether my systems are truly as similar as i think they are or whether there is something causing my model to deviate from what was expected for filter 12. In my case, both prediction models are in red:
9. Hi All, I'm working on some data , wherein i have 6 Independent variable and 1 dependent variable. while running the Regression model on this data, i get very less Accuracy of model as mentioned in below screenshot. Note :- As far as data Pre-processing is concern , i have scale the features and also imputes the missing values on the basis of mean imputation. Do let me know if there's any pre-processing feature is there in seek to deal with data. Regards, JItesh Vachheta
10. Seeq Version: R21.0.42+ Scenario: A user has a regularly updating signal and wants to predict a future value based on some amount of previous data. For this example the User wants to predict the Area A Temperature 3 days in the future based on the previous week (7 days) of data. Steps: 1. Bring in the regularly updating Temperature signal. 2. The Formula Tool can be used to create a condition that contains a single capsule referenced from the current time. This capsule will be based on the current time and extend 7 days in the past and 3 days into the future. Formula: condition(10d,capsule(now()-7d,now()+3d)) 3. The Prediction Tool requires an input signal to model the Temperature against. In order to have fit the data with a linear regression, a linear input signal is required. One of the simplest ways of generating a linear signal is the cumulative amount of time within the capsule. This will give a straight line to compare against. Use the Formula Tool to generate the cumulative amount of time (in minutes) within the capsule: Formula: 1min.toSignal(1min).runningSum(\$condition) 4. Use the Prediction Tool to linearly fit the data within the capsule. The signal to model is the "Temperature" and the input is the "Running Time for Forcast". The training window can be limited to just the condition in "Advanced" section. The final result is a linear fit of the data that is extend into the future to the end of the capsule. Because the "7 days in past to 3 days in future" condition is relative to the current time, the prediction will continuously update.
11. When performing certain types of analysis, it is desirable to combine past measured data with some future prediction, whether that prediction is dynamic or static. Future predicted data can be used for degradation or maintenance date predictions, future performance modeling, signal forecasting, or a wide variety of other potential use cases. Combining some future data with a measured signal is simple in Seeq! Another major benefit? As new data comes in the predicted values can be automatically updated with the actual data! Here is one way to join past measured data with some future forecast signal. Signals To combine measured and forcasted data we will need: Measured Data - a signal(s) that will replace the predicted signal as it becomes available Prediction / Forecast Signal - This could be a flat signal entered in formula, a signal developed in the prediction tool, or some other signal that extends out into the future Method for Combining the Signals 1. Create Future Data Valid Condition This Condition defines the period of time in which the Forcasted signal will be spliced into the Measured Data signal. The formula is based on the last known measured time stamp. In formula we will create a condition by inputting the code snippet below and calling it \$validPlanningRange Formula: /* Define the period when planning data should be used. This time period will start at now (i.e., the last available measured data point) and extend to some point in the future. */ //Define a search window to look for now, This must have a past time to start in, and a future time to look through \$searchPeriod = capsule('2018-08-01T00:00-08:00', '2020-01-01T00:00-08:00') //Identify now by finding the last available measured time stamp \$now = \$measuredData.toGroup(\$searchPeriod).last().getKey() //Create a condition representing now to now plus 6 months \$nowCapsule = capsule(\$now, \$now + 6 months) condition(7 months, \$nowCapsule) Variable Descriptions \$searchPeriod - Capsule defining the search window which will be used to located the most recent data point. For best performance, the start date should be periodically updated to limit the number of measured data points which will be returned. The end date can be set way into the future. \$now - Date representing the point in time where the combined signal we are creating will switch from historical to future data. \$nowCapsule - This creates a capsule which is then made into a condition for use in the next step Create Combined Signal. For maximum performance, recommend keeping the capsule length to the minimum necessary duration (e.g., don't add 1 year if only 6 months is the standard analysis window). 2. Create a Combined Master Signal Once again, in formula we will input the code below to create a new signal that is the combination of the Measured Data and a Forcast Signal Formula \$measuredData.splice(\$forecastSignal,\$validPlanningRange) The result is one signal that combines our Measured Data and a Forecast Signal: The Master Signal appears as dashed line whereas the measured data appears as a solid line. The dashed line indicates the signal is uncertain and therefore, expected to change. 3. Make sure the Master Signal is Auto-Updating By default when the page is loaded or the time range adjusted, the Master Signal will be recalculated and any new data from the Measured Signal will replace the Forecast Signal. Additionally, the analysis can be set to Auto Update.
12. Hi Everyone, I have a case scenario where we would like to predict the number of days before a parameter reaches a set limit. For example, I wanted to see in my trend a dash line where my Tank Level would reach 80%. Correct me if I am wrong but the Predictive Tool for Seeq uses co-variance signals to generate a forecasted signal. What I wanted to achieve is to forecast the predictive value of a signal in the next succeeding days or hours. Am I able to do so in SEEQ? Regards, Ricky
×