2

End to End AI/ML Scenario Configuration in SAP DMC

 2 years ago
source link: https://blogs.sap.com/2022/07/10/end-to-end-ai-ml-scenario-configuration-in-sap-dmc/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

End to End AI/ML Scenario Configuration in SAP DMC

Summary –

AI/ML Scenarios Management enables scenarios that are based on machine learning models to assist and automate manufacturing processes.

Here in this blog we will see simple end to end configuration of AI/ML Scenario in SAP DMC as below. More details about AI/ML Scenario Management can be referred on below link.

SAP Help – AI/ML Scenarios Management

Prerequisites

  1. Plant, Material and Operation master data is created
  2. Non-conformance code and group is created

Step 1: Build Your Own Model

  1. Go to link Teachable Machine By Google
    Picture1-57.png
  2. Give names to the classes like “Pass” and “Failed”
    Picture2.png
  3. Upload as many possible images respective for each class using upload or webcam option
    Picture5.png
  4. Click on Train your model
    Picture6.png
  5. Test and Export your model
    Picture7.png
  6. Download the model using Tensorflow.js then download radio button then click download my model
    Picture8.png
  7. We will get zip file downloaded with below filesPicture9.png

Step 2: Create AI/ML Scenario in SAP Digital Manufacturing Cloud

  1. Go to “Manage AI/ML Scenarios” and click on create
    Picture10.png
    Picture11.png
  2. “Scenario definition” screen will appear. Provide “name” and “description” for the AI/ML scenario and then click on “Define” to link the scenario with the master data. Map the Plant, Material and Operation and click on add. Further click on step 2.
    Picture12.png
  3. “Scenario configuration” screen will appear. Select visual inspection type as “binary classification”. Inspection type as “Assisted”. Click on add button and upload the “model” and “weights” file. Keep all setting like shown in below screenshot and then click on step 3
    Picture13.png
  4. “Scenario deployment” screen will appear. Add the 2 entries for conformance and non-conformance and map the NC code. Provide the class title same as class names given during training your model in step 1. Then click on step 4
    Picture14.png
  5. “Scenario testing” screen will appear. Here browse few images and test your model whether it works fine or not and shows correct results or not. Further click on “Review” button
    Picture15.png
  6. Click on “Save and activate”
    Picture16-1.png
  7. Saved entry will appear with status as activated
    Picture17.png

Step 3: Create and Configure Production Operator Dashboard for Visual Inspection

  1. Go to POD Designer application in Digital Manufacturing Cloud and create a POD for Visual Inspection by copying from existing POD (for e.g., DEFAULT_WC_POD) and create a page for Visual Inspection.
    Picture18.png
  2. Remove the below plugins
    Picture19.png
  3. Drag Plugin Container into your page and drag the Visual Inspector plugin from the Plugins list into the Plugin Container.
    Picture20.png
    Picture21.png
  4. To log non conformance codes directly without any plugin assigned during visual inspection in the POD, set the Enable Direct NC Logging configuration option to On for the Visual Inspector plugin.
    Picture22.png
  5. Save and Publish your POD.
    Picture23-1.png

Step 4: Work with Visual Inspection in Shop Floor

  1. Go to newly created POD and select respective work center and resource. Then open some SFC to work upon. Start the SFC and click on Non conformance button
    Picture24.png
  2. Click on capture and inspect, then system will propose a probability of conformant or non-conformant based on the image captured. Further choose the conformant or non-conformant button based on the assisted result.
    Picture25.png
    Picture26.png
    For nonconformance we can log NC as well
    Picture27.png
    Logged NC can be seen on Product History page for the specific SFC
    Picture28.png
  3. All the captured data sets can be seen in manage analytical data sets
    Picture29.png
    Picture30.png

Conclusion –

So overall in this post I explained how we can easily integrate the AI/ML scenario in SAP DMC to enable visual inspection in manufacturing industry. Your feedback or thoughts on this are welcome.

Reference Links –

https://blogs.sap.com/2021/05/25/visual-inspection-with-sap-digital-manufacturing-cloud/

https://teachablemachine.withgoogle.com/train/image


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK