{"id":560,"date":"2020-11-19T02:26:09","date_gmt":"2020-11-19T02:26:09","guid":{"rendered":"https:\/\/machine-learning.webcloning.com\/2020\/11\/19\/deploy-ai-models-to-edge-devices-to-protect-workers\/"},"modified":"2020-11-19T02:26:09","modified_gmt":"2020-11-19T02:26:09","slug":"deploy-ai-models-to-edge-devices-to-protect-workers","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2020\/11\/19\/deploy-ai-models-to-edge-devices-to-protect-workers\/","title":{"rendered":"Deploy AI models to edge devices to protect workers"},"content":{"rendered":"<div id=\"\">\n<!-- begin main body content --><\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>This code pattern demonstrates how to deploy an AI workloads to an edge device for scoring.<\/p>\n<h2 id=\"description\">Description<\/h2>\n<p>In many factory environments, when employees enter a designated area, they must be wearing proper Personal Protective Equipment (PPE) such as a hard hat. This pattern demonstrates a solution which monitors the designated area and issues an alert only when an employee has been detected and is not wearing a hard hat. To reduce load on the network, the video stream object detection will be performed on edge devices that are managed by <a href=\"https:\/\/www.lfedge.org\/projects\/openhorizon\/\">Open Horizon<\/a> and <a href=\"\/components\/ibm-edge-application-manager\/\">IBM Edge Application Manager<\/a>.<\/p>\n<p>The trained models are containerized, stored in a model registry, and downloaded to the edge devices. The AI model runs on the edge device platform and performs worker safety object detection and edge prediction.<\/p>\n<p>IBM Edge Application Manager is used to orchestrate the workloads to edge gateways or edge devices, and the IBM Edge Application Manager Agent starts and monitors those containerized workloads.<\/p>\n<h2 id=\"flow\">Flow<\/h2>\n<p><img class=\"lazycontent\" data-src=\"https:\/\/developer.ibm.com\/developer\/default\/patterns\/edge-computing-object-detection\/images\/edge-arch-hardhat2.png\" alt=\"flow\"><\/p>\n<ol>\n<li>AI Model developer uploads the training data to IBM Cloud Object Storage.<\/li>\n<li>Watson Machine Learning pulls the training data from IBM Cloud Object Storage and trains a model with TensorFlow. The trained model is saved back to IBM Cloud Object Storage.<\/li>\n<li>The trained models are containizered using Open Horizon and stored in a model registry.<\/li>\n<li>IBM Edge Application Manager orchestrates workloads to edge gateways or directly to edge devices (or both).<\/li>\n<li>IBM Edge Application Manager (Open Horizon) Agent invokes and monitors containizered workload.<\/li>\n<li>Models are downloaded from the model registry to the edge devices.<\/li>\n<li>AI model runs on the edge device to perform object detection and edge prediction.<\/li>\n<\/ol>\n<h2 id=\"instructions\">Instructions<\/h2>\n<p>Find the detailed steps for this pattern in the <a href=\"https:\/\/github.com\/johnwalicki\/EdgeComputing-WorkerSafety-HardHat-Detection\/blob\/master\/README.md\">README file<\/a>.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developer.ibm.com\/patterns\/edge-computing-object-detection\/<\/p>\n","protected":false},"author":0,"featured_media":561,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/560"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/561"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}