Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Machine_Learning_for_IoT_at_the_edge_for_resour...

Avatar for sukanya sukanya
December 04, 2019

 Machine_Learning_for_IoT_at_the_edge_for_resource_constraint_regions.pdf

Avatar for sukanya

sukanya

December 04, 2019

Other Decks in Technology

Transcript

  1. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. ML for IoT at the edge for resource-constrained regions Sukanya Mandal D V C 0 9 Associate Consultant Capgemini Technology Services India Limited
  2. Agenda ➢ MDGs and SDGs ➢ IoT and SDGs ➢

    Internet of Things ➢ How IoT is making SDGs possible – use cases ➢ IoT Lifecycle ➢ Edge Computing ➢ Edge – Cloud Bonding ➢ AWS Sagemaker ➢ AWS Greengrass ➢ AWS Sagemaker + AWS Greengrass - The CLOUD and EDGE working together ➢ Demo
  3. Millennium Development Goals (MDGs) • Leaders from 189 countries in

    the year 2000 agreed on a vision for the new millennium • The goal was to eradicate extreme poverties across the world • They came up with 8 MDG goals with a target of 15 years
  4. Achievements from MDGs • More than 1 billion people have

    been lifted out of extreme poverty (since 1990) • Child mortality dropped by more than half (since 1990) • The number of out of school children has dropped by more than half (since 1990) • HIV/AIDS infections fell by almost 40 percent (since 2000)
  5. There is still a lot more to do.... • Over

    800 million people are living on less than $1.25 a day • 1/9 people in our planet goes to sleep hungry each night • Deforestation remains high in many countries • Oceans are becoming more ACIDIC threatening food security and marine ecosystems. • 1/6 adults in the world is illiterate – 2/3 of them are women
  6. Significant improvements – MDGs to SDGs • A lot has

    been achieved with MDG and lot more can be achieved in the next years • There is plenty of room for hope...for actions in the next 15 years....embarks the creation and adoption of SDGs in 2015
  7. The Sustainable Development Goals (SDGs) • Today – the world

    is more connected by technology • 95% of people are now connected by a mobile signal • Balancing the three pillars of sustainable development – social progress, economic growth and environmental protection • However, our climate is changing, our planet is transforming and there are more people on earth than ever before • Here comes the 2030 goals.... Why 2030? Because if we don’t curb our greenhouse gas (GHG) emissions by then, we’ll pass a crucial tipping point that we cannot come back from. For example, imagine if 40% of the human population didn’t have access to water and sanitation.
  8. IoT and SGDs • IoT is considered as one of

    the most impactful technological advancements we will see before 2030 (among a few others) - according to McKinsey. • Most current IoT projects can contribute to achieving both the SDGs and the UN’s 2030 mission. • An analysis conducted by World Economic Forum in collaboration with IoT research firm IoT Analytics, showed that 84% of existing IoT deployments can address the SDGs. IoT projects developed over the past couple of years has the potential to address - SDG 2: ZERO HUNGER SDG 3: GOOD HEALTH AND WELL-BEING SDG 6: CLEAN WATER AND SANITATION SDG 9: INDUSTRY, INNOVATION AND INFRASTRUCTURE SDG 11: SUSTAINABLE CITIES SDG 13: CLIMATE ACTION SDG 14: LIFE BELOW WATER SDG 15: LIFE ON LAND And a lot more innovation to come...to address other SDG goals Why is the impact of IoT so large? At its core, IoT is about measuring and remotely controlling previously unconnected “things”. It reaches people and things to places that older technology could not.
  9. The Internet of Things (IoT) The internet of things, or

    IoT, is a system of interrelated computing devices, mechanical and digital machines, objects, animals or people that are provided with unique identifiers (UIDs) and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction.
  10. Use case: #2 - Zero Hunger An estimated 821 million

    people were undernourished in 2017. Annual cereal production will need to rise to about 3 billion tonnes and annual meat production will need to rise by over 200 million tonnes to reach 470 million tonnes to feed 9.1 billion people by 2050”
  11. Use case: #3 - Good Health and well-being 3 billion

    people worldwide lack access to basic sanitation. Noncommunicable diseases alone will cost low- and middle-income countries more than $7 trillion in the next 15 years.”
  12. Use case: #6 - Clean water and sanitation Around 700

    million people in 43 countries suffer today from water scarcity. By 2025, 1.8 billion people will be living in countries or regions with absolute water scarcity, and two thirds of the world’s population could be living under water stressed conditions.”
  13. Use case: #9 – Industry, Innovation and Infrastructure For the

    lower-income countries, the existent constraints regarding infrastructure affect firm productivity by around 40%. PARKING
  14. Use case: #11 – Sustainable Cities Half of humanity –

    3.5 billion people – lives in cities today and 5 billion people are projected to live in cities by 2030.The world’s cities occupy just 3% of the Earth’s land, but account for 60-80% of energy consumption and 75% of carbon emissions. Encouraging development of spaces that are more livable, greener, less polluting and more welcoming to its citizens
  15. Use case: #13 – Climate Action Given current concentrations and

    on-going emissions of greenhouse gases, it is likely that by the end of this century, the increase in global temperature will exceed 1.5°C. Global emissions of carbon dioxide (CO2) have increased by almost 50% since 1990
  16. Use case: #14 – Life Below Water Over three billion

    people depend on marine and coastal biodiversity for their livelihoods Globally, the market value of marine and coastal resources and industries is estimated at $3 trillion per year or about 5% of global GDP
  17. Use case: #15 – Life on Land Around 1.6 billion

    people depend on forests for their livelihood. 74% of the poor are directly affected by land degradation globally.
  18. Edge Computing • The edge is the physical location where

    things and people connect with the networked digital world. • It is part of a distributed computing topology where information processing is located close to the edge, which is where things and people produce or consume that information.
  19. Edge – Cloud Bonding • Edge computing and centralized cloud

    computing are complementary, as edge computing is a topology while cloud computing is a style of computing. • They don’t compete with each other directly even though cloud computing offerings have been extending closer to the edge over time • On the other hand, edge computing completes cloud computing
  20. Hardware Setup To start the AWS greengrass core, type the

    following in the RPi terminal: To test whether greengrass IoT core is running on the device: 870 is the PID-Number, this will be different for your device. Configure the Raspberry Pi to run AWS Greengrass IoT core on top of Raspbian OS
  21. Install the framework There are various precompiled framework libraries provided

    by AWS - • Amazon Sagemaker NEO deep learning runtime • MXNET • Tensorflow • Chainer Steps: • Download the libraries from the AWS documentation page • Install the downloaded libraries to Rpi running Greengrass IoT core. Once the framework is installed, you will get a function handler. Keep it safe to be used later for your lambda function • After installing the framework, create a model package
  22. Greengrass group and core In your AWS console you would

    need to create a greengrass group in order to proceed further. An AWS IoT Greengrass group contains settings and other information about its components, such as devices, Lambda functions, and connectors. A group defines how its components can interact with each other. Choose a name while creating the greengrass group While creating greengrass group, you need to create a greengrass core as well.
  23. Greengrass group and core Also when you click 'Create Group

    and Core' it will Run a couple of scripts for the group creation
  24. Greengrass group and core Post that, you need to download

    the certification package and depending on your requirement the software package as well
  25. Add a new resource to the greengrass group Resources are

    the set of information that are associated with the entire process which further helps in accessing specific modules Add resources for any modules attached to your IoT device Also, add resources for your ML inference model.
  26. Deploy trained models to the greengrass group Deploy the trained

    model to your IoT device (on the edge) running greengrass core. Choose between Sagemaker trained models You locally trained models uploaded to S3 Add these models as a machine learning resource to the greengrass group Then, deploy
  27. Testing deployed model for inference After the trained model is

    deployed on the Greengrass core device, it can be tested to derive inference directly from the AWS console.
  28. Thank you! © 2019, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. Sukanya Mandal https://www.linkedin.com/in/sukanyamandal