HS-1640: Set Up a Study Using Knowledge Studio Predictive Model

In this tutorial, you will perform a material calibration using Knowledge Studio Predictive model.

Before you begin this tutorial, complete the first five steps of HS-1507: Material Calibration with Area Tool in Data Source or import the archive file from <hst.zip>/HS-1640/ to your working directory.

In this tutorial, you will perform a DOE and transfer data to Knowledge Studio to build a machine learning model. Once the model is built, it will be used as a solver in the optimization process.

Run MELS DOE Study

  1. Add a DOE.
    1. In the Explorer, right-click and select Add from the context menu.
      The Add dialog opens.
    2. For Definition from, select an approach.
    3. Select DOE and click OK.
  2. Go to the DOE > Specifications step.
  3. In the work area, set the Mode to Modified Extensible Lattice Sequence.
  4. In the Settings tab of the Channel Selector, change the Number of Runs to 30.
    By default, the minimum required number of runs is 24. However, six additional runs are added to use as testing data in Knowledge Studio.
  5. Click Apply.
  6. Go to the Evaluate step.
  7. Optional: Select 4 Jobs for Multi-Execution.
    Tip: Increasing this decreases the evaluation time.
  8. Click Evaluate Tasks.

Export DOE Runs for Knowledge Studio

  1. Go to the DOE > Report step.
  2. Enable the Knowledge Studio .xlsx checkbox.
  3. Click Create Report.
An Excel report, doe_1_ooxml.xlsx, is generated and saved to the report directory.

Build Predictive Model in Knowledge Studio

  1. Import doe_1_ooxml.xlsx into Knowledge Studio.


    Figure 1.
  2. Build a machine learning model of your preference. In this tutorial, Deep Learning model is selected.


    Figure 2.
  3. Verify high accuracy is achieved.
    If high accuracy cannot be obtained, it may be due to insufficient data. Therefore, another DOE is needed to compensate. Cross-validation, R2, of Deep Learning model is 0.975598.


    Figure 3.

Run Optimization with Knowledge Studio Model

  1. Add an Optimization.
    1. In the Explorer, right-click and select Add from the context menu.
    2. In the Add dialog, select Optimization.
    3. For Definition from, select an approach and click OK.
  2. Go to the Define Models step.
  3. From the File Browser, locate the .kdm file in the Knowledge Studio project directory and drag-and-drop it into the work area.
    Tip: The .kdm file shares the same name with the build model in the GUI.
  4. Click Import Variables.
  5. Go to the Define Output Responses step.
  6. Click the Objectives/Constraints - Goals tab.
  7. Apply an objective on the Area Between Two Curves output response.
    1. Click Add Goal.
    2. In the Type column, select Minimize.


    Figure 4.
  8. Go to the Specifications step.
  9. In the work area, set the Mode to Sequential Quadratic Programming (SQP).
    Note: Since Knowledge Studio model is a predictive model, optimization methods that are not response surface based are recommended.
  10. Click Apply.
  11. Go to the Evaluate step.
  12. Click Evaluate Tasks.
  13. Click the Evaluation Plot tab to plot the optimization iteration history of the objective.


    Figure 5.