<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ngesa Marvin 10x on Medium]]></title>
        <description><![CDATA[Stories by Ngesa Marvin 10x on Medium]]></description>
        <link>https://medium.com/@ngesa254?source=rss-3d4aa1e43527------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gxINSJ6VAivOk0SQab3NMA.jpeg</url>
            <title>Stories by Ngesa Marvin 10x on Medium</title>
            <link>https://medium.com/@ngesa254?source=rss-3d4aa1e43527------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 23 May 2026 06:46:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ngesa254/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Meet Our Partner: Kushite ICP]]></title>
            <link>https://medium.com/gdg-nairobi/meet-partner-kushite-icp-052e59d95d1f?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/052e59d95d1f</guid>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 03:18:25 GMT</pubDate>
            <atom:updated>2023-11-20T03:21:30.427Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqIRE0Syr-BbiXxOxee44g@2x.png" /></figure><p><strong>Introduction:</strong></p><p>As a developer, have you ever faced the challenges that come with building and deploying software on traditional platforms? I can relate to that. However, when I discovered the Internet Computer protocol, my workload was significantly reduced</p><p><strong>About us:</strong></p><p>The Internet Computer is a Blockchain that enables all range of people, from developers to entrepreneurs and organisations to deploy secure, autonomous and tamper-proof canisters (commonly referred to as smart contracts)</p><p>We provide the following key features:</p><p>1. A public blockchain that is globally accessible for running smart contracts at web speed</p><p>2. A secure protocol, known as <strong><em>Internet Computer Protocol, </em></strong>which is run by nodes that are operated by Independent node providers in data centres worldwide. This ensures that smart contracts are executed</p><p>3. A network of blockchains connected using chain key cryptography, thus allowing for scalability</p><p><strong>What makes us different from the other blockchain protocols?</strong></p><p>At Internet Computer Protocol, we simplify the development process by reducing the complexities (i.e network configuration, load balancing, firewalls, database maintenance and storage management) that developers face when building and deploying software on traditional platforms.</p><p>We also eliminate these risks and distractions that come with developing applications on the traditional platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CbNCo7pptkJrU9vKO09Iw.png" /></figure><p>Therefore, developers can focus on writing code using canisters (or smart contracts) without having to worry about these risks.</p><p>This allows them to streamline the development process, reduce time it takes for a product to go to market and thus encourage innovation.</p><p><strong>How to get started with developing on our protocol:</strong></p><p>Getting started with development on the Internet Computer Protocol is a breeze. If you have experience with Typescript or Javascript, you’re in luck!</p><p>Our blockchain platform offers a beginner-friendly and fully remote course that will teach you everything you need to know. Click here to access the course</p><p>The course is completely free, self-paced, and can be completed in less than two hours. It is the perfect way to dive into the world of blockchain development and start building your own decentralised applications!</p><p>Follow us on twitter to get the latest updates on events and hackathons we’re participating and attending:</p><p>Twitter @ICPKushites (https://twitter.com/ICPKushites)</p><p>Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=052e59d95d1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gdg-nairobi/meet-partner-kushite-icp-052e59d95d1f">Meet Our Partner: Kushite ICP</a> was originally published in <a href="https://medium.com/gdg-nairobi">GDG NAIROBI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlock creativity with Stable Diffusion in KerasCV]]></title>
            <link>https://medium.com/@ngesa254/unlock-creativity-with-stable-diffusion-in-kerascv-9d317199a7c9?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d317199a7c9</guid>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[keras]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 00:52:05 GMT</pubDate>
            <atom:updated>2023-07-05T06:08:19.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHzaUOkGshGnttcMu1KURg.png" /><figcaption>Fig. 1: An image created with Stable Diffusion from the prompt: A fisherman on Lake Victoria, Kenya, with a t-shirt written Safaricom. The picture is clear focus, coherent, detailed, vibrant and a digital painting</figcaption></figure><h4>From art to state-of-the-art Image Generation</h4><p>In recent months, there has been a lot of excitement around diffusion models in the field of generative AI. These models have proven to be more powerful than traditional methods like GANs and VAEs! Popular examples include OpenAI’s DALL-E 2 and StabilityAI’s Stable Diffusion.</p><p>These models also have impressed with their ability to create high-quality images using a new probabilistic approach and have garnered significant attention for their exceptional performance.</p><p>In this article, we delve into the concept of stable diffusion, explore its key components, and demonstrate how to unlock the full potential of image generation using Stable Diffusion in KerasCV.</p><p>Let’s explore the unlimited possibilities. But first, let’s understand what they are…</p><h4>Diffusion Models 101</h4><p>Diffusion models are generative models designed to produce data similar to the training dataset. These models operate by following a Markov chain of diffusion steps, where they gradually add random noise to the data and then learn to reverse this diffusion process to reconstruct desired data samples from the noise. The training phase involves training the model on a dataset, often consisting of images, by applying denoising algorithms to learn the inverse mapping from the noisy data to the original data.</p><p>In simpler terms, diffusion models generate data by first introducing Gaussian noise to the training data and then recovering the original data by undoing the noise. The model learns the intricate relationships between the noisy input and the clean output, allowing it to generate high-quality images that resemble the input data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBuM8vENfKsae0-9SgDlMg.png" /><figcaption>Fig. 2: The Markov chain of forward (reverse) diffusion process of generating a sample by slowly adding (removing) noise. (Image source: <a href="https://arxiv.org/abs/2006.11239">Ho et al. 2020</a> with modifications)</figcaption></figure><p>By leveraging the learned denoising process, diffusion models can produce diverse and realistic images that closely resemble the data on which they were trained.</p><h4><em>Who cares?</em></h4><p>To paraphrase Andreessen Horowitz, generative AI, particularly on the text-to-art side, is eating the world. Investors have demonstrated their confidence in this technology by pouring billions of dollars into startups focused on building these systems.</p><p>One notable advancement in this field is OpenAI’s Dall-E 2. Introduced in April 2022, Dall-E 2 represents a major milestone as the first mainstream text-to-image model. Microsoft recently partnered with OpenAI for their Image Creator project. Despite its cool capabilities, the model remained closed-source, limiting its accessibility to the wider community.</p><p>In a parallel development, Google unveiled its own diffusion-based image generation model called Imagen, just a month after the release of Dall-E 2.</p><p><em>Imagen now part of Vertex AI</em></p><p>It is worth noting that Google has integrated Imagen into Vertex AI, their fully managed AI service. This announcement was made at the Google I/O developer conference this year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TuUNb7WY54mIeDlAr89afQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*DdMYL89pLbbxFlZXy3GaGQ.gif" /><figcaption>Videos generated using <a href="https://imagen.research.google/video/">Imagen Video</a> from the prompt s— Fig. 3: Campfire at night in a snowy forest with starry sky in the background . Fig. 4: Flying through an intense battle between pirate ships in a stormy ocean</figcaption></figure><p>The other one is Stable Diffusion created by StabilityAI. Stable Diffusion stands out as the sole open-source diffusion-based image generation model in this list.</p><h4>Stable Diffusion! What is it?</h4><p>It is essentially a text to image generative model. It utilizes text descriptions to generate images and perform image-to-image translations guided by text prompts.</p><p>The architecture of Stable Diffusion consists of three main components. First, there is a text encoder that takes the text prompt as input and converts it into a latent vector — computer-readable vector representation.</p><blockquote>That prompt vector is then concatenated to a randomly generated noise patch through a process called <strong>Conditioning.</strong></blockquote><p>The second component is a U-Net diffusion model responsible for generating images. This diffusion model operates in the latent space and focuses on denoising 64x64 latent image patches. By repeatedly refining these patches, the model progressively enhances the generated images.</p><p>The third component is a decoder that renders the final 64x64 latent patch into a higher-resolution 512x512 image patch.</p><p><em>And how does the Model recover information?</em></p><p>Probably, this is the question you are now asking. To recover information, the model leverages the training data distribution and uses it to predict the visual details that are most likely to be present in the given input. By utilizing the knowledge learned from the training data, the model generates images that align with the expected visual characteristics. Therefore, it’s possible to train a deep learning model to <em>denoise</em> an input image — and thereby turn it into a higher-resolution version. The process is called super-resolution.</p><p><em>What happens if we Push super-resolution to the limit</em></p><p>You may start asking — what if we just run such a model on pure noise? The model would then “denoise the noise” and start hallucinating a brand-new image. With each iteration, this process gradually transforms a small patch of noise into a increasingly clear and high-resolution artificial picture.</p><p><strong>And how does KerasCV comes in</strong></p><p>Stable Diffusion has been integrated into Keras, allowing users to generate novel images in a few lines of code while enjoying the powerful performance boosts and benefits that comes with Keras.</p><p><em>So, how can you use it (as an engineer) — Basic</em></p><p>You simply install Keras package and sort out some imports:</p><pre>pip install tensorflow keras_cv --upgrade --quiet</pre><pre>import time<br>import keras_cv<br>from tensorflow import keras<br>import matplotlib.pyplot as plt</pre><p>And instantiate the stable diffusion model.</p><pre>model = keras_cv.models.StableDiffusion(img_width=512, img_height=512)</pre><p>And get creative with the text prompts. It will take about 4 seconds to give you an output…</p><pre>images = model.text_to_image(&quot;A fisherman on Lake Victoria, Kenya, with a t-shirt written Safaricom.&quot;, batch_size=3)<br><br><br>def plot_images(images):<br>    plt.figure(figsize=(20, 20))<br>    for i in range(len(images)):<br>        ax = plt.subplot(1, len(images), i + 1)<br>        plt.imshow(images[i])<br>        plt.axis(&quot;off&quot;)<br><br><br>plot_images(images)</pre><p><em>Let’s try a more complex prompt:</em></p><pre>images = model.text_to_image(<br>    &quot;cute magical flying dog, fantasy art, &quot;<br>    &quot;golden color, high quality, highly detailed, elegant, sharp focus, &quot;<br>    &quot;concept art, character concepts, digital painting, mystery, adventure&quot;,<br>    batch_size=3,<br>)<br>plot_images(images)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*9T1Eeqzk2Qc8Pyx75AHxvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*SXaUU7Ci2RkrdLvMOCinmw.png" /></figure><p>Struggling to come up with prompts? You could get some from <a href="https://lexica.art/">https://lexica.art/</a></p><p><em>How to use it as (an engineer )— Advanced</em></p><p>Lets now take a look at advanced usage, both for image generation and inpainting. Here is the Colab notebook (<em>coming soon</em>).</p><p><strong>Why would you want to use KerasCV ?</strong></p><p>KerasCV provides several compelling reasons to utilize its framework. Firstly, it employs graph mode execution, which enhances performance by leveraging graph optimization and enabling parallelism.</p><p>Secondly, KerasCV supports XLA compilation through the option of jit_compile=True, utilizing the powerful XLA compiler provided by TensorFlow. XLA is specifically designed for accelerated linear algebra operations, further boosting performance.</p><p>KerasCV also embraces mixed precision computation, a technique that combines 16-bit and 32-bit floating-point types during model training. This approach strikes a balance between speed and memory usage. By performing computations using float16 precision while storing weights in the float32format, KerasCV harnesses the faster float16 kernels available on modern NVIDIA GPUs. This achieves significant performance improvements without sacrificing accuracy.</p><p>Lastly, despite these advanced optimizations, KerasCV still maintains a user-friendly interface.</p><p><em>Let’s see the bench marks — how does KerasCV compare to other implementations?</em></p><p>Here is a <a href="https://colab.research.google.com/github/lukewood/stable-diffusion-performance-benchmarks/blob/master/benchmark_stable_diffusion.ipynb">benchmark</a> comparing the runtime performance of KerasCV implementation against HuggingFace diffusers. It is conducted using a Tesla T4 GPU. The benchmark consisted of generating three images with a step count of 50 for each image.</p><p>The benchmark was divided into two parts: warm start and cold start. The cold start considered the time it takes to create and compile the model, which may not be as important in a real-world setting.</p><p>The results showed a substantial 30% improvement in execution time on the Tesla T4 GPU. However, the improvement on the V100 GPU was not as significant.</p><p>The benchmark is expected to consistently favor the KerasCV implementation across all NVIDIA GPUs in terms of performance.</p><h4><em>But that is not all — Other possibilities</em></h4><p>Diffusion models can generate videos directly from text prompts. This allows for the creation of dynamic visual content based on narratives, songs, poems, and other textual sources.</p><p>Here is demo of video generated by KerasCV and stable diffusion given a song lyric and timestamp.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZjrGraGFL6I%3Fstart%3D144%26feature%3Doembed%26start%3D144&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZjrGraGFL6I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZjrGraGFL6I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2297eefa0e76dc2467f66fbd4c7e1c2/href">https://medium.com/media/d2297eefa0e76dc2467f66fbd4c7e1c2/href</a></iframe><h4>Closing remarks</h4><p>KerasCV’s implementation of Stable Diffusion stands at the forefront of the field. With the integration of XLA and mixed precision techniques, it provides the fastest and most efficient Stable Diffusion pipeline currently available.</p><p>Whether you’re an artist looking to craft mesmerizing visual masterpieces or a researcher seeking to push the boundaries of generative AI, KerasCV’s Stable Diffusion opens up a world of possibilities.</p><p>So, why not take the leap and explore? The journey awaits!</p><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on Machine Learning and Cloud Data (Internet of Things).</em></p><p>NB-If you have any Machine Learning concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d317199a7c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Insights and Takeaways from Google I/O Connect Amsterdam]]></title>
            <link>https://medium.com/@ngesa254/machine-learning-insights-and-takeaways-from-google-i-o-connect-amsterdam-8e3ef585392e?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e3ef585392e</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[google-io-2023]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Mon, 26 Jun 2023 05:30:25 GMT</pubDate>
            <atom:updated>2023-06-26T08:30:33.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkUyTYg6K15Z-ZiecKcW9w.jpeg" /></figure><h4>Advancements in Machine Learning and AI</h4><p>Google I/O Connect Amsterdam 2023 brought together innovators and enthusiasts to explore the latest advancements in different technologies including Machine learning (ML) and artificial intelligence (AI). The event showcased several intriguing announcements and highlighted the innovative developments unveiled by Google. In this article, we will delve into some of the key insights and takeaways from the event.</p><h4>Advancements in Machine Learning with TensorFlow and Keras</h4><p>The TensorFlow team showcased their commitment to supporting large models with the introduction of DTensor parallel processing. This advancement enables the training and processing of very large models, opening up new possibilities for complex AI applications. Additionally, JAX2TF was introduced to make it easier to use JAX models within the Tensorflow ecosystem, expanding the range of models available for developers.</p><h4>Simplifying ML with KerasCV and KerasNLP</h4><p>Keras, a popular deep learning library, unveiled new APIs called KerasCV and KerasNLP, specifically designed to simplify computer vision and natural language processing tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upKohGZEqUDaGgdfl6Bs4w.jpeg" /></figure><p>Laurence Moroney demonstrated how these APIs can be used to build generative AI solutions for images and texts, empowering developers to create sophisticated ML models with ease.</p><h4>Simple ML for Google Sheets</h4><p>Do you love catching numbers in spreadsheets? Do you ever wish to use AI to analyze your spreadsheet data? The Simple ML team unveiled an extension for Google Sheets, enabling users to leverage AI technology for analyzing spreadsheet data.</p><p>With features such as forecasting, anomaly detection, and the ability to recover missing values, users can leverage AI capabilities directly within their spreadsheets. The extension also provides advanced controls for running ML tasks, including model training, evaluation, and analysis.</p><h4>Discovering Pre-Trained Models with Kaggle Models</h4><p>Pre-trained models are an important part of modern ML workflows, but finding the right pre-trained models for specific ML tasks can be challenging.</p><p>To address this, Kaggle launched a dedicated hub that allows users to discover, evaluate, tweak, and test hundreds of open-source models developed by Google and other leading researchers. With over 2,000 pre-trained models organized by task, such as text classification and object detection, researchers and developers now have a valuable resource to accelerate their ML workflows.</p><h4>PaLM API &amp; MakerSuite</h4><p>Large Language Models (LLMs) are capturing the imaginations of people around the world. Google introduced the PaLM API, offering developers an easy and safe way to build generative AI applications utilizing their best language models.</p><p>PaLM API is complemented by MakerSuite, an intuitive tool that allows developers to quickly prototype ideas by providing features such as prompt engineering, synthetic data generation, and custom model tuning, all backed by robust safety tools.</p><p>The PaLM API and MakerSuite together provide access to the latest LLMs hosted in the cloud, empowering developers to leverage state-of-the-art language models.</p><h4><strong>Scaling LLMs into Google Cloud — Vertex AI</strong></h4><p>Machine Learning in Google Cloud begins with Vertex AI. Vertex AI provides ML tools, services, workflows and infrastructure all accessible through a simple and unified platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xqr88JxYTroe4VvQezaEIA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*r15rhUcUElKE7pKyTeyezg.jpeg" /></figure><p>Vertex AI expanded its support for Generative AI with two new products: Model Garden and Generative AI Studio.</p><p>Model Garden provides access to Google’s latest AI foundational models, including PaLM, and offers a variety of machine learning APIs for tasks such as text, image, and code analysis.</p><p>Generative AI Studio simplifies the exploration, prototyping, and customization of generative AI models, enabling developers to create unique applications.</p><h4><strong>MediaPipe solution for on-Device ML</strong></h4><p>The MediaPipe team introduced updates to their solution, enhancing its usability across platforms, customization options, and performance.</p><p>MediaPipe provides a high-output, low-latency ML pipeline, enabling developers to incorporate on-device ML capabilities into their applications seamlessly.</p><h4><strong>Duet AI for Google Cloud</strong></h4><p>There was also Duet AI for Google Cloud, an invaluable and ever-present AI collaborator designed to assist users of all proficiency levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_MVS_bjiQO1CWQ9yEn68Fg.jpeg" /></figure><p>Duet AI offers remarkable features including code assistance and chat assistance, which collectively revolutionize the cloud development experience.</p><p>With code assistance, Duet AI leverages AI-driven algorithms to provide real-time support to cloud users, including application developers and data engineers. As users type their code, Duet AI offers intelligent recommendations, ensuring accuracy and efficiency throughout the development process.</p><p>It goes beyond mere suggestions and even generates complete functions and code blocks, significantly reducing coding effort. Duet AI also actively identifies vulnerabilities and errors within the code, offering insightful suggestions for fixes.</p><p>Duet AI’s chat assistance empowers users to seek guidance through simple, natural language queries. This feature serves as a reliable resource for resolving specific development or cloud-related queries in real-time.</p><p>Users can engage with chat assistance to receive immediate guidance on diverse topics, ranging from mastering the utilization of specific cloud services and functions to obtaining detailed implementation plans for their cloud projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2KRb3UwukHMOtDw1HF6ew.gif" /></figure><p>Furthermore, chat assistance offers architectural insights and coding best practices, eliminating the need for extensive research and document searches.</p><h4><strong>Safe &amp; Responsible AI</strong></h4><p>The rapid development of AI presents immense opportunities to address complex real-world problems. However, it also raises important questions regarding the responsible development of AI systems that benefit all individuals and communities.</p><p>Google recognizes the importance of responsible AI development and advocates for fairness, interpretability, privacy, and security as key considerations.</p><p>By upholding these principles, the development and deployment of AI can deliver positive and equitable outcomes while addressing the challenges and questions raised by this transformative technology.</p><p>The Google I/O Connect Amsterdam event showcased groundbreaking advancements in cloud and Machine Learning technologies. As we reflect on the highlights, it becomes evident that the future of AI and cloud development is poised for remarkable transformations.</p><p>Stay tuned for upcoming articles where I will delve deeper into the technical concepts and provide comprehensive guidance!</p><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on Cloud Data (Internet of Things) and AI.</em></p><p>NB-If you have any Machine Learning concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e3ef585392e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your first Keras Classifier]]></title>
            <link>https://medium.com/@ngesa254/build-your-first-keras-classifier-ca9de0cbfedb?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9de0cbfedb</guid>
            <category><![CDATA[transfer-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 04:50:29 GMT</pubDate>
            <atom:updated>2023-06-24T07:30:01.739Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G4hZghk7EHrjTCijFVyPQg.jpeg" /></figure><h4>Transfer Learning in Keras</h4><p>Deep learning has revolutionized the field of artificial intelligence and data science, enabling us to tackle complex problems in various domains. One of the key techniques within deep learning is transfer learning, which allows us to leverage pre-trained models to solve new tasks more efficiently.</p><p>But first what is deep learning?</p><p>It is basically a branch of machine learning that focuses on training neural networks with multiple layers to extract patterns and representations from data.</p><p>Its applications span across a wide range of fields, including robotics, computer vision, natural language processing, image recognition, and more. Deep learning models excel at tasks such as classification, where the goal is to predict a categorical label based on input features.</p><h4>Deep Learning 101 Concepts</h4><p>Classification is a supervised machine learning algorithm used to predict categorical labels. It finds applications in various real-world scenarios, such as predicting customer churn, classifying emails as spam or non-spam, and determining whether a bank loan will default or not.</p><p>Through classification, we can make accurate predictions and decisions based on input data.</p><h4>Computer Vision</h4><p>Computer vision plays a crucial role in the implementation of deep learning classification models. Computer vision techniques are employed to preprocess and extract meaningful features from images.</p><p><em>One Hot Encoding</em></p><p>In classification tasks, it is common to represent categorical labels as one-hot encoded vectors. One hot encoding is a technique used to convert categorical variables into a binary vector representation. Each category is assigned a unique index, and the corresponding element in the one-hot encoded vector is set to 1, while all other elements are set to 0.</p><p>This representation allows the neural network to understand the distinct categories and make predictions accordingly.</p><h4>Neural network</h4><p>Neural networks are the building blocks of deep learning models, including classifiers. A neural network classifier consists of multiple layers of interconnected neurons. Each neuron performs a computation by taking the weighted sum of its inputs, adding a bias value, and passing the result through an activation function.</p><p>These weights and biases are initially unknown and randomly initialized. Through the training process, the neural network learns to adjust these weights and biases by analyzing large amounts of labeled data.</p><p><em>Dense Neural Network</em></p><p>This is the simplest neural network for classifying images. It is made of “neurons” arranged in layers. The first layer processes input data and feeds its outputs into other layers. It is called “dense” because each neuron is connected to all the neurons in the previous layer.</p><p>You can feed an image into such a network by flattening the RGB values of all of its pixels into a long vector and using it as inputs.</p><h4>Activation function (Softmax)</h4><p>Activation functions play a crucial role in neural networks by introducing non-linearity and enabling the model to capture complex patterns. Common activation functions include relu (rectified linear unit) and softmax. The last layer of a classification model typically uses softmax activation with the same number of neurons as the classes to predict the probabilities for each class. Cross-entropy loss is commonly used in classification tasks to compare the predicted probabilities with the actual one-hot encoded labels.</p><h4>Cross-entropy loss</h4><p>For classification, cross-entropy is the most commonly used loss function, comparing the one-hot encoded labels (i.e. correct answers) with probabilities predicted by the neural network.</p><h4>Reducing Loss</h4><p>To minimize the loss and improve the accuracy of the model, we employ optimization algorithms such as gradient descent. Gradient descent adjusts the weights and biases of the neural network based on the gradients of the loss function. Optimizers like AdamOptimizer with momentum are commonly used due to their efficiency and ability to converge to better solutions. Training on batches of data, known as mini-batching, further enhances the optimization process.</p><h4>Transfer Learning</h4><p>Transfer learning is a technique that leverages the knowledge acquired from pre-trained models on one task to improve the performance of a related task. Instead of training a deep learning model from scratch, we can use a pre-trained model as a starting point and fine-tune it for our specific problem. Transfer learning offers several advantages, including reduced training time, improved generalization, and the ability to achieve good results even with limited labeled data.</p><p><em>Implementing Transfer Learning in Keras</em></p><p>Demo:</p><p>In this guide, we have built Classification models using the deep learning framework, Keras</p><p>By incorporating pre-trained models into our pipeline, we can benefit from their learned representations and expedite the training process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9de0cbfedb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building TinyML with Tensorflow Lite on Arm | Kigali]]></title>
            <link>https://medium.com/@ngesa254/building-tinyml-with-tensorflow-lite-on-arm-3d9f9061d17?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d9f9061d17</guid>
            <category><![CDATA[tinyml]]></category>
            <category><![CDATA[arm]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 03:43:40 GMT</pubDate>
            <atom:updated>2023-01-15T17:17:00.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gszpyVLW6atPPvg2qgkDzQ.jpeg" /></figure><h4>Embedded Learning Challenge Comes to Kigali, Rwanda</h4><p>The Internet of things, IoT is transforming how we work, live and relate. Today we have devices at home such as mobile phones, TV, remote control that are either connected to each other or to the internet. There has been an extension of connectivity beyond the mobile phones and laptops to more devices and systems enabling new levels of automation and control.</p><p>To develop powerful, connected devices, a range of technologies such as Embedded Systems, Tiny ML and Tensorflow Lite needs to be combined. Together, they can enable an IoT Device to collect, process, and transmit data, and make decisions based on that data even on the device.</p><p>Recently, we held an event at FabLab Rwanda that brought together experts in IoT, Tiny ML, embedded systems, and TensorFlow Lite to discuss the latest developments and opportunities in these fields.</p><h4>Arm Engage and ELC</h4><p>The event was well attended, with a diverse group of participants from academia, industry, and government. The organizers also made a special effort to encourage women to attend and participate in the event, recognizing the importance of diversity in driving innovation and progress in these fields.</p><p>The keynote speakers at the event shared their insights on the current state of IoT and Tiny ML, and discussed the opportunities and challenges facing the industry. There were also several technical sessions and workshops that provided hands-on experience with TensorFlow Lite and other tools for developing Tiny ML applications on embedded systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tasSALKs7PsUG99gYnNzkg.jpeg" /></figure><p>Stephen Ozoigbo</p><h4>Embedded Systems</h4><p>Embedded systems are at the heart of IoT and Tiny ML, providing the computational power and connectivity needed to enable these devices to function.</p><h4><strong>Arm Ecosystem</strong></h4><p>Arm also provides a wide range of tools and resources for developers, including software development kits (SDKs), operating systems, and other tools that make it easy to develop and deploy IoT applications on Arm-based devices.</p><h4>Tiny ML &amp; Tensorflow Lite</h4><p>TensorFlow Lite is a powerful open-source framework that allows developers to run machine learning models on embedded systems, including those used in IoT devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkqhWu4AYlSgH36k54yVOQ.jpeg" /></figure><p>Arm’s technology is well-suited for IoT applications and devices due to its low power consumption, high performance, and scalability. The company’s tools and resources also make it easy for developers to create and deploy IoT solutions on Arm-based devices, making it a popular choice among IoT developers.</p><h4>Microcontroller Units at the Heart of IoT and Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IaVezJQNLOecf4cS_BGIfQ.jpeg" /></figure><p>Shadrach Munyeshyaka</p><h4>FabLab Rwanda and Women in Technology</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCenLZmZ7OGCpIVoT0OACQ.jpeg" /></figure><p>Butoyi Husna</p><p>In summary, embedded systems, Tiny ML, TensorFlow and IoT are closely related technologies that allow for the development of powerful, connected devices that can collect, process, and transmit data, and make decisions based on that data. This is driving innovation in a wide range of industries and creating new opportunities for the development of intelligent systems and devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAkR__uUTeV_CX5oxU6MvQ.jpeg" /></figure><p>Overall, the event was a great success, providing a valuable opportunity for attendees to connect with experts and learn about the latest advances in IoT, Tiny ML, embedded systems, and TensorFlow Lite. The Arm ELC program also provides an important platform for developers to showcase their work and compete for recognition and prizes. The organizers hope that this event will encourage more people, especially women to participate in such events in the future, and help drive the development of new and innovative applications that will make IoT more powerful and useful for everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6BfkM7G0xIS9fmrAlkRkQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d9f9061d17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Tiny ML, Tensorflow Lite and ELC on Arm| Kampala]]></title>
            <link>https://medium.com/@ngesa254/getting-started-with-tiny-ml-tensorflow-lite-and-elc-on-arm-kampala-f2ae85f78922?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2ae85f78922</guid>
            <category><![CDATA[tinyml]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Sat, 29 Oct 2022 03:31:32 GMT</pubDate>
            <atom:updated>2023-01-15T16:59:39.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLYWGNYMKtL8BASF4mTbBQ.jpeg" /></figure><h4>Embedded Learning Challenge Comes to Kampala, Uganda</h4><p>The world of technology is constantly evolving and the Internet of Things (IoT) is at the forefront of this change. One of the key technologies driving IoT is Tiny Machine Learning (Tiny ML), which allows machine learning algorithms to run on small, low-power devices, such as those used in IoT networks. The combination of Tiny ML and embedded systems, which are computer systems integrated into other devices or products, is creating new opportunities for intelligent and connected devices.</p><p>On 22nd October 2022, we gathered at MoTV Uganda to discuss the latest developments and opportunities in these fields. The event was a great success as it brought together a diverse group of developers, engineers, researchers and industry professionals to share their knowledge, experience and insights.</p><p>The event began with a welcoming session led by Solomon Opio, the head of Tech Community Manager at Innovation Village.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qrLte74ry18XovO4tAceew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6k5iZq72PvE2YXxs8vqUZg.jpeg" /></figure><p>Asa Lugda, who is a community leader, also took the stage and talked about the importance of communities in driving innovation and progress in technology. He emphasized on how the current era presents an opportunity for everyone to aim higher and strive to be the best in what they do.</p><h3>Arm Engage and Embedded Learning Challenge (ELC) Kamapala</h3><p>The third session was led by Ngesa Marvin. He discussed the role of IoT in Africa, introduced the (E3)NGAGE Learning Challenge and the importance of the Arm ecosystem in driving innovation in this field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxTgoPq2PIvHAIl2fy5sBQ.jpeg" /></figure><p>He discussed IoT use cases and how tiny ML can be used to build new and innovative devices for various industries such as Water, Energy, Gas, Manufacturing, and Asset Tracking.</p><p>He also explained that at the heart of these devices there is a company called Arm, a British semiconductor and software design company based in Cambridge, England. He discussed how almost all smartphones and IoT devices run on Arm.</p><p>The company provides a blueprint that System-on-a-Chip (SoC) companies use to make devices. Arm is not a chip manufacturer, but their partners use their framework to make chips.</p><p>In the first quarter of 2020, Arm’s silicon partners shipped a record 6.7 billion Arm-based chips, which equates to approximately 842 chips shipped per second. In Q1 2022, the partners shipped 7.4 billion Arm-based chips.</p><p>He also took the attendees through the various Arm Cortex, including Cortex M and Cortex A. He highlighted how the Cortex M microcontrollers are widely used in embedded systems and are well suited for low-power, cost-sensitive IoT applications.</p><p>The session provided valuable insights into the role of IoT in Africa and the importance of the Arm ecosystem in driving innovation in this field. It also highlighted the wide range of applications for Arm Cortex microcontrollers in the IoT industry.</p><h4>Embedded Systems &amp; Tensorflow Lite</h4><p>Embedded systems and TensorFlow Lite are two important technologies that are driving the development of IoT and other connected devices. They allow developers to create intelligent and connected devices that can process and analyze data in real-time, leading to new opportunities for automation, control, and monitoring in various industries.</p><p>The ELC is a great opportunity for developers, engineers and researchers to gain experience with Arm’s technologies, showcase their skills, and connect with industry experts. It is also a chance for participants to learn about the latest developments in IoT, embedded systems, and machine learning, and to be part of a community of innovators working to shape the future of technology.</p><p>Ngesa encouraged the developers to take advantage of the resources and support provided by the Embedded Learning Challenge, such as tutorials and community forums, to learn more about IoT and Machine Learning and to develop their skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARTRtEjWxYq06GuXO4ZZ4Q.jpeg" /></figure><p>We then had a lunch and snacks break which allowed attendees to recharge and come back to the sessions with renewed energy and focus.</p><h3>MicroPython and RP2040</h3><p>The Fourth session, led by Michael, focused on Micro Python and its role in the development of Tiny ML applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xDwX6rYa6ksq3tQ5p-5NA.jpeg" /></figure><p>He also shared about the current participation of Uganda in Embedded Learning Challenge in comparison to other countries on the continent. He encouraged more Ugandans to be involved in IoT and Machine Learning.</p><h4>Women Tech Makers Kampala</h4><p>The Fourth session was led by Janet who talked about the importance of Women in tech and how they should be involved in the development of Tiny ML and IoT. She emphasized on the importance of women in the tech industry, and how they bring diversity and different perspectives to the table, which are crucial for the development of new and innovative technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkI8ObtXdR_2oDqWEX8CJw.jpeg" /><figcaption>WTM Group photo</figcaption></figure><p>The ELC event provided a valuable opportunity for attendees to learn about the latest developments and opportunities in IoT, Tiny ML, embedded systems, and TensorFlow Lite. It also highlighted the importance of diversity and inclusion in the tech industry, and how women can play a vital role in driving innovation in this field</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*th6KecnWVTGoNg5NNaez8g.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2ae85f78922" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Arm (E3)NGAGE, Ecosystem and TinyML]]></title>
            <link>https://medium.com/@ngesa254/engage-learning-challenge-6ea6c9b5b411?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ea6c9b5b411</guid>
            <category><![CDATA[arm]]></category>
            <category><![CDATA[gdg]]></category>
            <category><![CDATA[tinyml]]></category>
            <category><![CDATA[tensorflow-lite]]></category>
            <category><![CDATA[events]]></category>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Fri, 07 Oct 2022 12:49:50 GMT</pubDate>
            <atom:updated>2022-10-09T15:58:33.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*sfEG0gkmV_gyeRMWOxoWzQ.png" /></figure><h4>Devices meets AI, at the Edge</h4><p>Imagine smart IoT devices that can see and understand a picture or what is happening in a video at the device level (edge)!</p><p>Today we have security cameras everywhere in the streets of Nairobi, but they do not alert us when robbery is taking place. They only sometimes record activities. To take pictures therefore is not the same as to SEE or to Understand!</p><p>Imagine devices and sensors installed on strategic traffic locations analyzing traffic information in real time, at the edge and helping route traffic effectively on their own.</p><p>Well, that possibility is already a reality! Today we have smart devices at our homes like Amazon Alexa that we can speak to and they will hear, listen and understand what we are telling them, and even act.</p><p>On 10th September we gathered the AIoT community ecosystem to engage on the technologies behind these smart devices. We had a quorum at the famous <strong>Sir Thomas Moore Building</strong>, Strathmore University at around 9 am. We had a welcoming session and then I Introduced the Embedded Learning Challenge (ELC) together with the Arm Ecosystem. But first what is ELC?</p><h4>Embedded Learning Challenge</h4><p>Arm and ecosystem partners are supporting digitization initiatives across emerging economies. They are training new generation of African embedded systems engineers, accelerating ecosystem awareness of Arm based MCUs and encouraging the development of local solutions.</p><p>The ELC Challenge is aimed at African learners who have been historically underrepresented in STEM. It is designed to bring more learners across the continent into embedded systems and Tiny Machine Learning (TinyML) fields.</p><blockquote>The challenge is completely FREE program for all successful applicants</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PICjJnoNSlsRh-q5MBDbkA.jpeg" /><figcaption>September 10, 2022. Developers at the Auditorium, Sir Thomas Moore Building, Strathmore University</figcaption></figure><h4>How the Challenge Works?</h4><p>Members of each cohort gets access to industry oriented self-paced learning curriculum from Arm Education. They then chose a learning path after which successful candidates get access to Arm Virtual Hardware (AVH) and a variety of Arm based microcontrollers. This provides them with hands on experience and practical experimentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2riaJUR63xGHPG-PahPXMQ.png" /></figure><p>Learners also gain visibility and are exposed to certification and internship opportunities within the Arm ecosystem. While on their Learning Journey, participants receive free access to Mentors as well as the best Arm ecosystem platforms for technical support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIaxevd_iACbl4PpvrP3KQ.jpeg" /><figcaption>(Left to right) Clinton, Esther, Brenda &amp; Marvin. A photo with Mentors and some of the organizers of Embedded Learning Challenge, Tiny ML and Safaricom IoT Chapter event activities</figcaption></figure><h4>Arm and Device Ecosystem — Shared oxygen for SoC designers</h4><p>Today more than 80% of devices runs on Arm Architecture from devkits to commercial IoT devices. In fact, Arm is at the epicenter of the world’s largest compute ecosystem.</p><blockquote>In the fourth quarter of 2020 (Arm FY Q320), Arm reported its silicon partners shipped in the prior quarter a record <strong>6.7 billion Arm-based chips, which equates to ~842 chips shipped per second</strong></blockquote><p>And a <a href="https://www.design-reuse.com/exit/?urlid=36953"><strong>white paper by The Linley Group</strong></a> stated that, “Having shipped in more than 130 billion chips, the Arm architecture has become as familiar as breathing to many SoC designers,”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*7ZO0fmCp-1e8Aoa07z69rg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*Pp1nemSt_z0sN_7HxAo3Zg.jpeg" /><figcaption>Teardowns: Commercial IoT Device in Kenya running on Arm Architecture</figcaption></figure><p>The biggest question I have always faced in all the ecosystem and partnership engagements is <strong>“what is arm is and where do they play on the Devices value chain?</strong></p><blockquote>I explained to the developers that arm basically tell stories to several writers who then publish books.</blockquote><p>Arm does not manufacture its own chips. It has no fabrication facilities of its own. Instead, it licenses these rights to other companies, which it calls “partners.” They utilize Arm’s architectural model as a kind of template, building systems that use Arm cores as their central processors.</p><p>It’s therefore up to ARM’s partners to actually build and sell the chip. These partners include Raspberry Pi, ST Microelectronics, Siemens, Toshiba, Nvidia, NXP etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*RBhpoq_khkMRbGc604FTSQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*XVRweAqN4sIH8rsrHD8r2A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*VB79Lr4aKlaLS1jFj0XdLA.jpeg" /><figcaption>Left: Warefab, a locally made DevKit running on STM32 family of 32-bit MCUs based on the Arm® Cortex®-M processor. Right: Arduino RP2040</figcaption></figure><p><em>Arduino RP 2040</em></p><p>Arm recently shipped the community in Nairobi a bunch of <strong>Arduino Nano RP2040 Connect. </strong>The<strong> </strong>board brings the new <strong>Raspberry Pi RP2040</strong> microcontroller to the Nano form factor. It has a dual core <strong>32-bit Arm Cortex®-M0+</strong>, <strong>U-blox Nina W102 </strong>Bluetooth and WiFi connectivity, onboard accelerometer, gyroscope, RGB LED and microphone.</p><p>With the sensors, Learners and Makers can now dive into real-world projects developing robust embedded AI solutions with minimal effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJ4v9XRyksN07Weoact1Aw.jpeg" /><figcaption>Clinton Oduor on stage with Tiny ML at the very edge session</figcaption></figure><p>After the first session, we had Clinton Oduor take the developers through “Machine learning at the far far edge”. Clinton is an Edge Impulse Expert, and fellow Co-organizer at <a href="https://www.meetup.com/tiny-ml-enabling-ultra-low-power-ml-at-the-edge-kenya/">TinyML Kenya.</a></p><h4>AI at the far Edge — Tiny ML</h4><p>Our smartest devices including cameras are blind, and therefore collectively as a society, we are blind. How do we teach these Cameras to see and understand, just like human beings? How do we enable these devices to name objects, identify people, understand emotions and intentions?</p><p>The first step is to get the data (video feeds) in an embedded system. An embedded system is a computing device that is usually small, or tiny, and operates with extremely low power. So much so that some of these devices can run for days, weeks, months, sometimes even years on something like a coin cell battery.</p><p>Secondly, a machine learning model, is deployed to run locally on these devices. These ML models then infer interesting patterns about new data that it’s seeing.</p><blockquote>Vision begins with eyes, but it truly takes place with the BRAIN.</blockquote><p>Tiny machine learning, or TinyML, is therefore the intersection of embedded internet of things (IoT) sensors (devices) and machine learning.</p><h4>BUILDING with TensorFlow Lite</h4><p>TinyML has the potential to transform the world. One of the popular tools we can use to enable on-device machine learning (TinyML) is Tensorflow Lite.</p><p>It is a mobile library for deploying models on mobile, microcontrollers and other edge devices.</p><blockquote>More than 4 billion edge devices have Tensorflow Lite installed on them today</blockquote><p>Before you start with Tensorflow Lite, you will need a pre-trained Model. The model is compressed into flat buffer with the TensorFlow Lite Converter and then exported ( .tflite file ) and loaded into memory of a mobile or embedded device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*k2m3SmN82yCcEeVq-RyrXA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*BuFH0OJYqTi0mWe5SUnvuw.jpeg" /><figcaption>With Pete (founding member of Tensorflow) and Wei, some of the pioneers of Tiny ML. Pete put together the definition of TinyML</figcaption></figure><p>Once loaded into memory, we can now perform inference using the model on our Microcontroller.</p><h4>The future of ML is Tiny</h4><p>The Internet of things device ecosystem field is growing and so is the Machine Learning field. We have more than 250 Billion microcontroller units today, and this number is only going to rise in the future.</p><p>While conventional machine learning continues to evolve towards more sophisticated and resource-intensive data centers, tinyML fills a growing need at the other — <em>smaller</em> — end of the spectrum, Edge.</p><p>When you take a picture or speak to your device, you want the ML magic to happen there and then. You don’t want to wait for the image or audio to be sent to a data center where it is being processed and sent back again. This takes time and cripples the user experience. You want the ML model to run locally.</p><p>Enabling Machine Learning in microcontrollers will open up new opportunities and will become deeply ingrained into our everyday life in the years ahead. There is therefore a real opportunity for anyone who wants to learn about it and get involved.</p><h4>Diversity and Inclusion in Embedded systems</h4><p>STEM fields have long struggled with a lack of diversity. After, Clinton we had Esther Mueni dive into a “Diversity and Inclusion in Embedded systems” Session. Esther is the Co-founder of Neverest IoT and Lead for She Code Africa Nairobi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7DyiAufaCP5_kYA8-aLJ8Q.jpeg" /><figcaption>Esther Mueni explaining how Alarms systems utilize tinyML and TensorflowLite</figcaption></figure><p>To have better smarter IoT devices we need to encourage equal participation of women and underrepresented individuals in STEM. We all see devices and coding differently and therefore when need to bring together people from different backgrounds, genders and age groups in developing hardware.</p><h4>Ecosystem Lab</h4><p>To support these learners, Arm and Ecosystem partners are setting up Labs focused on engaging, educating, and cultivating local technology ecosystems.</p><p>They will incubate startups and prepare training platforms to familiarize developers with Arm tools, resources, and libraries. The lab will also spotlight Arm led sustainability programs and partnerships, while building local stakeholder networks that are developing needed solutions that address regional problems.</p><blockquote><strong>The pilot lab has been set up in partnership with the Cortex Hub, a regional technology incubator located in East London, Eastern Cape, South Africa, Africa’s automotive capital.</strong></blockquote><p>Lessons learned at Cortex Hub will serve as a blueprint for opening centers elsewhere in Latin America and Africa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cC6HVhzRt381QT9xu1aGg.jpeg" /><figcaption>Sir Thomas Moore Building: Group photo with learners and developers after the sessions.</figcaption></figure><p>Afterwards, developers separated into groups for a 30 minute ideation session to come up with TinyML idea projects. From the discussions, the teams had a deeper understanding of the event’s theme. The groups engaged their critical thinking in figuring out how to come up with prototypes and later did presentations for the day. The level of creativity in the teams were amazing!</p><h3>Conclusion</h3><p>The first ELC event was successful. More than 50 developers attended and the content was great. With a vibrant ecosystem, the number of IoT devices can only rise and therefore more AIoT solutions. The price of these devices will as a result decrease (because, economics! Duh!).</p><p>ELC 1.0 is only the first of many AIoT Chapter events. Let’s do this again in the coming weeks. In the meantime, lets keep BUILDING! What will you BUILD?</p><p>…</p><p>Still curious? Watch Wei and Pete talk about how TinyML solves challenges with computer vision, audio recognition, speech recognition and natural language processing.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZH6TVCp5K0c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZH6TVCp5K0c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZH6TVCp5K0c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/374f07c9ca02de0bd1a24befb218f01e/href">https://medium.com/media/374f07c9ca02de0bd1a24befb218f01e/href</a></iframe><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on The Internet of Things.</em></p><p>NB-If you have any IoT concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ea6c9b5b411" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Liquid’s 0G the gamechanger for Smart Agriculture?]]></title>
            <link>https://medium.com/@ngesa254/is-liquids-0g-the-gamechanger-for-smart-agriculture-a3cba767d4c9?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3cba767d4c9</guid>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Mon, 16 Aug 2021 11:39:34 GMT</pubDate>
            <atom:updated>2021-08-19T13:20:13.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AbpzpLaPo1wOZn3BscnkAw.jpeg" /><figcaption>a soil sensor on a farm in Kenya</figcaption></figure><h4>Precision farming in Kenya</h4><p>Exciting innovations and use cases are coming out of Kenyan farms. This is after <a href="https://www.liquid.tech/">Liquid Intelligent Technologies</a> built and deployed a nationwide IoT network infrastructure together with Sigfox, the world’s leading Internet of Things (IoT) services provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*zXCELOngjWMjx2MXzbnTXA.png" /></figure><p>The infrastructure provides dedicated connectivity for the Internet of Things and enables a two-way communication service through a global radio network.</p><blockquote>It is the first global 0G network — a low-power wide area network (LPWAN), which interconnects low-bandwidth, battery powered devices with low bit rates over long ranges.</blockquote><h4><strong>Challenges</strong></h4><p>For a long time, Agronomists and farm managers have depended on weather data from meteorological reports and weather apps. <strong>The data however usually turn out to be inaccurate and imprecise to their farms.</strong></p><p>The mean annual rainfall in some of these areas are also low. This makes Irrigation to be very vital.</p><p>During irrigation, farmers have always had a challenge knowing <strong>when &amp; how much to irrigate. </strong>It has been very difficult to determine if they are over irrigating or under irrigating. Much of the important decisions have been made out of gauze work, but not anymore. This has dramatically changed since launch of the IoT infrastructure.</p><h4>Enabling IoT in agriculture with Connectivity &amp; Cloud</h4><p><em>Weather station</em></p><p>Farmers are leveraging on the Liquid Telecom’s network and cloud infrastructure to deploy smart sensors and devices on their farms. This includes smart weather stations that relay information about Farm Weather conditions.</p><p>The digital weather stations enable farm managers to remotely and accurately access real-time information about rainfall, temperature changes, wind conditions, air pressure, and humidity from their farms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*QxKMHmUQGtmLKHf9VrHcgA.gif" /><figcaption>Smart weather station on a farm in Kenya</figcaption></figure><blockquote>It’s hard to believe that some of the base stations listening to the messages are over 100 Km away from the Farms. These base stations get the messages wirelessly in star topology, and then securely forward them to cloud in a point to point link</blockquote><p>To accurately read water consumption data and quickly detect bursts and leaks, farmers are installing smart water meters on their farms. They are also adding retrofits in cases where they don&#39;t want to replace entire meter. The<br>consumption data and alarms are then securely transmitted to the Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6QeyiRzU8QlcGQWwAn4nQ.jpeg" /><figcaption>Visio util Sigfox retrofit on a Honeywell water meter in Kenya</figcaption></figure><p>With the data, Farm Managers and agronomists can therefore make accurate decisions about their farms and crops. They are also able to optimize labor, water usage and crop health.</p><p><em>Crop management — soil probes</em></p><p>Capacitance soil probes are also installed to measure soil volumetric water content and temperature. These sensors come in different shape and size. The sensor below for example can read both moisture and temperature simultaneously, with 6 sensors, each distributed every 10cm down to 60cm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*GHwznvC6tY-buN3YI8HIHA.gif" /></figure><p>The battery powered devices deliver real-time reading, at customizable intervals, directly from the Feld to the Internet, eliminating the need for manual readings.</p><p>The probes give real picture of moisture on all the effective root profile and reflect the exact consumption of plants and climate in the specific context of the plot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*8SprgzP0SWW00oo9J8RT1A.gif" /></figure><p>The data enables them to decide the right time to irrigate and what amounts of water to use, thus reducing water wastage and costs linked to pumping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*4jKVAaO_1f9gsMhp0d_CXg.gif" /></figure><p>Effective irrigation helps in improving root development leading to improved crop quality (bud size, stem shelf life) They are also reducing leaching loss thus savings on fertilizer inputs.</p><p><em>Azure</em></p><p>The data from the network can be automatically pushed to Azure. The cloud handles computation and data storage, real-time and batch analytics, machine learning and even visualization.</p><p><em>Custom Platforms &amp; Partners</em></p><p>The data can also be integrated to custom platforms and other cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*fd--dO9o3xXRi8BCRhgyOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cx2TNI5vYCLvRdhWZLpwyQ.png" /><figcaption>Weather data from a Kenyan farm visualized on a platform. Reports can be created and made available on mobile phones, laptop &amp; tablet.</figcaption></figure><h4><strong>Impact — </strong><em>The future of farming is connected</em></h4><ul><li><em>Precise weather data</em></li></ul><p>The platform is able to give the actual weather for the farm, and alerts when the weather data such as temperature or wind goes above a certain threshold.</p><p>This helps in knowing the ideal spraying conditions and when a crop will be susceptible to sunburn or blight.</p><ul><li><em>Soil moisture and effective irrigation</em></li></ul><p>The graphs provide interesting key information such as drainage in the farm and the daily soil water usage etc.</p><p>Variable management allowable deficit (MAD) lines are set to create target “Green Zone” typically between 85% and 15% of readily available water (RAW). These lines leaves room for any rain so that any free rain water is not wasted as drainage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*FmU8Vn_mt1N9d1AN0kUTgg.png" /><figcaption>MAD lines</figcaption></figure><p>It also gives an indication when soil moisture is approaching stress point.</p><p>The charts show the water use of crops planted and the water available in the root zone thus an indication of the liter per acre requirement for the crops. The irrigation schedule can therefore be adjusted according to the recommendations.</p><p>The historical patterns are also being analyzed to make better long- term crop management decisions.</p><ul><li><em>Better water conservation</em></li></ul><p>Knowing the exact rainfall for each crop can help optimize watering, thus preventing overwatering, which can impact not only crop health, but the environment.</p><p>Overwatering crops can affect how much oxygen gets to the roots, which prevents them from growing normally. In some plants, overwatering can also cause root rot, which may cause the crop to eventually die.</p><p>Underwatering crops usually has the same outcome as overwatering: without proper irrigation, crops may not grow properly or could end up withering up and dying.</p><p><strong>Beating the competition to market</strong></p><ul><li><strong>Save costs:</strong> Smart farming leads to lower costs on labor, water, and nutrients for crops.</li><li><strong>Save time and be more organized:</strong> being able to view water levels and weather conditions remotely saves the time it takes to physically go out to the fields. In addition, by knowing weather patterns, you are able to better plan out what needs done during the day while avoiding rain or other weather</li><li><strong>Easier to make decisions</strong>: Everything from pesticides, seeding, irrigation, and labor can be done more accurately with precise data. You can better predict spraying times by tracking historical weather patterns for the exact area and better anticipate disease risks through weather patterns and conditions.</li><li><strong>More efficient crop monitoring with less human error</strong>: automatic monitoring will lead to more accurate data in less time and with less labor.</li></ul><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on The Internet of Things.</em></p><p>NB-If you have any IoT concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*laiAsZkrEp0AQ2NS7qG8ug.jpeg" /><figcaption>Liquid and Twiga Team at Takuwa Digital Farm, Kajiado Kenya</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3cba767d4c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connected Logistics — The Digital Road Ahead]]></title>
            <link>https://medium.com/@ngesa254/connected-logistics-the-road-ahead-7d27e60f7d2a?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d27e60f7d2a</guid>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Sun, 15 Aug 2021 05:52:34 GMT</pubDate>
            <atom:updated>2022-03-29T07:56:04.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ixO0wKQiOJw-xnnUm0O1mg.png" /><figcaption>A tracker on an asset in Nairobi, Kenya</figcaption></figure><h4>Supply Chain transformation with Liquid Telecom’s 0G Network, Azure &amp; Maps</h4><h4>Smart Logistics solution results</h4><ul><li>Enabled development of Smart Logistics Solutions in just months.</li><li>Improved security for warehouses and fleet vehicles</li><li>Helped to monitor transport condition throughout the entire supply chain</li><li>Democratized data access and use across the organization.</li></ul><p><strong>Challenges</strong></p><p><strong>Solution — Connected Logistics</strong></p><p>Organizations can now capture and track relevant events that occur in the logistics space and time thanks to Liquid connectivity and cloud solutions. Vehicles are being equipped with IoT devices that regularly send telemetry data such as location information, distance traveled, and even engine running state to Azure Cloud via Sigfox.</p><p>With the help of Azure and maps, Geofencing can be done on the stored information and notifications sent whenever a car leaves the correct authorized geographic location.</p><p>Examples of solutions in this space includes fleet management, asset tracking, mobility, and smart city applications.</p><p><strong>IoT starts with Liquid Telecom 0G Connectivity</strong></p><p>SIGFOX is a leading provider of dedicated connectivity for the Internet of Things. They provide a two-way communication service through a global radio network.</p><p>It is the first global 0G network — a low-power wide area network (LPWAN), which interconnects low-bandwidth, battery powered devices with low bit rates over long ranges.</p><p><a href="https://www.liquidtelecom.com/">Liquid Telecom</a>, a leading communications and solutions provider in 13 African Countries, operates the network in Kenya</p><p><strong>Azure IoT Hub</strong></p><p>Azure IoT Hub enables secure bi-directional communication between devices and Azure (via Sigfox network). It authenticates the connected devices and help set up individual identities and credentials for each. It also help retain the confidentiality of both cloud-to-device and device-to-cloud messages.</p><p>Azure IoT Hub can also be integrated with other Azure services such as Event Grid to build complete end-to-end IoT solutions.</p><p><strong>Event Grid</strong></p><p>The Event Grid will listen to data sources such as Azure IoT Hub and Trigger serverless function within Azure.</p><p><strong>Azure functions</strong></p><p>SIGFOX does not understand or transform the payload being transmitted through the network. Manufacturers pack messages, payload in different ways/data formats and it is only them who knows how it is structured. Here is guide on the <a href="https://github.com/warefab/Konnect-STM32-Sigfox/blob/master/Firmware_V1/Doc_v02.pdf">warfab v1 devkit payload structure.</a></p><p>To manage messages that will be coming from Sigfox webhook integration, go toIoTCIntegration/index.js file of the Function App and replace code in the trytry block with the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1116e5f253b04d211798883acece61b1/href">https://medium.com/media/1116e5f253b04d211798883acece61b1/href</a></iframe><p><em>Configure sigfox backend to trigger HTTP function URL</em></p><p>The configuration of callbacks is done in the Sigfox backend device type page.<br>The callbacks are triggered when a new device message is received or when a device communication loss has been detected.</p><blockquote><em>Ensure that you can see messages sent by your device in your </em><a href="https://backend.sigfox.com/"><em>Sigfox backend</em></a><em>, in </em><strong><em>Device &gt; Messages</em></strong><em>.</em></blockquote><p><strong>Azure Maps</strong></p><p>Location is a powerful component of providing insights. IoT data can then be taken to Azure Maps to provide geographic context to the telematics.</p><p>Azure Maps also provide Geofence API that can be used to in Azure function to determine whether a vehicle has moved outside the geofence area.</p><p><strong>Blob storage</strong></p><p>The data can also be stored in Azure Blob storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4FlvhyNl8ccNGbHVb476_g.jpeg" /><figcaption>Capturs Sigfox tracker on a Crate in Nairobi, Kenya</figcaption></figure><h4>Custom Platforms</h4><p>Liquid connectivity and cloud provides a simple and secure way to integrate IoT data to other custom platforms. Developers can leverage on Callbacks and Rest APIs to send IoT data into their IT infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FnD0H_A8w5_mQO5fTKtkRQ.png" /></figure><p>Custom Platforms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Ol8AqHd2OWyxIwpJHGbQA.png" /></figure><p><strong>Returnable Asset Tracking</strong></p><h4>Warehouse</h4><p>Until recently,</p><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on The Internet of Things.</em></p><p>NB-If you have any IoT concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d27e60f7d2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Industry 4.0 —  Your Future’s Factory is Smarter than Today’s]]></title>
            <link>https://medium.com/@ngesa254/industry-4-0-your-futures-factory-is-smarter-than-today-s-5bb85c6414f8?source=rss-3d4aa1e43527------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bb85c6414f8</guid>
            <dc:creator><![CDATA[Ngesa Marvin 10x]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 19:43:24 GMT</pubDate>
            <atom:updated>2022-03-29T07:57:19.987Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0M5A4VyxhI-r1_OX4-SuTA.jpeg" /><figcaption>IoT device streaming vibration data from a Genset in Nairobi, Kenya</figcaption></figure><h3>Industry 4.0 — Your Future’s Factory is Smarter than Today’s</h3><h4>Are you ready to embrace Liquid Telecom’s 0G ( Sigfox ) and Artificial Intelligence?</h4><h4>Smart factory solution results</h4><ul><li>Helped to cut down on unnecessary maintenance trips.</li><li>Helped to collect consumption data effortlessly</li><li>Helped to monitor vital parameter, leaks and rapture in pipes</li><li>Helped to streamline operations, cut costs, and gain new insights.</li><li>Enabled development of Smart Factory Solutions in just months.</li><li>Democratized data access and use across the organization.</li></ul><p><strong>Challenges</strong></p><p><strong>Solution — Industry 4.0</strong></p><h4>Evolution of Industry with IoT beyond Connectivity</h4><p><strong>Sigfox</strong></p><p>SIGFOX is a leading provider of dedicated connectivity for the Internet of Things. They provide a two-way communication service through a global radio network.</p><p>It is the first global 0G network — a low-power wide area network (LPWAN), which interconnects low-bandwidth, battery powered devices with low bit rates over long ranges.</p><p><a href="https://www.liquidtelecom.com/">Liquid Telecom</a>, a leading communications and solutions provider in 13 African Countries, operates the network in Kenya</p><p><strong>Azure functions</strong></p><p>SIGFOX does not understand or transform the payload being transmitted through the network. Manufacturers pack messages, payload in different ways/data formats and it is only them who knows how it is structured. Here is guide on the <a href="https://github.com/warefab/Konnect-STM32-Sigfox/blob/master/Firmware_V1/Doc_v02.pdf">warfab v1 devkit payload structure.</a></p><p>To manage messages that will be coming from Sigfox webhook integration, go toIoTCIntegration/index.js file of the Function App and replace code in the trytry block with the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1116e5f253b04d211798883acece61b1/href">https://medium.com/media/1116e5f253b04d211798883acece61b1/href</a></iframe><p><strong>Cosmos DB</strong></p><p>The outcome of Azure functions is then binded into Cosmos DB. Using Azure Functions and Azure Cosmos DB, you can create and deploy event-driven serverless apps with low-latency access to rich data for a global user base.</p><p><strong>Jupiter Notebook</strong></p><p>Once the data is in Cosmos DB, built-in Jupyter Notebooks can be used to explore it. In fact you can do data exploration, data cleaning, data transformations, numerical simulations, statistical modeling, data visualization, and machine learning within the build Notebooks.</p><p><strong>Power BI</strong></p><p>The data is then taken to Power BI for transformation and rich visuals. It enables you to retrieve data from various data sources including Cosmos DB and create dashboards and reports.</p><p>Power BI Desktop is connected to Azure Cosmos DB account with the Azure Cosmos DB connector for Power BI.</p><p><em>If you found this helpful, click the 👏. Follow this publication for more tutorials on The Internet of Things.</em></p><p>NB-If you have any IoT concepts you’d like explained in a post, any question, comment, or suggestions, please let me know. I’ll get back to as many as I can.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bb85c6414f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>