<?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 PK on Medium]]></title>
        <description><![CDATA[Stories by PK on Medium]]></description>
        <link>https://medium.com/@ledubmurukp?source=rss-2030177272ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Lx2zQfiBt3gPu1C8cVx58A.png</url>
            <title>Stories by PK on Medium</title>
            <link>https://medium.com/@ledubmurukp?source=rss-2030177272ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:16:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ledubmurukp/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[Comparative Analysis of Android Runtime (ART) and Embedded Container Runtime: Architectures…]]></title>
            <link>https://medium.com/@ledubmurukp/comparative-analysis-of-android-runtime-art-and-embedded-container-runtime-architectures-f9f54b6e8194?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9f54b6e8194</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Mon, 29 Jan 2024 15:33:45 GMT</pubDate>
            <atom:updated>2024-01-29T15:38:13.399Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Of9NHcYZmaP7hag7cLNEkQ.png" /></figure><h3>Comparative Analysis of Android Runtime (ART) and Embedded Container Runtime: Architectures, Performance, and Use Cases</h3><p>Comparing Android Runtime (ART) with Embedded Container Runtime involves understanding the distinct purposes and environments these runtimes are designed for. Here’s a comparison based on various aspects:</p><h3>Purpose and Use</h3><h4>Android Runtime (ART):</h4><ul><li>They are designed specifically for running Android applications.</li><li>Optimizes app performance and efficiency.</li><li>Translates app bytecode into native instructions that are executed by the device’s runtime environment.</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Aimed at running containerized applications in embedded systems.</li><li>Provides an isolated environment for each container.</li><li>Focuses on minimal overhead to suit resource-constrained environments typical of embedded systems.</li></ul><h3>Architecture</h3><h4>ART:</h4><ul><li>Built to optimize and run Dalvik bytecode, which is typical of Android apps.</li><li>Uses ahead-of-time (AOT) compilation, just-in-time (JIT) compilation, or a mix of both to execute applications.</li><li>It is integrated deeply with Android OS, leveraging its libraries and handling the app lifecycle.</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Engineered to run containers, which are essentially lightweight, standalone, and executable packages that include software, libraries, and configuration files.</li><li>Often based on Linux technologies like cgroups and namespaces for resource isolation and management.</li><li>Can be based on Docker, rkt, LXC, or other containerization technologies, some of which are customized for embedded systems.</li></ul><h3>Performance and Efficiency</h3><h4>ART:</h4><ul><li>Optimizes for mobile devices’ performance and battery life.</li><li>AOT compilation improves app launch times and overall performance.</li><li>Tailored for Android’s environment, thus highly efficient in managing Android apps.</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Designed to be lightweight to suit the limited resources (CPU, memory) of embedded systems.</li><li>Efficiency depends on the choice of container technology and how well it’s optimized for the embedded environment.</li><li>Potential for lower overhead compared to traditional virtualization.</li></ul><h3>Security</h3><h4>ART:</h4><ul><li>Implements security at the application level, following Android’s security model.</li><li>Includes sandboxing of Android apps.</li><li>Regular updates and patches are managed through Android updates.</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Provides security through container isolation.</li><li>Capability to implement additional security measures like read-only filesystems, resource limits, and network policies.</li><li>Security depends on the underlying container technology and how it’s configured.</li></ul><h3>Flexibility and Portability</h3><h4>ART:</h4><ul><li>They are primarily designed for Android applications, limiting its use to the Android ecosystem.</li><li>Not portable beyond Android-based systems.</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Containers are inherently portable across different systems provided the same container runtime is available.</li><li>Allows for consistent environments across development, testing, and production.</li></ul><h3>Ecosystem and Tooling</h3><h4>ART:</h4><ul><li>Tightly integrated with the Android ecosystem, including tools for development, debugging, and distribution (like Android Studio).</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Part of a broader ecosystem that includes tools for container orchestration (like Kubernetes), CI/CD integration, and cloud-native technologies.</li><li>Offers a wider range of tools for development, monitoring, and management.</li></ul><h3>Target Audience</h3><h4>ART:</h4><ul><li>Primarily developers targeting the Android platform for mobile/automotive/TV/wearable devices (Android/AOSP world).</li></ul><h4>Embedded Container Runtime:</h4><ul><li>Developers and engineers working on embedded systems, IoT devices, and potentially cross-platform applications.</li></ul><p>Summing up, while ART is specialized for running Android applications with optimizations for devices with Android, embedded container runtimes are geared towards providing lightweight, isolated environments for running applications in resource-constrained embedded systems. The reason why I tried to compare this is that the purpose both of them serve is somewhat similar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9f54b6e8194" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to do transfer learning from the Keras VGG16 model?]]></title>
            <link>https://medium.com/@ledubmurukp/how-to-do-transfer-learning-from-the-keras-vgg16-model-17470c1cdded?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/17470c1cdded</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 14:08:44 GMT</pubDate>
            <atom:updated>2024-02-06T06:12:40.658Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37IqufrDQO6b9JGAdwMChQ.jpeg" /></figure><p>I had a task of gesture recognition. Gesture recognition is to be done by analyzing a set of video frames. For this, I wanted to use RNN, but before feeding the input to RNN, I wanted to process the images using CNN2D, and then feed the input to RNN model. Instead of building a new CNN2D model, I thought of using the VGG16, which comes with built-in Keras. I have tried to generalize the steps that I did and written below in 9 steps.</p><h3>VGG16Net</h3><p>VGG16Net is a much more reliable convolutional network, which won the imagenet competition 2016. It is reliable and has good accuracy and performance. Transferring learning from a pre-trained model like VGG16 in Keras involves a few steps. The VGG16 model, trained on the ImageNet dataset, is a powerful tool for image classification tasks. Here’s how you can use it for your dataset</p><ol><li>Import Necessary Libraries: First, you need to import the necessary libraries from Keras:</li></ol><pre>from keras.applications.vgg16 import VGG16<br>from keras.models import Model<br>from keras.layers import Dense, Flatten<br>from keras.preprocessing.image import ImageDataGenerator</pre><p>2. Load the Pre-trained VGG16 Model: Load the VGG16 model without its top layer (fully connected layers) since you will be adding your own layers for your specific task.</p><pre>base_model = VGG16(weights=&#39;imagenet&#39;, include_top=False, input_shape=(224, 224, 3))</pre><p>3. Freeze the Convolutional Base: It’s common practice to freeze the weights and biases of the pre-trained model, so they don’t get updated during the first phase of training.</p><pre>for layer in base_model.layers:<br>    layer.trainable = False</pre><p>4. Add Custom Layers: Add your own layers on top of the VGG16 base. This can be a combination of Flatten, Dense, Dropout, etc., depending on your problem.</p><pre>x = Flatten()(base_model.output)<br>x = Dense(1024, activation=&#39;relu&#39;)(x)<br>predictions = Dense(your_number_of_classes, activation=&#39;softmax&#39;)(x)<br>model = Model(inputs=base_model.input, outputs=predictions)</pre><p>5. Compile the Model: Compile the model with a suitable optimizer, loss function, and metrics.</p><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])</pre><p>6. Data Preparation: Prepare your data using Keras’ ImageDataGenerator or any other method you prefer. Make sure the images are resized to 224x224, as this is the input size that VGG16 expects.</p><p>7. Training: Train the model on your data. You can start by training only the newly added layers.</p><pre>model.fit_generator(your_training_data, steps_per_epoch=100, epochs=10, validation_data=your_validation_data)</pre><p>8. Fine-Tuning (Optional): Once the new layers are trained, you can unfreeze some of the top layers of VGG16 and continue training. This step is optional and depends on how specific your task is compared to ImageNet.</p><pre>for layer in model.layers[:unfreeze_layer]:<br>    layer.trainable = True<br><br>model.compile(optimizer=&#39;adam&#39;, loss=&#39;categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.fit_generator(your_training_data, steps_per_epoch=100, epochs=10, validation_data=your_validation_data)</pre><p>9. Evaluate and Use Your Model: Finally, evaluate your model on test data and use it for predictions.</p><p>This is a general guide. You might need to adjust some parameters and steps according to your specific problem and data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17470c1cdded" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Difference: Embedded Container Orchestration vs. Cloud Container Orchestration]]></title>
            <link>https://medium.com/@ledubmurukp/understanding-the-difference-embedded-container-orchestration-vs-cloud-container-orchestration-d3570a9cd9c9?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3570a9cd9c9</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 17:30:39 GMT</pubDate>
            <atom:updated>2024-01-24T17:30:39.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNbigGIh37lJ0lwa8BzFDA.png" /></figure><p>In the ever-evolving landscape of software development and IT infrastructure management, container orchestration has become a cornerstone for deploying, managing, and scaling applications. At the heart of this revolution are two distinct approaches: Embedded Container Orchestration and Cloud Container Orchestration. This article explores the nuances, benefits, and considerations of these two methodologies, offering insights into their optimal use cases and impact on modern computing.</p><h3>Container Orchestration: A Brief Overview</h3><p>Container orchestration is the automated process of managing the life cycle of containers in distributed environments. Containers, lightweight, standalone packages containing everything needed to run an application (code, runtime, system tools, libraries, and settings), have become popular due to their efficiency, portability, and consistency across environments.</p><h3>Embedded Container Orchestration</h3><p>Embedded container orchestration refers to the management of containers within embedded systems. An embedded system is a specialized computing system designed for specific tasks rather than general-purpose computing.</p><h4>Characteristics of Embedded Container Orchestration:</h4><ol><li>Resource-Constrained Environments: Embedded systems often have limited computing resources, including CPU, memory, and storage.</li><li>Dedicated Functionality: They are typically designed for specific functions, such as automotive control systems, industrial machines, or IoT devices.</li><li>High Stability and Reliability: Embedded systems require robust and stable operations, often running critical tasks that demand high reliability.</li><li>Security Concerns: Given their use in sensitive or critical applications, security is a paramount concern in embedded systems.</li></ol><h4>Advantages:</h4><ul><li>Efficiency in Limited Resources: Optimized to run in environments with limited resources.</li><li>Predictability and Reliability: Tailored for specific tasks, offering high stability.</li><li>Specialized Application Focus: Suited for applications where dedicated functionality is crucial.</li></ul><h4>Challenges:</h4><ul><li>Complexity in Development and Maintenance: Requires specialized knowledge and skills.</li><li>Limited Scalability: Often restricted by the hardware capabilities of the embedded system.</li></ul><h3>Cloud Container Orchestration</h3><p>Cloud container orchestration, on the other hand, involves managing containers across cloud-based infrastructures. This can include public clouds like AWS, Azure, and Google Cloud Platform, private clouds, or hybrid environments.</p><h4>Characteristics of Cloud Container Orchestration:</h4><ol><li>Scalability and Elasticity: Cloud environments can easily scale up or down, handling varying workloads efficiently.</li><li>Distributed Computing: Cloud orchestration often involves managing containers across multiple servers and regions.</li><li>Integration with Cloud Services: It leverages cloud-native services for enhanced functionality, like auto-scaling, load balancing, and monitoring.</li><li>Cost-Effectiveness and Flexibility: Offers a pay-as-you-go model, reducing the need for upfront capital investment.</li></ol><h4>Advantages:</h4><ul><li>High Scalability and Flexibility: Ideal for applications with fluctuating demands.</li><li>Ease of Management: Tools and platforms available for efficient management of containerized applications.</li><li>Rapid Deployment and Innovation: Facilitates quick deployment and continuous integration/continuous deployment (CI/CD) practices.</li></ul><h4>Challenges:</h4><ul><li>Security and Compliance: Managing security in a shared, multi-tenant environment is complex.</li><li>Potential Vendor Lock-in: Dependency on specific cloud providers can limit flexibility and control.</li></ul><h3>Comparative Analysis</h3><p>The primary differences between embedded and cloud container orchestration lie in their application environments and operational focuses. Embedded orchestration is tailored for specific, resource-constrained environments, prioritizing stability and efficiency. Cloud orchestration, meanwhile, offers scalability and flexibility, suited for diverse and dynamic application needs.</p><h3>Conclusion</h3><p>In summary, embedded and cloud container orchestration plays critical roles in modern computing, catering to different needs and scenarios. Understanding their distinct characteristics and applications is essential for organizations and developers to make informed decisions, ensuring efficient, secure, and scalable application deployment and management in an increasingly containerized world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3570a9cd9c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker and Container Technologies — A quick comparison]]></title>
            <link>https://medium.com/@ledubmurukp/docker-and-container-technologies-a-quick-comparison-ea0e314b2c63?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0e314b2c63</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Sat, 20 Jan 2024 18:13:53 GMT</pubDate>
            <atom:updated>2024-01-20T18:15:03.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XReJppa1v_VROGVxyi_MSg.png" /></figure><h3>Docker and Container Technologies — A quick comparison</h3><p>Comparing Docker with other container technologies involves examining several key players in the containerization landscape. Each technology offers unique features, advantages, and limitations. Here’s a comprehensive comparison of Docker with some of the prominent container technologies:</p><h3>1. Docker</h3><ul><li>Popularity: Docker is one of the most widely used container platforms.</li><li>Ecosystem and Community: Boasts a vast ecosystem and community, providing a wealth of resources, tools, and support.</li><li>Portability: Docker containers can run anywhere — on any cloud or OS.</li><li>Docker Hub: Provides a large public registry (Docker Hub) for sharing container images.</li><li>Tooling: Offers extensive tooling with Docker Compose, Docker Swarm, and more.</li><li>Learning Curve: Relatively easy to learn and use, making it ideal for beginners and small-scale applications.</li></ul><h3>2. Kubernetes</h3><ul><li>Primary Use: Originally developed by Google, Kubernetes is not a container itself but a container orchestration platform for managing large-scale container deployments.</li><li>Scalability: Highly scalable and suitable for large, complex applications.</li><li>Community and Support: Strong community support with backing from the Cloud Native Computing Foundation (CNCF).</li><li>Integration: Works well with various container runtimes, including Docker.</li><li>Complexity: More complex to set up and manage compared to Docker.</li></ul><h3>3. Podman</h3><ul><li>Daemonless: Podman runs containers without a daemon, a distinct difference from Docker.</li><li>Rootless: Allows running containers without root privileges, enhancing security.</li><li>Compatibility: Podman is CLI compatible with Docker, which means Docker commands can be replaced with Podman commands.</li><li>Scaling and Orchestration: Lacks native clustering capabilities; however, it can integrate with Kubernetes.</li></ul><h3>4. LXC/LXD</h3><ul><li>Linux Containers (LXC): More akin to lightweight VMs, LXC focuses on OS virtualization at the system level.</li><li>LXD: A container manager for LXC, providing a more user-friendly experience.</li><li>OS Level Virtualization: Offers a full Linux environment with its own filesystem, networking, and processes.</li><li>Performance: Tends to have lower overhead than VMs, but higher than Docker containers.</li></ul><h3>5. Containerd</h3><ul><li>Background: An industry-standard core container runtime, originally part of Docker.</li><li>Focus: Focuses on simplicity and robustness, providing the basic functionalities required for running containers.</li><li>Use with Kubernetes: Often used as the container runtime for Kubernetes.</li><li>Flexibility: Less opinionated than Docker, offering more flexibility in how containers are run and managed.</li></ul><h3>6. rkt (Rocket)</h3><ul><li>Developer: Developed by CoreOS, aiming to offer a more secure and modular approach.</li><li>Security: Designed with security in mind, using application containers.</li><li>Integration: Integrates well with Kubernetes through the CRI-O project.</li><li>Status: The project is not maintained anymore</li></ul><h3>Conclusion</h3><p>Each container technology has its strengths and fits different use cases. Docker stands out for its ease of use, vast community support, and comprehensive tooling, making it ideal for a wide range of applications and users, from beginners to enterprises. Kubernetes excels in orchestrating containerized applications, particularly in complex and large-scale environments. Tools like Podman and Containerd offer specialized features like daemonless operations and simplicity, respectively, appealing to users with specific needs in container management and security.</p><p>The choice among these technologies largely depends on the specific requirements of the project, the scale of deployment, the need for orchestration, and the level of security required.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0e314b2c63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Expanding Horizons of Embedded AI: Breaking Through Limitations]]></title>
            <link>https://medium.com/@ledubmurukp/the-expanding-horizons-of-embedded-ai-breaking-through-limitations-bcf6b63419d5?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcf6b63419d5</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 18:22:51 GMT</pubDate>
            <atom:updated>2024-01-18T18:22:51.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxwI7E8ftYpL5Vk0OiJVVQ.png" /></figure><h3>Introduction</h3><p>Embedded Artificial Intelligence (AI) refers to AI systems that are integrated into hardware devices. Unlike traditional AI, which operates on remote servers or in the cloud, embedded AI brings intelligence directly to the device, enabling real-time processing and decision-making. This approach has historically faced various limitations, but recent advancements are dramatically expanding its capabilities and applications.</p><h3>Overcoming Size and Power Constraints</h3><h3>Miniaturization of Hardware</h3><p>Early embedded AI systems were constrained by the size of the hardware. However, advances in microchip technology have led to significant miniaturization. Today’s chips are not only smaller but also more powerful, allowing them to host sophisticated AI algorithms without the bulkiness of older systems.</p><h3>Efficient Power Consumption</h3><p>Power consumption has been a major challenge for embedded AI, especially in battery-operated devices. Innovations in low-power AI chips and energy-efficient algorithms now enable longer operation periods, making embedded AI feasible for a wider range of applications, including mobile and wearable technologies.</p><h3>Enhanced Processing Capabilities</h3><h3>Edge Computing</h3><p>Embedded AI now often incorporates edge computing, where data processing occurs on the device rather than in a remote data center. This shift reduces latency, enhances privacy, and allows for real-time decision-making, crucial for applications like autonomous vehicles and smart manufacturing.</p><h3>Advanced Neural Networks</h3><p>The integration of advanced neural network models into embedded systems has been a game changer. These models, once exclusive to high-powered servers, are now optimized for embedded systems, providing high-level AI capabilities like image and speech recognition directly on devices.</p><h3>Improved Connectivity and Integration</h3><h3>Internet of Things (IoT) Synergy</h3><p>Embedded AI is a key driver in the growth of the Internet of Things (IoT). AI-enabled devices can communicate and make decisions independently, leading to smarter homes, cities, and industries. This synergy has expanded the utility and efficiency of IoT systems.</p><h3>Seamless Integration</h3><p>Modern embedded AI systems are designed for easier integration with existing technology ecosystems. This seamless integration allows for the retrofitting of AI capabilities into a wide range of devices and machinery, extending their functionality and lifespan.</p><h3>Expanding Applications</h3><h3>Healthcare</h3><p>In healthcare, embedded AI is revolutionizing patient monitoring and diagnostics. Wearable devices can now track vital signs and detect anomalies in real-time, enabling proactive healthcare management.</p><h3>Automotive Industry</h3><p>The automotive industry benefits from embedded AI in the development of advanced driver-assistance systems (ADAS) and autonomous vehicles. These systems process vast amounts of sensor data on the spot, enhancing safety and navigation.</p><h3>Environmental Monitoring</h3><p>Embedded AI systems are increasingly used in environmental monitoring, providing real-time data on air quality, weather conditions, and wildlife movements, aiding in conservation and disaster response efforts.</p><h3>Future Prospects</h3><p>The future of embedded AI is promising, with ongoing research focusing on further miniaturization, enhanced processing power, and smarter algorithms. The convergence of AI with other emerging technologies like quantum computing and advanced materials science is expected to push the boundaries even further.</p><p>The evolution of embedded AI is rapidly overcoming its traditional limitations. With smaller, more powerful, and energy-efficient hardware, along with advanced algorithms, embedded AI is set to revolutionize a myriad of industries and aspects of daily life. As we look to the future, the potential for embedded AI appears boundless, promising a smarter, more connected, and more efficient world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcf6b63419d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Large Language Models (LLMs) and Large Action Models (LAMs): Pioneering Frontiers in AI]]></title>
            <link>https://medium.com/@ledubmurukp/large-language-models-llms-and-large-action-models-lams-pioneering-frontiers-in-ai-d3988f1ed028?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3988f1ed028</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 18:11:58 GMT</pubDate>
            <atom:updated>2024-01-18T18:15:22.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*38ixYaOI5y7D_4HGJit0rw.png" /></figure><h3>Introduction</h3><p>The evolution of artificial intelligence has been significantly marked by the development of Large Language Models (LLMs) and Large Action Models (LAMs). LLMs, like OpenAI’s GPT series, have revolutionized the understanding and generation of human language through advanced natural language processing techniques. LAMs, emerging as a novel concept, are designed to understand and predict complex sequences of actions in various environments. This article aims to explore the intricacies, applications, and potential implications of LLMs and LAMs, underscoring their roles in advancing AI capabilities and their impacts on various sectors. It highlights the transformative potential of these AI models in enhancing both linguistic and action-based understanding and execution.</p><h3>Large Language Models (LLMs)</h3><p>LLMs are AI models designed to understand, interpret, and generate human language. They are trained on extensive textual datasets, enabling them to perform diverse language-related tasks with high proficiency.</p><h3>Large Action Models (LAMs)</h3><p>LAMs represent a newer class of AI models that are trained to understand and predict sequences of actions. These models find applications in fields like robotics, automation, and interactive systems, where predicting and executing a series of actions is crucial.</p><h3>Mechanics of LLMs</h3><ol><li>Training and Architecture: LLMs employ deep learning architectures, primarily transformers, trained on vast amounts of text data. They learn to predict text sequences, thereby gaining a sophisticated understanding of language.</li><li>Capabilities: LLMs excel in language translation, content creation, summarization, and question answering, showcasing an advanced grasp of context and linguistic subtleties.</li></ol><h3>Mechanics of LAMs</h3><ol><li>Training and Implementation: LAMs are trained using large datasets of action sequences, often in simulated or controlled environments. They use reinforcement learning and other advanced AI techniques to learn optimal action strategies.</li><li>Capabilities: LAMs are adept at planning and executing sequences of actions, making them suitable for applications in robotics, automated systems, and interactive AI.</li></ol><h3>Applications</h3><ol><li>LLMs: LLMs have applications in customer service, content generation, education, and more, where they enhance efficiency and creativity in language-related tasks.</li><li>LAMs: LAMs are pivotal in developing sophisticated robotics, autonomous systems, and interactive applications where predicting and executing actions is key.</li></ol><h3>Ethical Considerations and Challenges</h3><ol><li>Bias and Fairness: Both LLMs and LAMs can perpetuate biases present in their training data, leading to unfair outcomes.</li><li>Safety and Reliability: LAMs, particularly in robotics and automation, must be designed with safety and reliability as paramount considerations to prevent accidents or misinterpretations.</li><li>Privacy and Data Security: The extensive data used to train these models necessitates stringent data privacy and security measures.</li></ol><h3>Future Directions</h3><ol><li>Integrative AI Systems: Combining LLMs with LAMs could lead to more comprehensive AI systems capable of understanding language and performing complex actions.</li><li>Ethical AI Development: There is a growing need for ethical guidelines and frameworks in AI development to ensure the responsible use of LLMs and LAMs.</li><li>Cross-Disciplinary Research: Collaboration between different scientific and engineering disciplines can further enhance the capabilities of LLMs and LAMs.</li></ol><p>LLMs and LAMs represent two of the most innovative advancements in AI. While offering vast potential across various sectors, they also pose challenges in ethics, safety, and bias. Addressing these challenges is essential for the responsible and effective implementation of these technologies.</p><h3>References</h3><ul><li>Vaswani, A., et al. (2017). “Attention Is All You Need.” <em>Neural Information Processing Systems</em>.</li><li>OpenAI. (2021). “GPT-4: Enhancing Language Understanding.”</li><li>Sutton, R. S., &amp; Barto, A. G. (2018). “Reinforcement Learning: An Introduction.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3988f1ed028" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A commentary on TinyML]]></title>
            <link>https://medium.com/@ledubmurukp/a-commentary-on-tinyml-f2b73be2616d?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2b73be2616d</guid>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 05:14:36 GMT</pubDate>
            <atom:updated>2024-01-17T05:14:36.073Z</atom:updated>
            <content:encoded><![CDATA[<p>TinyML (Tiny Machine Learning) represents a growing field of machine learning technologies and applications that are designed to work on low-power, low-resource hardware. This emerging domain is particularly significant as it makes machine learning models operational on small devices such as microcontrollers, which are embedded in billions of everyday devices around the world. Here’s a detailed commentary on various aspects of TinyML:</p><h3>1. Definition and Scope</h3><ul><li>TinyML: Integrates machine learning capabilities into ultra-low power systems, like microcontrollers and small digital signal processors (DSPs).</li><li>Scope: Encompasses voice recognition, predictive maintenance, gesture detection, and more, often in real-time and with minimal power consumption.</li></ul><h3>2. Hardware Requirements</h3><ul><li>Microcontrollers: TinyML typically runs on microcontrollers (MCUs) that are significantly less powerful than traditional CPUs or GPUs used in higher-end ML applications.</li><li>Low Power Consumption: These devices often operate with power constraints, sometimes as low as a few milliwatts.</li><li>Memory Limitations: MCUs have limited memory, sometimes only a few kilobytes for both code and data.</li></ul><h3>3. Software and Algorithms</h3><ul><li>Model Optimization: Models must be highly optimized to run efficiently on low-resource hardware. Techniques include pruning, quantization, and knowledge distillation.</li><li>Frameworks: Tools like TensorFlow Lite for Microcontrollers and TinyML libraries allow for the development and deployment of models on small devices.</li></ul><h3>4. Applications</h3><ul><li>IoT Devices: TinyML enables smart, connected devices in the Internet of Things (IoT), from wearables to smart home devices.</li><li>Edge Computing: Facilitates processing at the edge of the network, reducing the need for constant cloud connectivity and data transmission.</li><li>Agriculture, Healthcare, and More: Applications span across various sectors, including smart agriculture, health monitoring devices, and industrial automation.</li></ul><h3>5. Challenges</h3><ul><li>Resource Constraints: The primary challenge is balancing model complexity with the limited computational and memory resources of microcontrollers.</li><li>Energy Efficiency: Ensuring models are energy-efficient to prolong battery life in portable devices.</li><li>Data Privacy: Local processing of data can enhance privacy, as less sensitive information needs to be sent to the cloud.</li></ul><h3>6. Future Directions</h3><ul><li>Advances in Hardware: Development of more powerful and energy-efficient microcontrollers will expand TinyML capabilities.</li><li>Algorithmic Improvements: Continued research in model compression and efficient neural network architectures.</li><li>Broader Accessibility: Making TinyML more accessible to developers, including better tools and educational resources.</li></ul><h3>Conclusion</h3><p>TinyML stands at the intersection of machine learning and embedded systems, offering a transformative potential for a myriad of applications that require intelligence at the edge. Its ability to bring AI to the smallest devices not only paves the way for smarter consumer products but also holds the promise of significant advancements in sectors like healthcare, environmental monitoring, and industrial automation. As the technology continues to evolve, we can expect to see even more innovative applications and improvements in efficiency and performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2b73be2616d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up a CI/CT pipeline in 7 steps?]]></title>
            <link>https://medium.com/@ledubmurukp/how-to-set-up-a-ci-ct-pipeline-in-7-steps-35dce030a4e6?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/35dce030a4e6</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 19:29:36 GMT</pubDate>
            <atom:updated>2023-01-13T19:29:36.907Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up a CI/CT pipeline typically involves the following steps:</p><ol><li>Choose a CI/CT tool: There are many CI/CT tools available, such as Jenkins, Travis CI, CircleCI, and GitLab CI/CD. Choose the one that best fits your needs and integrate it with your code repository.</li><li>Create a build script: This script should define the steps required to build and test your code. It will be executed by the CI/CT tool each time changes are pushed to the repository.</li><li>Configure the pipeline: In the CI/CT tool, create a pipeline that defines the stages of your build process, such as build, test, and deploy. These stages should correspond to the steps defined in your build script.</li><li>Set up automated tests: Automated tests should be run as part of the pipeline, to ensure that the code is functioning as expected.</li><li>Configure notifications and reporting: Set up notifications to be sent to relevant parties when the pipeline passes or fails. Also, set up reporting to track the pipeline’s performance over time.</li><li>Set up continuous deployment: If your pipeline is ready, you can set up continuous deployment so that your code is automatically deployed to production when all tests pass.</li><li>Monitor and maintain the pipeline: Continuously monitor the pipeline, to ensure it is running smoothly and making necessary adjustments when required.</li></ol><p>Note: The exact steps may vary depending on the specific CI/CT tool you choose and the specifics of your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35dce030a4e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ML & AI in Android]]></title>
            <link>https://medium.com/@ledubmurukp/ml-ai-in-android-35095457df40?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/35095457df40</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[android-ndk]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Sun, 31 Mar 2019 12:24:26 GMT</pubDate>
            <atom:updated>2019-04-05T12:20:45.118Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine Learning &amp; Artificial Intelligence have been around since long time, lately it has seen a lot of optimism in the industry, and found itself a lot of applications. Industries like Finance, Retail, Consumer Electronics, Manufacturing, even Automobiles, making use of ML &amp; AI is extensively. The applications vary from simple regression to complex image recognition tasks which run on Neural Networks.<em> </em>AI has been in the corner since several years, but it is getting traction lately because of the computing infrastructures those are available in the current days. Substantial improvement in the computing capabilities, hardware accelerators like GPUs and DSPs, and Cloud platforms have fueled the use of AI, as AI needs powerful resources like these to perform the training and tasks. As we know, AI processing is expensive in terms of storage, memory and computational capabilities. Most of the AI algorithms make use of GPUs. Because on CPU, it some of the algorithms would take forever to run.</p><p>Artificial Intelligence may refer to several algorithms. Starting from Regression, Support Vector Machines, Decision Trees, Clustering, to Deep Learning, Neural Networks, there are several algorithms which may be often referred as AI algorithms. The terms Machine Learning and Artificial Intelligence are often used interchangeably. On a broad spectrum, these algorithms are divided into Supervised and Unsupervised Learning Algorithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*pudPRZUiRqeqfkBiOLBgyA.png" /><figcaption>fig. 1</figcaption></figure><p>The above diagram is from the book Deep Learning [written by Ian Goodfellow &amp; Yoshua Bengio] which shows the different terminologies and their contexts. So, AI is a broader union, which contains Machine Learning(ML), Representation Learning (RL) and Deep Learning (DL)</p><p>Google released an AI module with Android 8.1. This is called NNAPI (Neural Network Application Programming Interface). NNAPI provides multiple interfaces, starting from model building, to processing (decision making). The question is what kind of applications does Android support from the introduction of NNAPI?</p><h4>Android’s NNAPI</h4><p>From the name, it is quite clear that it supports applications in the area of Deep Learning. Neural Networks are built to solve Deep Learning problems. Let us have a deeper look into the capabilities of NNAPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*8gHn-SIHqZSjjfaGxrKARA.png" /><figcaption>fig. 2 Android NNAPI System Architecture</figcaption></figure><p>Above diagram shows the NNAPI system architecture, given in the Android Developer website. 3 layers mentioned. There are Framework and application in the top layer, NN Runtime in the middle, vendor drivers in the bottom layer. From the diagram it is clear that the Vendor drivers are accessed through the NN HAL interfaces, the Framework uses NNAPI to interact with the NN Runtime. For the App developers, there are java interfaces provided by the Machine Learning framework to use. App developers should not be using NNAPI directly. The Vendor Drivers enable the system to make use of Hardware acceleration resources like GPU or DSP or Specialized Processor.</p><h4>CPU vs GPU</h4><p>Now, if the above stack is integrated in an Android device, will that Android device handle AI Apps? Answer is yes. If the device has those Hardware Acceleration resources, the computations will run on these hardware. The NN Runtime interacts with the vendor driver to access these hardware resources. Meaning, when a device has Hardware acceleration capabilities, it should also have those respective driver firmware from these hardware vendors, which are mentioned as vendor drivers in the above diagram. We can also see “CPU fallback” ellipse inside the Android Neural Networks Runtime. Meaning, if the device does not have accelerating hardware, then the runtime will make the algorithm to run on the CPU itself. The Android documentation says that the runtime will optimize the code instead of directly running on the CPU. A CPU may take a lot of time to do these computations, because of the limited capabilities to process the set of instructions in given time, because of sequential processing. A GPU may have multiple cores with can do parallel processing. This makes the GPU 50–100 times more powerful than a CPU of same range. This is the reason why GPU’s are popular in the AI community, as they can process multiple instructions at a time, let us say, as a batch. Some of the computations can be handled by the DSP’s like the floating point computations. The NNAPI enables an Android device to do the AI computations on board. This is a significant change in Android 8.1. (The vendor drivers shown in the above diagram are GPU driver, DSP driver or any other specialized processor driver, as per the vendor’s GPU, DSP or specialized processor)</p><p>For reader’s interest, here is an interesting video from NVIDIA which explains the working of CPU and GPU</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-P28LKWTzrI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-P28LKWTzrI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-P28LKWTzrI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8c58ef177d27eb81996524f560952f6/href">https://medium.com/media/c8c58ef177d27eb81996524f560952f6/href</a></iframe><h4>Advantages of on board Processing</h4><p>In many applications, AI computations are performed off-board, on a remote server. Remote servers can be much more powerful, as they may have benches of GPUs, so they can process the computations much faster. On the other hand, as the Android developer website says, there are few advantages of processing on-board.</p><p>Latency. As the computations are performed on-board, the device doesn’t have to send a request to the server and get response, which does away with the communication latency.</p><p>Availability. Many times when the application requests an off-board resource to perform a computation, the resource may not be available, either because they are busy or there is no internet. When it is performed on-board, there no such risk.</p><p>Speed. Debatable, but it can be said that the apps can be sure of the available GPU on-board, and GPUs process much faster than CPU. On the other hand, if the off-board processor is also a GPU, that could be much powerful than the on-board GPU.</p><p>Privacy. Self-explanatory. No need to send the data to a server to do the processing. Data remains local to the device.</p><p>Cost. No need to pay extra for the servers or server farms. User owns his own GPU on-board.</p><h4>Vendor SDKs</h4><p>As mentioned above, NNAPI was introduced from Android 8.1. But that was not the beginning of Embedded AI computing. There have been many Embedded AI applications which made use of Embedded Hardware Accelerators, even before the introduction of NNAPI. Each chip manufacturer has their AI Stack and SDKs for AI applications. Using these SDKs, AI applications can be developed for Embedded Devices. Actually, the introduction of NNAPI has standardized the AI stack, at least in Android. AI stacks and SDKs from the chip manufacturers can still be used in the embedded devices.</p><p>Major vendors or chip makers in the market are Intel, NVIDIA, AMD, Qualcomm, HiSilicon, MediaTek and Samsung. Qualcomm holds the major share in the mobile market, around 55% of the mobile phones run on Snapdragon from Qualcomm. They released their proprietary NN processing engine in 2016, and Snapdragon Neural Processing Engine (SNPE) SDK. This provides hardware acceleration to Snapdragon processor units. It supports Deep Learning frameworks such as Caffe/Caffe2, Tensorflow, Pytorch, Chainer, CNTK, MxNet and PaddlePaddle via Open Neural Network Exchange. Later HiSilicon introduced the Neural Processing Unit (NPU), and their SDK is called as HiAI. Mediatek proposed AI Processing Unit, with their SDK known as Mediatek Neuropilot. Though other vendors like Intel, AMD and NVIDIA are not popular in the mobile phone segment, they have their own on-board hardware accelerations, and corresponding SDKs, like Movidius from Intel. All these SDKs are developed for corresponding chipsets only. They cannot be used in other platforms; or Applications developed for one platform cannot run on the other chipset. Android’s NNAPI addressed this problem. As long as the device is running on Android, the application developed can run on the device despite of the underlying chipset, provided the vendor drivers are integrated. This API is basically an intermediate layer between the higher-level machine learning framework and the device’s hardware acceleration resources. It is responsible for their communication and to schedule the execution of tasks on the most suitable hardware. But, the presence of only NNAPI does not guarantee the hardware acceleration; it needs vendor drivers. Without these vendor drivers, NNAPI will only be able to provide support for optimized computations on CPU. This brings a question, why would a device manufacturer produce the device with GPU or DSP but without GPU or DSP driver software? Well, these drivers are specialized drivers which are needed to make the GPU/DSP to process NN computations. Main application of a GPU is to render the graphics on the screen, but not to make it process NN computations. Similarly, application of a DSP is to process audio or digital signals in simple terms. To make these hardware components (acceleration components for AI) to process NN computations, they need a special driver from the vendor. These may not be present in all of those devices in the market, though they have GPU / DSP chips on board. As far as I can think, these devices will not be update-able with the latest vendor drivers, unless the user ‘roots’ the device.</p><h4>Operations supported in Android</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*sgiod58_RX9TfGtzQN53Pg.png" /></figure><p>Let us take a detailed look at the NN module in AOSP. This would help to find the supported Neural Network algorithms in Android. After doing a repo sync of the AOSP, “nn” module can be found under /platform/frameworks/ml/. This module consists of 4 folders, common, driver, runtime, and tools.</p><p>Inside “common”, there is a folder named “operations”. From the name it seems like it has the source code related to the supported algorithms. As of today, 31st March 2019, it has 29 files. Some of them are supporting files, where some of them have logic to process particular NN architectures. Please take a look:</p><p><a href="https://android.googlesource.com/platform/frameworks/ml/+/android-p-preview-4/nn/common/operations/">nn/common/operations - platform/frameworks/ml - Git at Google</a></p><p>The algorithms we see in here are Convolutional Neural Network (CNN), Recurrent Neural Network(RNN), and Singular Value Decomposition(SVDF) and Locality Sensitivity Hashing.(LSH). LSTM is a type of Recurrent network. The CNN support given by Android is Convolution 2D, not 3D.</p><p>The “driver” folder contains sample drivers, which use CPU, but when the GPU drivers are integrated, they should be using the GPU. This sample driver serves as the base class used to create sample drivers for the NN HAL. The “driver” module also provides cache. Blob cache and NN Cache. Blob cache is an in-memory cache. NN Cache is a singleton implementation, which uses Blob cache, this helps to cache the key value pairs.</p><p>The “runtime” folder contains the implementation of the runtime, which manages the Callbacks, Model builder, Memory etc.</p><p>“tools” consist of vendor test suite related files.</p><p>Because of the popularity of Android, a number of popular deep learning frameworks were ported to Android, namely Torch, Deeplearning4j, Tensorflow Mobile and Lite, Caffe, Caffe2, MXNet, NNabla, etc. Tensorflow Mobile, Tensorflow Lite and Caffe2 are most popular of them. Google has announced that Tensorflow Mobile will be discontinued.</p><p>As mentioned above, the AI algorithms support available in Android are: CNN2D, RNN, LSH, and SVDF. Now, referring to fig.1, CNN and RNN fall under Deep Learning, where LSH and SVDF fall under Machine Learning.</p><h4>Applications</h4><p>CNN is popular in image related applications like image recognition, Face recognition, Image Deblurring, Image Super-Resolution, Image Semantic Segmentation, Image Classification, etc. RNN (or LSTM) is mostly used for video analysis or Natural Language Processing. SVDF is majorly used for image compression or Audio recognition. In the Android community, it is mainly used for audio recognition. LSH can perform tasks like Audio and Video fingerprinting.</p><p>The NN model can be built with Java programming, using Android Studio, using NN module of Android, or it can also built separately, and can be used with NN module of Android. This can be a separate topic altogether.</p><p>Android does not support typical Machine Learning algorithms like regression, decision trees, random forests, clustering, etc. One reason for this could be that there are not many applications on a phone which may require these algorithms, as mobile phones are more for personal usage, and entertainment.</p><p>References:</p><ol><li><a href="https://developer.android.com/ndk/guides/neuralnetworks">https://developer.android.com/ndk/guides/neuralnetworks</a></li><li><a href="https://arxiv.org/abs/1810.01109">https://arxiv.org/abs/1810.01109</a></li><li>Book “Deep Learning” by Ian Goodfellow, Yoshua Bengio &amp; Aaron Courville</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35095457df40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Challenges in Android based In-Vehicle- Infotainment (IVI)]]></title>
            <link>https://medium.com/@ledubmurukp/challenges-in-android-based-in-vehicle-infotainment-ivi-93819acc650a?source=rss-2030177272ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/93819acc650a</guid>
            <category><![CDATA[cars]]></category>
            <category><![CDATA[android-ivi]]></category>
            <category><![CDATA[ivi]]></category>
            <category><![CDATA[android-infotainment]]></category>
            <category><![CDATA[android-auto]]></category>
            <dc:creator><![CDATA[PK]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 23:23:11 GMT</pubDate>
            <atom:updated>2019-01-25T23:23:11.877Z</atom:updated>
            <content:encoded><![CDATA[<p>Android has been around since 10+ years now, mainly as smartphone Operating System. It is the most popular phone OS as of today. The popularity is because of its user friendliness, reliability and the availability of variety of apps. It has also gained popularity from the developers as well. Android is open source, comes with several open source licenses.</p><p>There has been a lot of experiments and efforts to bring Android as an operating system for the Infotainment devices. From Google, as well as from the car makers(OEMs). There are few OEMs who took one version of Android(AOSP), customized it for their car variants, and released it as the infotainment OS. The effort was appreciated but there were few downsides as they did not have collaboration with Google. Android was not up-gradable to new Android releases from Google. If the OEM has to provide Android update, then they have get the latest AOSP, customize it again, add the ‘on the top’ modules and release it. This Android can not have Google’s play store, instead the OEMs host their own store. Developers have to use the OEM’s SDK to develop the apps. Users can’t use any of the services from Google.</p><p>Android could not reach as much in the Car Infotainment area, until recent years. In 2017, Google announced that it is partnering with Volvo and Audi to develop Android based IVI devices. When there is support from Google, Android can be updated to the latest releases of Android. Since Android N, Google came up with Android Automotive. By the way, not to confuse this with Android Auto; Android Auto is only an interface on the Infotainment device(Head Unit), which allows the phone to be connected to the Head Unit and allows access to the phone on the Head Unit. On the other hand, Android Automotive is a module which provides access to the Car Data, which is embedded in the IVI device along with the Android OS.</p><p>When Android runs on a phone, it has to interact with a set of hardware modules. Example; GSM, WiFi, Bluetooth, Microphone, Speakers(Ear piece and loudspeaker), Gyroscope, Accelerometer, Vibrator, Battery module, etc to name some. But when Android runs on an Infotainment device, it has to interact with a different set of hardware interfaces. It may not need GSM module (If no phone calls directly from the head unit), Speakers(Ear piece and loudspeaker), Gyroscope, Accelerometer, Vibrator, Battery module, etc., but it may need 4G module, WiFi, Bluetooth, more than one microphone. In addition to these, the head unit must have interface to in-car networks. i.e; CAN (Controller Area Network), MOST(Media Oriented System Transport), LIN(Local Interconnect Network), Automotive Ethernet, etc. CAN is the protocol or the network used inside the car since decades. Most of the car data comes through CAN bus. The head unit is connected to the CAN gateway in the car. The head unit should get these data, interpret them, and do associated actions. When the user wants to change some car data, for example, the temperature, the device should send this data on the CAN. MOST is used for media, especially to interact with the Amplifier. LIN is used to control the body-control electronics, like the mirrors, wipers.</p><p>So, an additional low level modules have to be running on the Android IVI device, like the CAN driver for CAN network. Linux has been a popular OS in IVI since a very long time, so integrating CAN driver is not a big task, as Android has Linux at the native level. Then, Android’s framework needs handlers / providers to exchange data between the upper and lower layers. Android Automotive provides these modules. The newly added Hardware Abstraction Layer (HAL) is called as Vehicle HAL. Below is the Vehicle HAL architecture from Android developer website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*loLETfkY-laKNclwtiDlPQ.png" /><figcaption>Vehicle HAL and Android Automotive Architecture</figcaption></figure><p>Using Android on a Car Head Unit is different than using it on a Phone. Google has also worked on customizing the UI and changing it as per the needs of a driver. e.g; more focus on voice based interactions.</p><h3>Real Challenges</h3><p>The real challenges have been several.</p><p>First of all, the <strong>boot up time</strong>. When Android runs on a device, it takes some time to boot up. Example, Reboot an Android phone. It takes a while until the phone becomes fully usable. But it is not a good idea to have a head unit in the car which takes a while to get going once the ignition is turned on. The head unit is expected to run fully functional as soon as the ignition is turned on. The Embedded Linux systems boot up quite fast compared to Android systems. To replace the existing systems, Android has to meet their boot up time.</p><p>The boot sequence of an Android system is as follows. Initially, the boot rom starts, which is a small piece of code that is hardwired in the CPU ASIC which loads the primary bootloader, x-loader. Primary bootloader which initializes memory and loads the bootloader from the storage or ROM such as flash memory or memory card or even through serial connection, depending on the system architecture. Bootloader does memory and peripheral initialization and loads kernel. Kernel is the main component here, this involves uncompressing the kernel, initializing the processor, initializing the platform, etc. Kernel also mounts file system and runs the first userspace process “init”. “init” is a key component (refer to init.rc. There are 2 init.rc’s. init.rc and init_&lt;machine&gt;.rc). Android has a different booting pattern from here. Unlike traditional Linux systems, Android has its own boot sequence once the init is loaded. The daemon processes like surfaceflinger, audioflinger and started at this point. Then the Zygote starts, which is the first process in the java world. Zygote processes are forked from init. The daemon processes provide native system functions, such as display, and audio. Zygote, the parent for all Java processes including the system server initializes (ART VM) and preloads some classes and drawable resources, which are shared in all Java processes. When the Zygote process completes, the system server is created and starts all Java system services and launches the system UI and the launcher app. Finally,the home screen is shown, signifying the end of the boot procedure. Once the surfaceflinger starts running, until the user sees the system UI, the android boot animation is shown on the screen. Now the challenge is to optimize this whole sequence.</p><p><strong>Flash/storage wearing out</strong>. When Android persists the data, it writes it into the flash. In a day’s use, in an Android phone, the on board flash is accessed multiple times. Whenever user updates the persisted data (e.g; change in settings)or whenever a new data arrives to an app which has to be persisted or when a sync happens, the old data is erased and new data is written into the internal flash or internal storage. Life of a flash chip is limited. Whenever the system writes into a segment in the flash, it is actually reducing the life of that particular segment. When the storage segment is written over and again, in a long run the segment becomes not usable anymore. In simple words, it becomes corrupt. So as the number of segments get corrupt, available internal storage goes on reducing. Life of a mobile phone is around 3 years. Users usually go for a new phone in 3 years time or even less. But, life of a car is 10 –15 years. May be more. So the device in the car is expected to run for 10 –15 years without any problem. Flash wear out can be a major problem. It can reduce the amount of available storage over the period of time. Reduced flash size may affect the performance as well. Sometimes, the system may behave abnormal, which is not expected in a (soft) real time system like a car head unit. It would be strange to drive a car with a corrupted Infotainment device or it could be additional expense for a car owner to replace the system once in every couple of years.</p><p>(User does not reboot his phone often, but in a car, head unit is rebooted every time the ignition is switched off and on, because of this, some data has to be persisted on every ignition cycle)</p><p><strong>Response time</strong>. In a device like Car head unit, the responses from the apps and system UI are expected to be very reliable. There should not be delay in the touch response or App launch response. Since the introduction of ART in Android, the response time to load any app has improved, but some apps may still take time to load if the app has a lot of data to load. Some may have dependency over internet.</p><p><strong>Googlemaps challenge</strong>. Googlemaps is Google’s one of flagship products. On the other hand, Googlemaps are not considered to be automotive grade. The accuracy provided by Googlemaps (as of today) is not considered to be reliable in a moving car. Car makers still use navigation products from other vendors like Telnav, Garmin, Tom Tom, etc.</p><p><strong>Play store challenge</strong>. Automotive playstore can not be same as the normal playstore. Reason being, any types of apps can not be allowed on a car head unit. The car makers will have to have a separate store or a different way to handle these apps. When the car makers do not have support from Google, then they have to host their own app store, have their own sdk, and then not all developers can develop apps for the cars of these car makers.</p><p><strong>General Android behavior</strong>. This is about Android behavior. When an Android device is turned on after few hours, it will immediately connect to the wifi and start looking for updates. When the updates are available, it will start downloading them. This behavior can not be shown in a head unit. This will considerably slow down the system. Such a behaviour can be annoying to the driver, where he is in a hurry to drive but the head unit is updating itself. The updates should be allowed only in certain scenarios like ‘Garage mode’.</p><p><strong>Additional modules</strong>. In addition to standard Android modules, Car head unit needs extra implementations to control HVAC, Radio, Heating, Seat Control, Windows, etc. These are on top of the regular AOSP. Google has come up with Vehicle HAL, which supports some of the features.</p><p><strong>Android UI. </strong>A Car display unit definitely needs a different UI than phones. It would be a safety concern for the driver to look for the small icons on the screen while driving. So the whole system UI needs a better look and feel.</p><p><strong>Garage mode</strong>. This is a special mode in Automotive Electronics, which provides special behavior. This is used in the workshop. In this mode, the device should provide additional interfaces, access to special data and Diagnostic Trouble Codes of the car. Garage mode should be like a super user mode where it can provide special access to the system.</p><p><strong>Internet Security</strong>. Security is a main concern in an automotive device. If a phone is hacked, user may lose his data, or money. But if the automotive system is hacked, it is quite dangerous for the life.</p><h3>Latest Updates in Android P</h3><p>In Android P, Google has made a lot of changes in the low level. HIDL (Hardware Interface Definition Language) has been introduced. This makes Android P different from the previous versions of Android, at the HAL(Hardware Abstraction Layer). It makes it different, at the same time, it makes it easy when someone wants to add a new hardware module to the system. It is definitely done by keeping Automotive market in mind. This is a welcoming move in the Automotive Android community.</p><h3><strong>Rear Seat Entertainment</strong></h3><p>Rear seat entertainment(RSE) is also IVI, for the rear seat passengers. This can be one device or a set of devices. Since Android has started occupying this space, Car makers have been coming up with multiple devices in this area. If we go back in time and look at the RSE from 2009, BMW X6 has one unit controlling multiple screens. Since Android has entered this space, Car Makers have come up with RSE with multiple devices. 2 separate Tabs for each rear seat passenger, Android remote control, a center main unit, etc. All these run independently on Android running on board. Challenges in these devices are not as much in the Head Units. These also run with Automotive grade Android, but they do not have to follow strict guidelines as the Head Units. For example, it does not matter if the RSE is not yet running, as soon as the ignition is ON. If the storage flash gets worn out in the RSE Tab, the Tab can be replaced. So, developing an RSE is not as challenging as developing a Head Unit.</p><h3>Future</h3><p>Android seems to be getting its traction in the Automotive world lately. In Android P, Google has made a lot of changes keeping the Automotive market in mind. This is a good development. So, it would be possible that Android takes over the Car Infotainment if the above said challenges are rightly addressed.</p><p>OEM — Original Equipment Manufacturer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93819acc650a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>