%3CLINGO-SUB%20id%3D%22lingo-sub-2052935%22%20slang%3D%22en-US%22%3EMachine%20Learning%20and%20Azure%20Sphere%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2052935%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--550947369%22%20id%3D%22toc-hId--550947398%22%20id%3D%22toc-hId--550947398%22%3EThe%20Internet%20of%20Things%20and%20Machine%20Learning%3C%2FH2%3E%0A%3CP%3EThe%20Internet%20of%20Things%20(IoT)%20is%20arriving%20at%20pace%2C%20enabling%20new%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Foverview%2Fiot%2Fart-of-the-possible%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eapplications%20and%20business%20models%3C%2FA%3E%20across%20many%20consumer%2C%20enterprise%2C%20and%20industrial%20sectors.%20When%20you%20attach%20a%20%E2%80%9Cthing%E2%80%9D%20to%20the%20Internet%2C%20you%20are%20connecting%20new%20data%20sources.%20which%20can%20be%20costly%20and%20resource%20intensive%20to%20store%20or%20upload.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%E2%80%99s%20where%20machine%20learning%20(ML)%20comes%20to%20the%20fore.%20ML%20is%20excellent%20at%20processing%20noisy%20and%20complex%20sensor%20data%20to%20determine%20higher-level%20insights%20like%20%E2%80%9Coperating%20normally%E2%80%9D%20versus%20%E2%80%9Ccooling%20unit%20failed%E2%80%9D%20in%20a%20vibration%20sensor%20data%20stream%2C%20or%20%E2%80%9Cwake%20word%20detected%E2%80%9D%20in%20an%20audio%20stream%2C%20or%20%E2%80%9Citems%20placed%20correctly%E2%80%9D%20versus%20%E2%80%9Citem%20out%20of%20place%E2%80%9D%20in%20a%20video%20stream.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EML%20can%20be%20used%20on%20the%20IoT%20device%20itself%2C%20in%20the%20cloud%2C%20or%20in%20a%20combination%20of%20both.%26nbsp%3B%20ML%20on%20IoT%20devices%20brings%20the%20processing%20closer%20to%20the%20data%20generation.%20This%20has%20lots%20of%20benefits%2C%20including%20(a)%20internet%20connectivity%20is%20not%20relied%20upon%20in%20order%20for%20the%20higher-level%20states%20to%20be%20determined%20and%20actions%20to%20be%20taken%20on%20that%20basis%2C%20(b)%20fewer%20%26nbsp%3Bresources%20are%20consumed%20for%20transmission%20of%20data%20to%20the%20cloud%2C%20and%20data%20that%20is%20not%20needed%20for%20the%20long-term%20can%20be%20immediately%20used%20and%20then%20deleted%20rather%20than%20stored%2C%20(c)%20it%20can%20enhance%20privacy%2C%20because%20the%20raw%20data%20might%20include%20more%20personal%20information%20(such%20as%20voices%20accidentally%20captured%20by%20an%20audio%20sensor%20designed%20to%20listen%20to%20machine%20behaviour)%2C%20so%20if%20that%20data%20is%20processed%20and%20discarded%20locally%2C%20then%20there%20are%20fewer%20privacy%20risks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOf%20course%2C%20there%20are%20also%20benefits%20to%20operating%20ML%20in%20the%20cloud.%20The%20availability%20of%20plentiful%20server%20resources%20means%20that%20cloud-based%20ML%20can%20be%20faster%20and%20use%20more%20complex%20models%20to%20achieve%20higher%20accuracy.%20Retraining%20of%20models%2C%20which%20is%20resource-intensive%2C%20can%20be%20quicker%20and%20redeployment%20of%20models%20can%20be%20immediate.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHybrid%20designs%20are%20also%20possible%2C%20which%20involve%20ML%20on%20IoT%20devices%20and%20in%20the%20cloud.%20One%20example%20most%20of%20us%20will%20recognize%20is%20voice%20assistants%E2%80%94the%20wake%20word%20is%20recognized%20locally%20on%20the%20device%2C%20but%20then%20the%20voice%20data%20is%20streamed%20to%20a%20cloud%20service%20where%20language%20understanding%20and%20response%20generation%20is%20done.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1936565464%22%20id%3D%22toc-hId-1936565435%22%20id%3D%22toc-hId-1936565435%22%3EAzure%20Sphere%20and%20ML%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20Azure%20Sphere%20to%20build%20IoT%20devices%20while%20relying%20on%20Microsoft%20to%20stay%20on%20top%20of%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2020%2F10%2F06%2Fwhy-we-invite-security-researchers-to-hack-azure-sphere%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOS%20security%20threats%3C%2FA%3E%2C%20which%20means%20that%20you%20can%20focus%20on%20the%20actual%20application%20logic%20that%20defines%20your%20device%2C%20including%20ML%20where%20appropriate.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20lots%20of%20advantages%20to%20using%20Azure%20Sphere%20for%20ML%20applications.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFirst%2C%20Microsoft%20secures%20the%20device%20over%20its%20full%20lifetime.%20Since%20many%20devices%20requiring%20ML%20include%20sensors%20such%20as%20cameras%20or%20microphones%2C%20it%20is%20important%20to%20invest%20in%20ongoing%20security%20as%20this%20is%20a%20prerequisite%20for%20privacy%E2%80%94an%20insecure%20device%20cannot%20protect%20private%20data.%3C%2FLI%3E%0A%3CLI%3ESecond%2C%20Azure%20Sphere%20provides%20a%20unique%20identity%20for%20the%20device%20and%20a%20certificate%20that%20encodes%20that%20identity%20for%20connection%20to%20cloud%20services%2C%20the%20result%20being%20that%20no%20other%20device%20can%20pretend%20to%20be%20%3CEM%3Ethis%3C%2FEM%3E%20device.%20This%20is%20particularly%20important%20for%20ML%20applications%20because%20data%20that%20is%20falsely%20regarded%20as%20coming%20from%20a%20device%20can%20pollute%20training%20datasets%2C%20which%20degrades%20ML%20performance.%3C%2FLI%3E%0A%3CLI%3EThird%2C%20Azure%20Sphere%E2%80%99s%20application%20update%20service%20provides%20an%20easy%20way%20to%20update%20the%20ML%20model%20and%20ML%20runtime.%3C%2FLI%3E%0A%3CLI%3EFinally%3CSTRONG%3E%2C%20%3C%2FSTRONG%3EML%20models%20are%20valuable%20intellectual%20property%2C%20and%20the%20security%20of%20the%20Azure%20Sphere%20platform%20protects%20those%20models.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20a%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Finternet-of-things%2Fmaking-the-most-of-tinyml-for-your-iot-applications%2Fba-p%2F1715095%22%20target%3D%22_blank%22%3Eprevious%20blog%20post%3C%2FA%3E%2C%20we%20described%20how%20Azure%20Sphere%20supports%20machine%20learning%20through%20%E2%80%9CTiny%20ML%E2%80%9D%2C%20and%20detailed%20four%20different%20Tiny%20ML%20solutions%20that%20can%20run%20on%20the%20MT3620.%20Is%20this%20post%2C%20we%20will%20describe%20a%20demo%20that%20uses%20one%20of%20these%20ML%20solutions%20in%20combination%20with%20cloud%20ML%20service%2C%20showing%20how%20easy%20it%20is%20to%20build%20such%20hybrid%20ML%20solutions%20with%20Azure%20Sphere.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-129111001%22%20id%3D%22toc-hId-129110972%22%20id%3D%22toc-hId-129110972%22%3ERecognizing%20faces%3A%20a%20hybrid%20ML%20example%20using%20Azure%20Sphere%20and%20Cognitive%20Services%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20illustrate%20how%20Azure%20Sphere-based%20ML%20and%20cloud%20ML%20can%20work%20together%2C%20we%E2%80%99re%20going%20to%20use%20an%20example%20application%20which%20is%20recognising%20individuals.%20This%20could%20be%20used%20for%20scenarios%20like%20appliances%20which%20personalize%20their%20experience%20based%20on%20the%20user%2C%20or%20safety%20applications%20like%20only%20allowing%20authorized%20and%20trained%20individuals%20into%20potentially%20dangerous%20locations%20in%20an%20industrial%20building.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFace%20recognition%20is%20supported%20by%20an%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fcognitive-services%2Fface%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Cognitive%20Service%3C%2FA%3E.%20It%20is%20quick%20and%20easy%20to%20train%20this%20cognitive%20service%20to%20recognize%20individuals.%20However%2C%20if%20this%20were%20to%20be%20used%20directly%20by%20an%20IoT%20device%20watching%20for%20a%20user%2C%20then%20that%20IoT%20device%20would%20have%20to%20upload%20pictures%20constantly%2C%20which%20is%20a%20poor%20design%20for%20many%20reasons%20including%20the%20bandwidth%20and%20cloud%20services%20costs%2C%20privacy%20implications%2C%20and%20energy%20consumption.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn%20the%20other%20hand%2C%20deploying%20this%20machine%20learning%20model%20to%20MT3620%20presents%20difficulties.%20An%20appropriate%20ML%20model%20would%20need%20to%20be%20retrained%20for%20each%20individual%20user%20of%20each%20device%2C%20meaning%20that%20every%20IoT%20device%20would%20need%20a%20different%20model.%20Some%20ML%20models%20are%20large%2C%20and%20while%20various%20techniques%20can%20be%20used%20to%20compress%20them%2C%20ultimately%20this%20may%20not%20be%20achievable%20with%20high%20performance%20for%20some%20tasks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20solution%20is%20to%20use%20the%20hybrid%20approach.%20In%20our%20face%20recognition%20example%2C%20we%20perform%20person%20detection%20on%20MT3620%20using%20a%20pre-existing%20model%20provided%20by%20Mediatek%20as%20part%20of%20their%20%3CA%20href%3D%22https%3A%2F%2Fneuropilot.mediatek.com%2Fresources%2Fpublic%2F2.0%2Fen%2Fdocs%2Fnpu_started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ENeuropilot-Micro%3C%2FA%3E%20framework.%20Then%2C%20only%20when%20a%20person%20is%20sensed%20do%20we%20need%20to%20use%20the%20Cognitive%20Service%20for%20face%20verification%20to%20determine%20identity.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1678343462%22%20id%3D%22toc-hId--1678343491%22%20id%3D%22toc-hId--1678343491%22%3EDemo%26nbsp%3B%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20video%20shows%20the%20demo%20in%20action%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FBL493Ug8NEI%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22IoT%20Show%20episode%20about%20the%20IoT%20Plug%20and%20Play%20bridge%20open%20source%20project%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20built%20out%20this%20demo%20using%20the%20same%20%3CA%20href%3D%22https%3A%2F%2Fneuropilot.mediatek.com%2Fresources%2Fpublic%2F2.0%2Fen%2Fdocs%2Fnpu_started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eperson%20detection%20hardware%20and%20NeuroPilot%20Micro%20ML%20model%20documented%20by%20Mediatek%3C%2FA%3E.%20To%20use%20the%20Cognitive%20Services%20Face%20API%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fcognitive-services%2Fface%2Fquickstarts%2Fclient-libraries%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20webpage%3C%2FA%3E%20describes%20how%20to%20get%20started%2C%20and%20includes%20links%20to%20samples%20for%20that%20API.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-809169371%22%20id%3D%22toc-hId-809169342%22%20id%3D%22toc-hId-809169342%22%3EResponsible%20AI%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20we%20should%20note%20that%20machine%20learning%20is%20a%20technology%20that%20it%20is%20particularly%20important%20to%20apply%20responsibly.%20ML-based%20products%20should%20be%20designed%20to%20protect%20principles%20such%20as%20being%20inclusive%2C%20human-centric%2C%20behaving%20understandably%2C%20and%20promoting%20fairness.%20At%20Microsoft%2C%20we%20take%20these%20responsibilities%20seriously%20for%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fai%2Four-approach%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eour%20own%20products%3C%2FA%3E%2C%20and%20we%20provide%20a%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fai%2Fresponsible-ai-resources%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Erange%20of%20resources%3C%2FA%3E%20to%20help%20our%20partners%20and%20customers%20navigate%20this%20space.%3C%2FP%3E%0A%3CDIV%20class%3D%22ms-editor-squiggler%22%20style%3D%22color%3A%20initial%3B%20font%3A%20initial%3B%20font-feature-settings%3A%20initial%3B%20font-kerning%3A%20initial%3B%20font-optical-sizing%3A%20initial%3B%20font-variation-settings%3A%20initial%3B%20forced-color-adjust%3A%20initial%3B%20text-orientation%3A%20initial%3B%20text-rendering%3A%20initial%3B%20-webkit-font-smoothing%3A%20initial%3B%20-webkit-locale%3A%20initial%3B%20-webkit-text-orientation%3A%20initial%3B%20-webkit-writing-mode%3A%20initial%3B%20writing-mode%3A%20initial%3B%20zoom%3A%20initial%3B%20place-content%3A%20initial%3B%20place-items%3A%20initial%3B%20place-self%3A%20initial%3B%20alignment-baseline%3A%20initial%3B%20animation%3A%20initial%3B%20appearance%3A%20initial%3B%20aspect-ratio%3A%20initial%3B%20backdrop-filter%3A%20initial%3B%20backface-visibility%3A%20initial%3B%20background%3A%20initial%3B%20background-blend-mode%3A%20initial%3B%20baseline-shift%3A%20initial%3B%20block-size%3A%20initial%3B%20border-block%3A%20initial%3B%20border%3A%20initial%3B%20border-radius%3A%20initial%3B%20border-collapse%3A%20initial%3B%20border-inline%3A%20initial%3B%20inset%3A%20initial%3B%20box-shadow%3A%20initial%3B%20box-sizing%3A%20initial%3B%20break-after%3A%20initial%3B%20break-before%3A%20initial%3B%20break-inside%3A%20initial%3B%20buffered-rendering%3A%20initial%3B%20caption-side%3A%20initial%3B%20caret-color%3A%20initial%3B%20clear%3A%20initial%3B%20clip%3A%20initial%3B%20clip-path%3A%20initial%3B%20clip-rule%3A%20initial%3B%20color-interpolation%3A%20initial%3B%20color-interpolation-filters%3A%20initial%3B%20color-rendering%3A%20initial%3B%20color-scheme%3A%20initial%3B%20columns%3A%20initial%3B%20column-fill%3A%20initial%3B%20gap%3A%20initial%3B%20column-rule%3A%20initial%3B%20column-span%3A%20initial%3B%20contain%3A%20initial%3B%20contain-intrinsic-size%3A%20initial%3B%20content%3A%20initial%3B%20content-visibility%3A%20initial%3B%20counter-increment%3A%20initial%3B%20counter-reset%3A%20initial%3B%20counter-set%3A%20initial%3B%20cursor%3A%20initial%3B%20cx%3A%20initial%3B%20cy%3A%20initial%3B%20d%3A%20initial%3B%20display%3A%20block%3B%20dominant-baseline%3A%20initial%3B%20empty-cells%3A%20initial%3B%20fill%3A%20initial%3B%20fill-opacity%3A%20initial%3B%20fill-rule%3A%20initial%3B%20filter%3A%20initial%3B%20flex%3A%20initial%3B%20flex-flow%3A%20initial%3B%20float%3A%20initial%3B%20flood-color%3A%20initial%3B%20flood-opacity%3A%20initial%3B%20grid%3A%20initial%3B%20grid-area%3A%20initial%3B%20height%3A%20initial%3B%20hyphens%3A%20initial%3B%20image-orientation%3A%20initial%3B%20image-rendering%3A%20initial%3B%20inline-size%3A%20initial%3B%20inset-block%3A%20initial%3B%20inset-inline%3A%20initial%3B%20isolation%3A%20initial%3B%20letter-spacing%3A%20initial%3B%20lighting-color%3A%20initial%3B%20line-break%3A%20initial%3B%20list-style%3A%20initial%3B%20margin-block%3A%20initial%3B%20margin%3A%20initial%3B%20margin-inline%3A%20initial%3B%20marker%3A%20initial%3B%20mask%3A%20initial%3B%20mask-type%3A%20initial%3B%20max-block-size%3A%20initial%3B%20max-height%3A%20initial%3B%20max-inline-size%3A%20initial%3B%20max-width%3A%20initial%3B%20min-block-size%3A%20initial%3B%20min-height%3A%20initial%3B%20min-inline-size%3A%20initial%3B%20min-width%3A%20initial%3B%20mix-blend-mode%3A%20initial%3B%20object-fit%3A%20initial%3B%20object-position%3A%20initial%3B%20offset%3A%20initial%3B%20opacity%3A%20initial%3B%20order%3A%20initial%3B%20origin-trial-test-property%3A%20initial%3B%20orphans%3A%20initial%3B%20outline%3A%20initial%3B%20outline-offset%3A%20initial%3B%20overflow-anchor%3A%20initial%3B%20overflow-wrap%3A%20initial%3B%20overflow%3A%20initial%3B%20overscroll-behavior-block%3A%20initial%3B%20overscroll-behavior-inline%3A%20initial%3B%20overscroll-behavior%3A%20initial%3B%20padding-block%3A%20initial%3B%20padding%3A%20initial%3B%20padding-inline%3A%20initial%3B%20page%3A%20initial%3B%20page-orientation%3A%20initial%3B%20paint-order%3A%20initial%3B%20perspective%3A%20initial%3B%20perspective-origin%3A%20initial%3B%20pointer-events%3A%20initial%3B%20position%3A%20initial%3B%20quotes%3A%20initial%3B%20r%3A%20initial%3B%20resize%3A%20initial%3B%20ruby-position%3A%20initial%3B%20rx%3A%20initial%3B%20ry%3A%20initial%3B%20scroll-behavior%3A%20initial%3B%20scroll-margin-block%3A%20initial%3B%20scroll-margin%3A%20initial%3B%20scroll-margin-inline%3A%20initial%3B%20scroll-padding-block%3A%20initial%3B%20scroll-padding%3A%20initial%3B%20scroll-padding-inline%3A%20initial%3B%20scroll-snap-align%3A%20initial%3B%20scroll-snap-stop%3A%20initial%3B%20scroll-snap-type%3A%20initial%3B%20shape-image-threshold%3A%20initial%3B%20shape-margin%3A%20initial%3B%20shape-outside%3A%20initial%3B%20shape-rendering%3A%20initial%3B%20size%3A%20initial%3B%20speak%3A%20initial%3B%20stop-color%3A%20initial%3B%20stop-opacity%3A%20initial%3B%20stroke%3A%20initial%3B%20stroke-dasharray%3A%20initial%3B%20stroke-dashoffset%3A%20initial%3B%20stroke-linecap%3A%20initial%3B%20stroke-linejoin%3A%20initial%3B%20stroke-miterlimit%3A%20initial%3B%20stroke-opacity%3A%20initial%3B%20stroke-width%3A%20initial%3B%20tab-size%3A%20initial%3B%20table-layout%3A%20initial%3B%20text-align%3A%20initial%3B%20text-align-last%3A%20initial%3B%20text-anchor%3A%20initial%3B%20text-combine-upright%3A%20initial%3B%20text-decoration%3A%20initial%3B%20text-decoration-skip-ink%3A%20initial%3B%20text-indent%3A%20initial%3B%20text-overflow%3A%20initial%3B%20text-shadow%3A%20initial%3B%20text-size-adjust%3A%20initial%3B%20text-transform%3A%20initial%3B%20text-underline-offset%3A%20initial%3B%20text-underline-position%3A%20initial%3B%20touch-action%3A%20initial%3B%20transform%3A%20initial%3B%20transform-box%3A%20initial%3B%20transform-origin%3A%20initial%3B%20transform-style%3A%20initial%3B%20transition%3A%20initial%3B%20user-select%3A%20initial%3B%20vector-effect%3A%20initial%3B%20vertical-align%3A%20initial%3B%20visibility%3A%20initial%3B%20-webkit-app-region%3A%20initial%3B%20border-spacing%3A%20initial%3B%20-webkit-border-image%3A%20initial%3B%20-webkit-box-align%3A%20initial%3B%20-webkit-box-decoration-break%3A%20initial%3B%20-webkit-box-direction%3A%20initial%3B%20-webkit-box-flex%3A%20initial%3B%20-webkit-box-ordinal-group%3A%20initial%3B%20-webkit-box-orient%3A%20initial%3B%20-webkit-box-pack%3A%20initial%3B%20-webkit-box-reflect%3A%20initial%3B%20-webkit-highlight%3A%20initial%3B%20-webkit-hyphenate-character%3A%20initial%3B%20-webkit-line-break%3A%20initial%3B%20-webkit-line-clamp%3A%20initial%3B%20-webkit-mask-box-image%3A%20initial%3B%20-webkit-mask%3A%20initial%3B%20-webkit-mask-composite%3A%20initial%3B%20-webkit-perspective-origin-x%3A%20initial%3B%20-webkit-perspective-origin-y%3A%20initial%3B%20-webkit-print-color-adjust%3A%20initial%3B%20-webkit-rtl-ordering%3A%20initial%3B%20-webkit-ruby-position%3A%20initial%3B%20-webkit-tap-highlight-color%3A%20initial%3B%20-webkit-text-combine%3A%20initial%3B%20-webkit-text-decorations-in-effect%3A%20initial%3B%20-webkit-text-emphasis%3A%20initial%3B%20-webkit-text-emphasis-position%3A%20initial%3B%20-webkit-text-fill-color%3A%20initial%3B%20-webkit-text-security%3A%20initial%3B%20-webkit-text-stroke%3A%20initial%3B%20-webkit-transform-origin-x%3A%20initial%3B%20-webkit-transform-origin-y%3A%20initial%3B%20-webkit-transform-origin-z%3A%20initial%3B%20-webkit-user-drag%3A%20initial%3B%20-webkit-user-modify%3A%20initial%3B%20white-space%3A%20initial%3B%20widows%3A%20initial%3B%20width%3A%20initial%3B%20will-change%3A%20initial%3B%20word-break%3A%20initial%3B%20word-spacing%3A%20initial%3B%20x%3A%20initial%3B%20y%3A%20initial%3B%20z-index%3A%20initial%3B%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2052935%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jamesscott_1-1610462110775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245663iC50B2B101E4223B9%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jamesscott_1-1610462110775.png%22%20alt%3D%22jamesscott_1-1610462110775.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAzure%20Sphere%20supports%20machine%20learning%20both%20on-device%20and%20in%20the%20cloud%2C%20as%20shown%20in%20this%20demo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2052935%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Sphere%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECognitive%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMachine%20Learning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143849%22%20slang%3D%22en-US%22%3ERe%3A%20Machine%20Learning%20and%20Azure%20Sphere%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143849%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20hybrid%20ML%20examples%20using%20Azure%20Sphere%20and%20Cognitive%20Services%20for%20recognizing%20%3CSTRONG%3E%3CEM%3Evoices%3C%2FEM%3E%3C%2FSTRONG%3E%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

The Internet of Things and Machine Learning

The Internet of Things (IoT) is arriving at pace, enabling new applications and business models across many consumer, enterprise, and industrial sectors. When you attach a “thing” to the Internet, you are connecting new data sources. which can be costly and resource intensive to store or upload.

 

That’s where machine learning (ML) comes to the fore. ML is excellent at processing noisy and complex sensor data to determine higher-level insights like “operating normally” versus “cooling unit failed” in a vibration sensor data stream, or “wake word detected” in an audio stream, or “items placed correctly” versus “item out of place” in a video stream.  

 

ML can be used on the IoT device itself, in the cloud, or in a combination of both.  ML on IoT devices brings the processing closer to the data generation. This has lots of benefits, including (a) internet connectivity is not relied upon in order for the higher-level states to be determined and actions to be taken on that basis, (b) fewer  resources are consumed for transmission of data to the cloud, and data that is not needed for the long-term can be immediately used and then deleted rather than stored, (c) it can enhance privacy, because the raw data might include more personal information (such as voices accidentally captured by an audio sensor designed to listen to machine behaviour), so if that data is processed and discarded locally, then there are fewer privacy risks.

 

Of course, there are also benefits to operating ML in the cloud. The availability of plentiful server resources means that cloud-based ML can be faster and use more complex models to achieve higher accuracy. Retraining of models, which is resource-intensive, can be quicker and redeployment of models can be immediate.

 

Hybrid designs are also possible, which involve ML on IoT devices and in the cloud. One example most of us will recognize is voice assistants—the wake word is recognized locally on the device, but then the voice data is streamed to a cloud service where language understanding and response generation is done.

 

Azure Sphere and ML

 

You can use Azure Sphere to build IoT devices while relying on Microsoft to stay on top of OS security threats, which means that you can focus on the actual application logic that defines your device, including ML where appropriate.

 

There are lots of advantages to using Azure Sphere for ML applications.

  • First, Microsoft secures the device over its full lifetime. Since many devices requiring ML include sensors such as cameras or microphones, it is important to invest in ongoing security as this is a prerequisite for privacy—an insecure device cannot protect private data.
  • Second, Azure Sphere provides a unique identity for the device and a certificate that encodes that identity for connection to cloud services, the result being that no other device can pretend to be this device. This is particularly important for ML applications because data that is falsely regarded as coming from a device can pollute training datasets, which degrades ML performance.
  • Third, Azure Sphere’s application update service provides an easy way to update the ML model and ML runtime.
  • Finally, ML models are valuable intellectual property, and the security of the Azure Sphere platform protects those models.

 

In a previous blog post, we described how Azure Sphere supports machine learning through “Tiny ML”, and detailed four different Tiny ML solutions that can run on the MT3620. Is this post, we will describe a demo that uses one of these ML solutions in combination with cloud ML service, showing how easy it is to build such hybrid ML solutions with Azure Sphere.

 

Recognizing faces: a hybrid ML example using Azure Sphere and Cognitive Services

 

To illustrate how Azure Sphere-based ML and cloud ML can work together, we’re going to use an example application which is recognising individuals. This could be used for scenarios like appliances which personalize their experience based on the user, or safety applications like only allowing authorized and trained individuals into potentially dangerous locations in an industrial building.

 

Face recognition is supported by an Azure Cognitive Service. It is quick and easy to train this cognitive service to recognize individuals. However, if this were to be used directly by an IoT device watching for a user, then that IoT device would have to upload pictures constantly, which is a poor design for many reasons including the bandwidth and cloud services costs, privacy implications, and energy consumption.

 

On the other hand, deploying this machine learning model to MT3620 presents difficulties. An appropriate ML model would need to be retrained for each individual user of each device, meaning that every IoT device would need a different model. Some ML models are large, and while various techniques can be used to compress them, ultimately this may not be achievable with high performance for some tasks.

 

The solution is to use the hybrid approach. In our face recognition example, we perform person detection on MT3620 using a pre-existing model provided by Mediatek as part of their Neuropilot-Micro framework. Then, only when a person is sensed do we need to use the Cognitive Service for face verification to determine identity.

 

Demo 

 

The following video shows the demo in action:

 

 

We built out this demo using the same person detection hardware and NeuroPilot Micro ML model documented by Mediatek. To use the Cognitive Services Face API, this webpage describes how to get started, and includes links to samples for that API.

 

Responsible AI

 

Finally, we should note that machine learning is a technology that it is particularly important to apply responsibly. ML-based products should be designed to protect principles such as being inclusive, human-centric, behaving understandably, and promoting fairness. At Microsoft, we take these responsibilities seriously for our own products, and we provide a range of resources to help our partners and customers navigate this space.

 
1 Comment
Senior Member

Hello,

 

Do you have any hybrid ML examples using Azure Sphere and Cognitive Services for recognizing voices?