<?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 Teddy Tassew on Medium]]></title>
        <description><![CDATA[Stories by Teddy Tassew on Medium]]></description>
        <link>https://medium.com/@teddy.meg1234?source=rss-5d6fdd9efa16------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6v3HJGNirsxDPwL2SiniKg.jpeg</url>
            <title>Stories by Teddy Tassew on Medium</title>
            <link>https://medium.com/@teddy.meg1234?source=rss-5d6fdd9efa16------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:05:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@teddy.meg1234/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[The World of Web Development: Part Two An Overview of Backend Technologies]]></title>
            <link>https://medium.com/@teddy.meg1234/the-world-of-web-development-part-two-an-overview-of-backend-technologies-b1b4c7b73ccd?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b4c7b73ccd</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Mon, 11 Nov 2024 12:38:59 GMT</pubDate>
            <atom:updated>2024-11-11T12:40:18.725Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the second part of a series about the world of web development. In this article, we will move our focus to the backend of a website. If haven’t read the first part of this article, I strongly recommend that you do so using this link before you proceed reading this.</p><p><a href="https://medium.com/@teddy.meg1234/the-world-of-web-development-part-one-an-overview-of-front-end-technologies-2d4091dc677e">https://medium.com/@teddy.meg1234/the-world-of-web-development-part-one-an-overview-of-front-end-technologies-2d4091dc677e</a></p><p>The process of creating websites and online apps, including database management, web design, programming, maintenance, and security, is known as <strong>web development</strong>. It includes both <strong>front-end </strong>and <strong>back-end</strong> development, which address client and server-side development. While back-end developers take care of technical aspects and functionality, like data storage and retrieval, front-end developers oversee a website’s user interface. If web development was a <strong>car</strong>, the<strong> chassis, engine, and transmission system</strong> would be the focus of back-end development, while the<strong> body, interior, and paint work</strong> would be the focus of front-end development.</p><h3>What is back-end development?</h3><p>As noted earlier, back-end development involves programming a server, typically located remotely, which is responsible for processing and responding to requests from users on their personal computers. A website’s back end consists of three key components: the server, the application, and the database.</p><p>The server is the system or machine in question that receives and sends data, whereas the application (api) handles requests and responses, while the database stores and secures data. Just as there were a variety of technologies for our frontend stack, we also have many options for our backend. Popular server-side scripting languages include <strong>PHP, NodeJs, Django, Ruby, C#, Java and more</strong>. Just as we did in the previous part, we will be focusing on the most popular server side language <strong>NodeJs </strong>and compare it with other frameworks<strong>.</strong></p><h3>What is NodeJs?</h3><p>Node.js is an open-source JavaScript runtime environment that runs code outside of a web browser. All the necessary components for a piece of code to execute are provided by the runtime environment. It’s mainly used for server-side scripting and developing dynamic web apps. To configure the environment, run <strong>npm (node package manager)</strong> and create a new <strong>package.json</strong> file containing project metadata such as name, version, dependencies, and scripts.</p><p>The <strong>npm install</strong> command installs all of the dependencies provided in the package.json file. It creates a node_modules directory to keep the installed packages. Node.js is frequently combined with Express.js, a popular online application framework that simplifies the process of developing web apps and APIs. Express.js offers a powerful collection of functionalities for building web and mobile applications. It streamlines the handling of HTTP requests and responses, making it easier to develop server-side logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47S4iWVwTicFkFL4-Z4uAA.png" /><figcaption>Figure 1 Node JS and Express JS</figcaption></figure><p>Furthermore, a <strong>database</strong> is a structured collection of data that can be accessed, controlled, and updated. There are <strong>two kinds</strong> of databases. There is the traditional relational databases (with tables, rows and columns) and NoSQL databases. In contrast to conventional relational databases, MongoDB is a particular kind of database, also referred to as a NoSQL database, that stores data in adaptable, JSON-like documents, enabling dynamic schemas and simpler scalability. It is a a database that is both versatile and scalable, making it ideal for developing modern applications. Because it stores data in documents that resemble JSON, it makes it simple to work with intricate, and hierarchical data structures.</p><p><strong>Mongoose</strong> is a <strong>MongoDB and Node.js package</strong> that improves abstraction through data relationship management, schema validation, and code-to-MongoDB document translation. It provides business logic and data structures, enabling database interface, data validation, and <strong>CRUD operations</strong>. In web development, a <strong>model</strong> determines the structure of data and the business logic that goes with it. Models are used to enforce data validation, carry out CRUD (Create, Read, Update, Delete) operations, and communicate with the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMFbgJWW22Pc_jh9m4XVsg.png" /><figcaption>Figure 2 Components of a typical website</figcaption></figure><p>That’s all for this article. We have covered all the major components of a typical website. We have also explored major frameworks which are used for the task of web development both for the front and the backend. If you want to learn more about these technologies definitely check out <strong>InterTechub,</strong> a company which provides valuable resources and internships for web development. Use the links below to get in touch with them.</p><ul><li><a href="https://intertechub.com/">https://intertechub.com/</a></li><li><a href="https://intertechub.com/internships/">https://intertechub.com/internships/</a></li></ul><p>You can also check out my portfolio website at <a href="https://teddy-vl-portfolio.vercel.app/">https://teddy-vl-portfolio.vercel.app</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b4c7b73ccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The World of Web Development: Part One An Overview of Front End Technologies]]></title>
            <link>https://medium.com/@teddy.meg1234/the-world-of-web-development-part-one-an-overview-of-front-end-technologies-2d4091dc677e?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d4091dc677e</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux-toolkit]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Mon, 11 Nov 2024 08:16:19 GMT</pubDate>
            <atom:updated>2024-11-11T12:39:25.354Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is the first of a two-part series about the constantly evolving field of web development. Before reaching its current state, web development underwent numerous variations. Every now and then, new frameworks and technologies emerge, adding more excitement to the work. Any website out there is made up of three major components. These are the front-end (the part of the website that users interact with), the REST API (middleware for requesting and receiving resources), and the back-end (server and database). The front-end and back-end technologies will be the primary focus of this two-part series; the REST API will be covered at a later date. In this piece, we will kick things of with the front-end.</p><h3>What is front-end?</h3><p>What draws your attention when you’re strolling through the city and taking in the scenery? It is likely that you will initially be drawn to well-lit storefronts that entice you inside with their reflective surfaces. We humans are visual, and give more credence to it. Successful marketing works by enticing users with attractive and more appealing logos. When you see one that appeals to you, you open the door and enter. The same is true on the internet.</p><p>Front-end is the part of the web-site where the user walks into when browsing through a website. Front-end development is the process of creating a visually appealing and engaging website and allows users to interact with the site through a web browser, ensuring that the website is easily accessible and user-friendly. Initially, front-end development was done using HTML (also known as the skeleton of the website), CSS (for styling) and Javascript (which is used for logic like determining what happens when a used clicks on a button). Front-end technologies serve as the foundation and building blocks of a website, defining its user interface and shaping the overall user experience. It enables you to interact with the web and its actions.</p><p>Front-end development is a constantly evolving field, making it challenging for developers to stay updated with the latest trends and technologies. It can be overwhelming to compare features and select the best front-end technology for the task of web development. A variety of tools, frameworks, and techniques are used in modern web development to produce dynamic and captivating websites. The front-end stack includes options like TypeScript, Vue.js, Next.js, as well as React from Facebook, and Angular from Google, among others. Choosing the right one can be challenging, but React stands out as a widely-used framework that millions globally utilize to build impressive websites. So, without further ado, let’s get started with React.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqF5RWZg06cxwXSpd1ZOvg.png" /><figcaption>Figure 1 Frontend Technologies</figcaption></figure><h3>What is React?</h3><p>ReactJS is a JavaScript library designed for building user interfaces and improving UI/UX design. It is primarily responsible for the view layer and was initially developed by Facebook now Meta for its products like Instagram and WhatsApp. React can be used for single-page, mobile, or server-side applications with frameworks like Next.js, allowing code debugging more efficiently by separating it into components. Components are the building blocks of any react application. Many people make the mistake of thinking React as framework. However, it is not a framework; it is merely a library created by Facebook to address certain issues that were previously encountered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*gSI1jfzD8-36wObN_taUzg.jpeg" /><figcaption>Figure 2 ReactJS</figcaption></figure><p>ReactJS is a component-based architecture made up of several JavaScript-written components, each with its own logic. In large-scale projects, this enables reproducible code maintenance. ReactJS gives you more control over the application by supporting one-way data binding and unidirectional data flow.</p><p>React’s Virtual DOM speeds up app development and provides flexibility. Document access and manipulation are controlled by document object models, or DOMs. A markup syntax called JSX makes it simple to write and add HTML structures while describing an application’s interface. Props are properties which are passed between components. Declarative UI facilitates reading and fixing React code. For creating dynamic and captivating user interfaces for online and mobile applications, ReactJS is a perfect choice.</p><p>Organizing state and controlling data flow between components becomes more crucial as your program grows. Bugs may result from redundant states. React allows you to do more than simply change the user interface with commands like “disable the button” and “show the success message.” Similar to a designer’s approach to user interface design, you instead specify the UI for several states (such as “initial,” “typing,” and “success”) and alter states based on user interactions. For dynamic interfaces in React, efficient state management is essential because it guarantees that the user interface appropriately reflects changes in the data. React offers multiple state management options, including hooks, context, and external libraries like Redux.</p><p>Next.js, an open-source framework by Vercel built on React, provides server-side rendering, improved SEO, data fetching utilities, dynamic API routes, and optimized builds. Tailwind CSS allows for quick and easy website styling, while TypeScript enhances JavaScript with type definitions, improving error detection and offering suggestions before code execution. Overall, React is a leading technology that integrates well with various tools to simplify web development. That’s all for this article. In the next part we will discuss about back-end technologies. And if you want more information about this you can check InterTechub, a company which provides valuable resources to learn front-end stacks, and also internships and contests to get hands-on experience that prepares you for the outside world. Check out their websites at:</p><p><a href="https://intertechub.com/">https://intertechub.com/</a></p><p><a href="https://intertechub.com/internships/">Internships - intertechub</a></p><p>Also check out my stunning looking portfolio website done with react and tailwind css at:</p><p>The second part of this article about backend can be found at: <a href="https://medium.com/@teddy.meg1234/the-world-of-web-development-part-two-an-overview-of-backend-technologies-b1b4c7b73ccd">https://medium.com/@teddy.meg1234/the-world-of-web-development-part-two-an-overview-of-backend-technologies-b1b4c7b73ccd</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d4091dc677e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build your own Handwritten Digits Recognition System]]></title>
            <link>https://medium.com/@teddy.meg1234/how-to-build-your-own-handwritten-digits-recognition-system-aa232900fbea?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa232900fbea</guid>
            <category><![CDATA[handwritten-digit]]></category>
            <category><![CDATA[cnn-model]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 08:06:22 GMT</pubDate>
            <atom:updated>2022-07-19T08:46:05.133Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent years we have witnessed the digital revolution with the rapid increase in the amount of visual and multimedia files generated daily. This has brought new challenges for computer scientists to create systems capable of recognizing patterns and features from images. This endeavor has led to the development of machine and deep learning models which excel in this type of task. The “Hello World” of image classification is a seemingly simple, yet non-trivial problem of classifying handwritten digits. Although this task may seem trivial, the task of building a reliable recognition system that recognizes various types of handwritten characters is extremely challenging.</p><p>This blog will present the use of deep learning models to simplify the task of classifying digits from zero to nine. The MNIST dataset is a commonly used data set for testing the performance of machine and deep learning algorithms.</p><p>This project uses the MNIST dataset as an example to evaluate the performance of three different deep learning models and compare their results. The source code for this project can be found here:</p><p><a href="https://github.com/TeddyMeg/Handwritten-Digits-Recognizer">TeddyMeg/Handwritten-Digits-Recognizer: The objective of this project is to build a image-classifier using Neural Networks to accurately categorize the handwritten digits. It also has a gui made using tkinter and OpenCV where a user can draw a digit and choose a model to predict what the number is. (github.com)</a></p><p>The models presented here include a simple neural network, a convolutional neural network and a deep convolutional network namely VGG16.</p><h3>Background</h3><p>Recognition is the process of identifying something from past experiences. As a result, the task of digit recognition is just the process of identifying manually written digits from different kinds of sources like documents, papers, bank cheques and pictures. Handwriting character recognition has become a standard research area due to advances in technologies such as the handwriting capture devices and powerful mobile computers (Elleuch, Maalej, &amp; Kherallah, 2016). Typically, handwritten digit recognition is an essential function in a variety of practical applications, for example in administration and finance. (Niu &amp; Suen). Handwritten digits recognition has been around for a long time since the 1980s. But there were many challenges like the size, shape thickness and position of digits which made it impossible to build an application that could account for all these factors. Recently advancements in field of machine and deep learning have made it possible to reduce human efforts in perceiving, learning, and recognizing more regions. Deep learning models can accomplish very high accuracy which is sometimes better than humans.</p><h3>Problem Statement</h3><p>The rapid growth of new documents and multimedia news has created new challenges in pattern recognition and machine learning (Cecotti, 2016). The handwritten analysis is a cumbersome and organized process that relies on a broad knowledge of the way people form digits or letters, and which exploits the unique 18 characteristics of numerals and letters, for example, the shapes, sizes, and individual writing styles that people use<strong> </strong>(Winkler, A combination of statistical and syntactical pattern recognition applied to classification of unconstrained handwritten numerals, 1980). Typically, handwriting experts use sophisticated classification models to analyze printed or handwritten character images. As part of this process, they extract features from the samples which include slants, orientation, and the center alignment of the letters. Offline digital recognition has many practical applications. For instance, the handwritten sample is analyzed and recognized by the handwriting expert to identify the zip code in an address written or printed on an envelope<strong> </strong>(Hanmandlu &amp; Murthy, 2007). Since handwriting very much depends on the writer, building a high-reliability recognition system that recognizes any handwritten character input to an application, is challenging. It is a hard task for the machine because handwritten digits are not perfect and can be made with many different flavors. The handwritten digit recognition is the solution to this problem which uses the image of a digit and recognizes the digit present in the image.</p><h3>Project Goal</h3><p>The objectives of this project are: -</p><p>· Prepare the dataset and split the data in the appropriate amount for training, validation, and testing.</p><p>· Implement three types of models on a predefined ‘MNIST’ dataset and evaluate their performance on handwritten digit recognition.</p><p>· To identify whether image preprocessing methods have a significant impact on the error rate of selected classification models</p><p>· To recommend which algorithms can improve the accuracy of handwritten digits recognition to up to 99% based on the evaluated findings.</p><h3>Relevance and Significance</h3><p>OCR refers to the recognition of characters on optical scanning and digital text pages by computer (Winkler, 1980). Despite its problems, it widely contributes to the progress of improving the interface between man and machine in a lot of applications (Sarkhel, Das, Das, Kundu, &amp; Nasipuri, 2017). Due to a variety of potential applications such as the reading of postal codes, medical prescription reading, interpreting handwritten addresses, processing bank checks, credit authentication, social welfare, forensic analysis of crime evidence which includes a handwritten note, etc., handwritten digital recognition is still an active area of research (Winkler, 1980).</p><h3>Definition of Terms</h3><p><strong>Deep learning:</strong> is a subset of machine learning, which is essentially a neural network with three or more layers. Deep learning is a modern variation that is concerned with an unbounded number of layers of bounded size, which permits practical application and optimized implementation while retaining theoretical universality under mild conditions.</p><p><strong>Artificial Neural Networks:</strong> are a kind of machine-learning algorithm that mimics the way of how the human brain works and serves as the building block for most deep learning models.</p><p><strong>Layers:</strong> A neural network is composed of several layers. The first layer of neurons is</p><p>called input layers and these might be x values ranging between zero and one which depict the intensities of each pixel in the image. A simple neural network might include several hidden layers and finally an output layer predicting any one of the classes that the sample image belongs to.</p><p><strong>Activation functions:</strong> They are simple mathematical functions which take in a linear function as an input from the previous layer and spits out a number ranging between 0 and 1. These functions are applied to all the layers except the input layer. The hidden layers might apply activations functions like sigmoid, tanh or ReLU and softmax might be used for the output layer of a multiclass classification problem.</p><p><strong>Weights and Biases:</strong> These are numbers which are which are applied to activations of the previous layer to compute the weighted sum. These are parameters that the network tries to learn and are updated until we get an optimal result. Initially they might be selected randomly but get updated as we train the network.</p><p><strong>Cost Function:</strong> The cost or loss function is a method to evaluate the performance of the network. One of the most used cost functions is the mean squared error (MSE). The goal of training a neural network is to minimize this cost function by updating the weights and biases.</p><p><strong>Backpropagation and Gradient Descent:</strong> The process of moving from input layers to output ones is called feedforward. And the reverse process is called backpropagation which is used to adjust the weights and biases of a network and reduce the cost function until it reaches a local minimum, The algorithm which is used to adjust the weights is called gradient descent and it allows the model to determine the direction of the nearest local minimum.</p><p><strong>Convolutional Neural Networks (CNNs):</strong> Convolution Neural Network is a deep learning method that is broadly used for image classification, image recognition, object detection etc.</p><p><strong>Convolution Layer:</strong> The convolution layer is the first layer of the CNN model architecture which starts to extract features from the input. The convolution layer operates with two inputs, one is the image matrix while the other being the filter or kernel.</p><p><strong>Pooling Layer:</strong> Pooling layer is another extremely significant feature of convolution neural networks. Pooling layer will resolve to reducing the number of parameters when the images are large. Pooling is also known as subsampling or down sampling which helps us to reduce the dimensionality of each feature map by leaving out the trivial traits and retaining all the important information.</p><p><strong>FC or Fully Connected Layer:</strong> Every CNN architecture is provided with a fully connected layer in the end where learning of non-linear combination of high-level features takes place.</p><p>Padding: Padding refers to a certain number of pixels which is added to the original input image, while the filter matrix strides over the input. Padding extends the area on which the CNN works. As the kernel moves along for extracting features, it converts the input into either a small or a large format. Thus, padding is added to the frame of the image to allow the kernel to cover more space, resulting in more accurate analysis of the image.</p><p><strong>Very Deep Neural Networks: </strong>Some of the most common deep convolutional neural networks include AlexNet, VGGNet, ResNet, GoogleNet. These networks contain ten or more layers and are deeper than conventional neural networks. These networks are more powerful and have an accuracy that is very close to humans.</p><h3>Literature Review</h3><p>Hand Digits Recognition turns out to be progressively significant in the advanced world because of its actual implementation in our everyday life (Nagu, Shankar, &amp; Apurna, 2011). Recently, various recognition frameworks have been presented inside numerous applications where higher order effectiveness is required. It causes us to take care of increasingly complex issues and is simpler (LeCun, et al., 1990). Programmed preparing of bank checks, the postal location is a general utilization of hand-written digit recognition (Ashworth, et al., 2017). In this particular paper, they prepared both Artificial neural network and Convolutional neural network model to recognize written by hand digits from 0 to 9. A node in a neural system can be comprehended as a neuron in the brain. Every node is associated with different nodes through weights (which are basically the edges between the nodes) which are balanced in the algorithm. A value is determined for every node dependent on the feature and methods of previous node. This procedure is called forward propagation (Arpit, Zhou, Kota, &amp; Govindaraju, 2016).</p><p>The last output of the system is related with the objective output, at that point weights are changed according to the loss function to depicting whether the system is speculated effectively (Patel, Jagtap, &amp; Kale, 2014). This procedure is called back propagation (Witten, Frank, Hall, &amp; Pal, 2016). To include complexity and correctness in the neural network, the systems have different layers. In the middle of a fully connected neural system, there are various layers that exist, in particular information, output and hidden layers. Suppose we have features x1, x2, x3…. xn. The edges from one node to the other node of the network have weights that play the most important role in both forward and backward propagation. In forward propagation, there are two types of operation that happens in the hidden layer with the feature and the weights being passed to the neuron or node. The sum of the product of feature and weights and then applying an activation function. Whenever we have a Neural Network which is very deep at that time you will understand there are many weights and bias parameters. In backward propagation we have to change the values of the previous epoch weights, this reduces the loss value. In a completely associated neural system nodes in each particular layer are associated with the nodes and the layers preceding and succeeding them (Arif, Siddique, Khan, &amp; Rahman, 2019).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*RMpAr5U5WAzC0hPN4RIXeA.png" /><figcaption>Figure 1 Artificial Neural Network</figcaption></figure><p>In 1980–2000 researchers were not able to create a deep neural network in an Artificial neural network. The reason is the use of sigmoid function in every neuron (in 1980–2000 the ReLU was not invented). This is termed a vanishing gradient problem in a Neural network. The Activation function(sigmoid), when applied to the summation of the product of weights and the features, is always ranging between 0–1 and the derivative of the activation function ranges between 0–0.25 which gets smaller when the layers of the neural network become deeper. To deal with the vanishing gradient problem the use of ReLU or other activation function which does not lead to the collapse of the derivative is used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*5QLFRQOZi6jvQB0LGs5oBg.png" /></figure><p>When the weights assigned are large numbers then the expected number of the derivative loss/old will be a very large number which will result in a large variation in the new and old values when backpropagating. Then new weight will jump on large values over the epochs and the weights will vary a lot with the value never converging at a point. So, the weight initialization in a Neural network is a very crucial point otherwise this can lead to an Exploding Gradient problem (Chen, Wang, Fan, Sun, &amp; Naoi, 2020).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*x4V_SNHpwlLKDuwpH4RZ7w.png" /><figcaption>Figure 2 Forward and Backward Propagation</figcaption></figure><p>Whenever we have a deep Neural network or a network with a huge number of layers then we have a huge number of weights and bias parameters as well which leads to overfitting the dataset problem or a particular data. In a multilevel Neural Network, underfitting will never happen because we will be having multiple levels that try to fit the training data perfectly. High variance is a problem with increasing levels in the network. We can apply regularization (L1 or L2) or Dropout layer to decrease the overfitting problem. In a Random Forest multiple decision trees are created. Every Decision tree is created to its depth which also leads to an overfitting problem. Similarly, like the decision tree, we will be using a subset of features which is regularization which improves the accuracy of the whole model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*eVFAF9opZkQKQcIMYUYanQ.png" /><figcaption>Figure 3 Graph of derivative for vanishing and exploding gradient problem</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*HlJBBtNhyrfOzdXuw7Z98Q.png" /><figcaption>Figure 4 CNN Model Architecture</figcaption></figure><p>In the Neural Network, we select a subset of features from the input layer and select a subset of hidden neurons. The other neurons which are not selected in the subset are deactivated (Sudarsan &amp; Joseph, 2020). The number of nodes in a subset count is calculated by the use of the dropout ratio. In image classification, object detection, and many other data augmentations Convolutional Neural Network (Convolutional neural network) plays a very major role. In the Convolutional neural network, the input data is in the form of a matrix which is having values in each cell ranging from 0–255 and either one or 3 artificial neural networks depending on grayscale and RGB scale respectively (Nanehkaran, Zhang, &amp; Salimi, 2020).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*QD7llfYtJZXUw1fpBpUBMg.png" /><figcaption>Figure 5 Operations on an image using CNN model</figcaption></figure><p>The filters are applied to images and the output is also a matrix in a particular operation. The images go through a pipeline of operations of convolution layers with the filter, pooling, fully connected layer, and applying SoftMax function. The beneath figure is the complete architecture of a convolutional neural network to process an input picture and classify it based on values.</p><h3>Dataset</h3><p>In this project, we will use the MNIST dataset for the handwritten digit classification problem. The MNIST dataset is a very authentic and great dataset for the students and researchers. It has 60000 images with 10 classes (0–9) which is enormous. Each image in the MNIST dataset is of 28 height and 28 width which make the image of 784-dimensional vectors. The MNIST dataset is available easily on the internet. Each image in MNIST is a grey-scale image and the range is 0–255 which indicates the brightness and the darkness of that pixel. The MNIST dataset was created by the National Institute of Standards and Technology (MNIST). To estimate the performance of a model, we split the preparation set into a training and testing dataset. Execution on the train and testing dataset would then be able to be plotted to give expectations to learn and adapt knowledge into how well a model is learning the issue.</p><h3>Software and Hardware Requirements</h3><h3>Tensorflow and Keras</h3><p>TensorFlow is an amazing information stream in machine learning library made by the Brain Team of Google and made open source in 2015. Keras is a deep learning API written in Python, running on top of the machine learning platform <a href="https://github.com/tensorflow/tensorflow">TensorFlow</a>. It was developed with a focus on enabling fast experimentation. Keras is the high-level API of TensorFlow 2: an approachable, highly productive interface for solving machine learning problems, with a focus on modern deep learning. For the purpose of this project, we have used version 2.6.0 of Tensorflow and Keras. (Keras, 2021)</p><h3>Python 3.9</h3><p>Python is a programming language that gives you a chance to work rapidly and coordinate frameworks more effectively. Python is broadly utilized universally and is a high-level programming language. It was primarily introduced for prominence on code, and its language structure enables software engineers to express ideas in fewer lines of code. This project utilizes the latest version of python 3.9.</p><h3>Anaconda and Pycharm</h3><p>PyCharm is a very popular IDE developed by JetBrains used for Python scripting language. Anaconda is a free and open-source appropriation of the Python and R programming for logical figuring like information science. The scripts for this project can be run by using PyCharm with Anaconda environment.</p><h3>Hardware Platform</h3><p>Although the models used for this project can be run on a GPU, we performed the experiment using a conventional Intel Core I5 CPU. The program can be downloaded and run-on high-performance CPUs with good processing capabilities which saves time and computational power.</p><h3>Packages used</h3><p>All the packages required for this project are provided under the file mnist_env_packages.yml. The user can simply install Anaconda on the PC and run the following command on conda prompt to create a new environment with all the required packages.</p><h4>conda env create -f mnist_env_packages.yml</h4><p>Some of the essential packages used in this project include:-</p><p>· NumPy — used for numerical analysis</p><p>· MatPlotLib — used for plotting graphs and confusion matrix</p><p>· Scikit Learn- used for generating confusion matrix</p><p>· Opencv- used for creating contours and save images</p><p>· Tkinter- used for creating the GUI</p><h3>System Architecture</h3><p>Optical character recognition (OCR) is a recognition system that has various stages. Each stage plays a very important role in the model. The stages are pipelined one after other. Here we look into the design method of the proposed system.</p><p>A. Data Acquisition — The initial step was to get the dataset used for the experiment, which can be done very easily through Keras API. For the purposes of this experiment the dataset was split into 3 categories.</p><p>1. 48,000 Training Sets</p><p>2. 12,000 Validation Sets</p><p>3. 10,000 Test Sets</p><p>B. Pre-processing: Preprocessing is a very vital operation in the image. In Pre-processing major operations that are carried are image cleaning to reduce the noise in the image and removing the garbage. First, the images were converted into numpy arrays with dimension of 28 by 28 by 1 where the last dimension indicates the number of dimensions. Since the pixel intensity values range from 0 to 255, normalization was carried out to make the values fall between the range 0 and 1.</p><p>C. Building model: At this stage we built three different types of models using Keras API. The three types of classifiers used for this experiment is a Simple neural network, a CNN model and VGG16 model.</p><p>D. Training model: After we are done pre-processing the data and building the model the next stage will be to feed the input to the classifiers and train the models.</p><p>E. Evaluation and Prediction: Once the models have been trained we evaluate the models to compare their loss and accuracies. The predictions can be used to get the precision, recall and f1 score values and is also used to plot the confusion matrix.</p><p>F. Save model: Once the models have been trained and evaluated, we saved the structure and weights of the model so that it can be used by the GUI later in order to classify new images.</p><h3>Project Structure</h3><p>The project is created using under the name Hand-Written-Digits-Recognizer. The code for getting the data, building and evaluation the models is written in modularized manner which is easy to read and understand. The subdirectories and python files used in this project are summarized below:-</p><p>1. The pre-trained models can be found in /models/ directory</p><p>2. All the plots and charts for the training and evaluation can be found in /plots/ folder</p><p>3. test.py is the file used to run the code for training and evaluating the three models.</p><p>4. gui_digit_recognizer.py contains the code to run the gui for predicting handwritten digits</p><p>5. The three sub folders /ANN/, /CNN/, and /VGG16/ contains the python files which contains the code for building the three models respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*a8LMTQ1pF9i9z_xzOOuyqA.png" /><figcaption>Figure 6 Project Structure</figcaption></figure><h3>Algorithms Used</h3><p><strong>ANN:</strong> In our first experiment, we will be building a simple neural network from scratch and evaluate its performance. This will help us to understand the basic building blocks of deep neural networks and useful for comparison. The ANN model has an input layer, two dense layers and an output layer as shown in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/158/1*2jHZOQ2t2iiMVvrXoylXcQ.png" /><figcaption>Figure 7 ANN Model Diagram</figcaption></figure><p><strong>CNN: </strong>Convolution Neural Network is a deep learning method that is broadly used for image classification, image recognition. It is comprised of convolutional, max pooling and fully connected layers which enables it to learn much more sophisticated features than a simple neural network. In the second experiment, we will use a CNN model for classifying the digits. The model we used for this experiment can be summarized int the figure below.</p><p><strong>VGG16: </strong>For the final experiment, we selected one very deep CNN for classifying the MNIST dataset and compare its performance with the previous methods. VGG16 is a simple and widely used Convolutional Neural Network (CNN) architecture used for ImageNet, a large visual database project used in visual object recognition. Since the original VGG16 model was intended for color images, we modified the model to fit our task of classifying grey scaled images.</p><h3>Results and Discussion</h3><h3>4.1 Training, Validation and Test Results</h3><p>The models discussed in the previous chapter were all trained with the same hyperparameter initialized so there are no discrepancies when comparing their results. The hyperparameters used for this experiment include: -</p><p>Learning rate=0.00001</p><p>Epochs=5</p><p>Batch Size=32</p><p>Optimizer=Adam</p><p>Input dimensions=(28,28,1)</p><p>After training the models the results obtained for the accuracy and loss for training, validation and testing of the three models can be summarized as follows.</p><p>ANN</p><p>Training Accuracy — 96.5%</p><p>Validation Accuracy — 95.8%</p><p>Test Accuracy — 95.4%</p><p>CNN</p><p>Training Accuracy — 99.25%</p><p>Validation Accuracy — 98.78%</p><p>Test Accuracy — 98.78%</p><p>VGG16</p><p>Training Accuracy — 98.93%</p><p>Validation Accuracy — 98.89%</p><p>Test Accuracy — 99.07%</p><p>From the above description it is easy to deduce that the accuracy for the task of classifying digits has improved as we go from the simple ANN model to the much deeper VGG16 model. The highest testing accuracy was achieved by the VGG16 model and has no overfitting problem, The plots for the loss and curacies of the three models can be used to clearly show the progress in different epochs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*r1nKZ39_khJjmhJJ_spCSA.png" /><figcaption>Figure 9 ANN Training and Validation Accuracy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*YvjVxZsITxLS2bHn7AOJew.png" /><figcaption>Figure 10 CNN Training and Validation Accuracy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*kMltMPHIFTxfDLvMS66qiw.png" /><figcaption>Figure 11 VGG Training and Validation Accuracy</figcaption></figure><p><strong>Prediction and Evaluation Results</strong></p><p>In this experiment we have used different methods to demonstrate the prediction results for the three models. Some of evaluation metrics used in the experiment include precision, recall, f1 score and confusion matrix. While the first three metrics can be used shown as a score the last one can be used to show the prediction results in a more detailed manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*1vy434uw_7XaZb7XH5k2VQ.png" /><figcaption>Figure 12 ANN Prediction Score and Confusion Matrix</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*z3KeSAvwcUQgNH69uxKk9A.png" /><figcaption>Figure 13 CNN Prediction Score and Confusion Matrix</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*FyYxDmMSaiwUc8wY8dNsRA.png" /><figcaption>Figure 14 VGG16 Prediction Score and Confusion Matrix</figcaption></figure><p><strong>Using GUI to predict digits</strong></p><p>As a final procedure we built a GUI using OpenCV where the user can draw any digit they want using a canvas and get a prediction for what the system thinks the digit is. Users have the option to choose from one of the three models to do the prediction by clicking on the button which has the model’s name. Once the model is chosen the digit drawn on the canvas will be saved as an image and the system will use it to give predictions using the saved model. The last button ‘Clear Canvas’ can be used to clear the canvas so that the user can enter other digits. Below we can see figure for the GUI and the prediction results for the same digits drawn on the canvas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*XFDF4-RDqpNmOx-Z-HNC4g.png" /><figcaption>Figure 15 Hand written digits recognizer GUI</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*ZtVubMBLDhIfJMB157lHQA.png" /><figcaption>Figure 16 Sample of Prediction Result for VGG16 model</figcaption></figure><h3>Conclusion</h3><p>In this blog, we have investigated different deep learning models which can be used for the task of classifying handwritten digits. The MNIST dataset, which is repository that contains thousands of handwritten images, was found suitable for our project. We have shown that by using three models high accuracies can be obtained for this task. The focus of this project was to identify the classifier which works better in identifying the digits. Using Keras and Tensorflow we have deployed ANN, CNN and VGG models and evaluated their performance using different metrics. After the evaluation we have found that the ANN model was able to give a testing accuracy of 95.4%, while the deeper models of CNN and VGG model have achieved a much higher accuracy of 98.78% and 99.07% respectively. From this we can conclude that the VGG16 model was selected as the best model among the three. Finally, we built a GUI where a user can draw any digit they want and get prediction scores from any the three models.</p><h3>Limitations of the project</h3><p>The project might have the following limitations: -</p><p>· All the images in the dataset might not always contain numbers and the models might confidently predict it as a number.</p><p>· A handwritten digit dataset is vague and may not always contain numbers with perfect straight lines and some people’s writing styles may seem unrecognizable to the models.</p><p>· The system might sometimes show inconsistent results due to similar shaped numerals.</p><p>· Due to limited time, we will not be able to further optimize the model and improve the performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa232900fbea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep learning : Computer Vision]]></title>
            <link>https://medium.com/@teddy.meg1234/deep-learning-computer-vision-7a3bc371fdc5?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a3bc371fdc5</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning-course]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:37:42 GMT</pubDate>
            <atom:updated>2022-07-19T09:22:11.156Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Deep learning : Computer Vision</strong></h3><p>Over the last several decades, there has been an explosion in the amount of visual data created by humans on a daily basis. However, computer scientists have struggled with the problem of creating machines that can recognize images and videos in the same way that people can. Humans are capable of detecting patterns and objects with a high degree of precision without exerting any effort. However, prior to the advent of deep learning, classical computers were quite poor at understanding visual input. As a result, the field of computer vision has become one of the biggest research areas in computer science.</p><p>Decades later, we have made significant progress in developing software that can comprehend and describe the content of visual data. But we’ve also uncovered how far we still have to go before we can comprehend and reproduce one of the most basic operations of the human brain. This blog will discuss the purpose of computer vision systems and the various domains in which it is being utilized to solve image recognition tasks. Then, it will examine the different types of neural network and deep learning architectures used for this task and ways to evaluate them using different techniques. It will take one image recognition task and analyze how the different algorithms perform on this task. The blog will also outline some of the applications and limits of these systems and how deep learning is being utilized to optimize the efficiency of these systems. To sum up, this blog will provide an insight into the world of computer vision systems and how they have been used across the industry to solve very complicated image recognition tasks. It investigates current literatures to provide a slight overview and acts as a steppingstone to conduct further research in this area.</p><p>Since the invention of modern cameras and sensors, a large number of digital devices have been used to generate images and videos which increased the demand for a system that can recognize and describe the content of visual data. An image is an array of pixels and numerical values which represent intensities of these pixels in shades of red, green and blue. Computers have been used to process and store images but it’s only until recently that they have been able to learn and understand the contents of the image. They were lagging behind for quite some time in image recognition tasks as they had to be able to determine which pixels belonged to which object and how to extract features.</p><p>It was a very challenging task as programmers initially specified rules for detecting patterns in images, but it proved to be unsuccessful. This is because static programs cannot adapt to real world objects which could appear from many different angles, various lighting, and a range of different backgrounds. Researchers have been looking for a way in which machines can learn for themselves to identify and recognize patterns from images without being explicitly programmed. Although traditional machine learning techniques like SVMs proved to be useful initially, they have been stagnant for a while and did not produce higher accuracies.</p><p>It was only until the discovery of neural networks that the field started to show some progress. The human vision system which has evolved for billions of years was quite suited for the task of identifying and recognizing objects. Around the end of 1970s, Japanese scientist Kunihiko Fukushima proposed a computer vision system based on neuroscience which mimics the way of human visual cortex. Though it failed to perform complex visual tasks, it marked the birth of new developments in the field of computer vision. The rise in the computational power of computers and the development of deep convolutional neural networks has pushed the boundaries in the field and enabled computers to outperform humans in image recognition tasks.</p><h3>What is Computer Vision?</h3><p>“Computer vision is concerned with the automatic extraction, analysis and understanding of useful information from a single image or a sequence of images. It involves the development of a theoretical and algorithmic basis to achieve automatic visual understanding.” (The British Machine Vision Association and Society for Pattern Recognition, 2017). It is different from Computer Graphics which is used to generate images as it deals with extracting visual information from the real word and make predictions. Computer vision systems have been deployed to create algorithms which can produce accurate results and are capable of very fast predictions.</p><h3>Applications in Computer Vision</h3><p>Computer vision systems can be used in a variety of applications including image classification, object detection, image segmentation, face recognition, action and activity recognition, and human pose estimation. But here we will discuss the three main applications of computer vision.</p><p><strong>· Image classification: </strong>is one of the fundamental applications of computer vision. It is the process of training computer systems to recognize the whole image and assign it to a specific category from a collection of predefined tags. According to (Wang &amp; Su, 2019), “Image classification is a fundamental task that attempts to comprehend an entire image as a whole. The goal is to classify the image by assigning it to a specific label. Typically, image classification refers to images in which only one object appears and is analyzed.”</p><p><strong>· Object detection:</strong> is a technique used to locate instances using bounding boxes in images or videos.</p><p>It produces classification results and regression coordinates for the bounding boxes to locate each object. It leverages deep learning algorithms to recognize and label objects of interest within an image. “Object detection is the process of detecting instances of semantic objects of a certain class<br>(such as humans, airplanes, or birds) in digital images and video. A common approach for object detection frameworks includes the creation of a large set of candidate windows that are in the sequel classified using CNN features” (Voulodimos, Doulamis, Doulamis, &amp; Protopapadakis, 2018).</p><p><strong>· Image Segmentation</strong>: It is the process of labeling pixels of related features or objects in an image.</p><p>Kaur et al. (2014) define segmentation as “the technique of dividing or partitioning an image into parts, called segments. It is mostly useful for applications like image compression or object recognition, because for these types of applications, it is inefficient to process the whole image. So, image segmentation is used to segment the parts from image for further processing. There exist several image segmentation techniques, which partition the image into several parts based on certain image features like pixel intensity value, color, texture, etc. These all techniques are categorized based on the segmentation method used” (pp. 809–814). Image segmentation can further be divided into semantic and instance segmentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*rEY4SatBsUupxwQ1GW4CJg.png" /><figcaption>Figure 1 The difference between classification, detection, and segmentation (Shanmugamani, 2018)</figcaption></figure><h3>Datasets for Computer Vision</h3><p>Machine learning on picture and video files is a time-consuming and data-intensive task. It is critical to have access to high-quality, noise-free, large-scale datasets for training complicated deep neural network models. To train on, high-quality deep learning systems may require millions of properly selected pictures. Many open-source datasets are being created for use in image classification, pose estimation, image captioning, autonomous driving, and object segmentation. The computer vision community has benefited from an influx of publicly available, annotated picture datasets, which has resulted in impressive results in object detection/segmentation tasks and innovative modeling architectures (Yuzhen &amp; Sierra, 2020). Some of the most utilized datasets for the purpose of computer vision are mentioned below.</p><p><strong>· Grayscale Images: </strong>The computer interprets a grayscale image as a matrix with one entry for each image pixel. One of the most widely recognized grayscale image dataset is the <strong>MNIST</strong> (<strong>Modified National Institute of Standards and Technology</strong>) dataset, which consists of images of handwritten numbers and their labels. Since its release in 1999, this classic dataset is used for benchmarking classification algorithms. Each image has a height and width of 28 pixels, with a total of 784 pixels. A single pixel value is associated with each pixel. This number specifies the brightness or darkness of that specific pixel; 0 denotes the darkest, and 255 indicates the brightest (Sewak, Karim, &amp; Pujari, 2018). Other datasets include Fashion MNIST which contains thousands of fashion products and associated labels from 10 classes.</p><p><strong>· RGB Images: </strong>are images with a three dimensional array of numbers representing the intensities of pixels across the red, blue and green channels. These are colored images with a height, width and three different channels. A single pixel value can be represented as a combination in intensities in the three different channels ranging from 0 to 255 such as (255,0,255). Some of the most common RGB image public datasets include ImageNet, which is “a dataset of over 15 million labeled high-resolution images belonging to roughly 22,000 categories” (Krizhevsky, Sutskever, &amp; Hinton, 2012). Other more familiar RGB image datasets include CIFAR, Caltech 101/Caltech 256 and the Caltech Silhouettes and others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*8rJ4vnWXi8KmC2xUNPuiPw.png" /><figcaption>Figure 2 Example Images of MNIST dataset (Lim, Young, &amp; Patton, 2016)</figcaption></figure><h3>Computer Vision Models</h3><p>Over the past few years numerous algorithms were developed to build models that can be trained to recognize objects and classify images as a whole. Different models may predict different concepts for the same inputs based on their training. Models can take inputs as images or videos to learn some important features and return pre-learned concepts or predictions. Deep learning models for computer vision have gone through a lot of improvements since their inception ranging from simple neural networks to very deep and sophisticated models.</p><h3>Artificial Neural Networks (Perceptron)</h3><p>Neural networks, also referred to as Artificial Neural Networks (ANNs), is a kind of machine learning algorithm which mimics the way of how the human brain works and serves as the building block for most deep learning models. “Perceptrons were developed in the 1950s and 1960s by the scientist Frank Rosenblatt, inspired by earlier work by Warren McCulloch and Walter Pitts.” (Nielsen, 2015) They are composed of several nodes which make up the input, one or more hidden and output layers. While the nodes in each layer indicate the nonlinear activation functions, the connections between them represent the weights associated with each node. We can think individual nodes as simple mathematical functions which takes in a linear regression model composed of input data, weights and biases to give an output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*9xRRYy_QnVqwmMczdGJmlQ.png" /></figure><p>For the sake of simplicity we will introduce some of the most common terms used when building neural network architectures.</p><p><strong>Layers: </strong>A neural network is composed of several layers. The first layer of neurons are called input layers and these might be x values ranging between zero and one which depict the intensities of each pixel in the image. A simple neural network might include several hidden layers and finally an output layer predicting any one of the classes that the sample image belongs to.</p><p><strong>Activation function: </strong>are simple mathematical functions which take in a linear function as an input from the previous layer and spits out a number ranging between 0 and 1. These functions are applied to all the layers except the input layer. The hidden layers might apply activations functions like sigmoid, tanh or ReLU and softmax might be used for the output layer of a multi-class classification problem.</p><p><strong>Weights and Biases: </strong>are numbers which are which are applied to activations of the previous layer to compute the weighted sum. These are parameters that the network tries to learn and are updated until we get an optimal result. Initially they might be selected randomly but get updated as we train the network.</p><p><strong>Cost Function: </strong>The cost or loss function is a method to evaluate the performance of the network. One of the most commonly used cost function is the mean squared error (MSE). The goal of training a neural network is to minimize this cost function by updating the weights and biases.</p><p><strong>Back propagation and Gradient Descent: </strong>The process of moving from input layers to output ones is called feed forward. And the reverse process is called back propagation which is used adjust the weights and biases of a network and reduce the cost function until it reaches a local minimum, The algorithm which is used to adjust the weights is called gradient descent and it allows the model to determine the direction of the nearest local minimum.</p><h3>Convolutional Neural Networks</h3><p>Convolutional neural networks are deep learning neural networks which are designed to recognize patterns and features better than conventional neural networks. The strength of this type of network is that it contains a special type of layer called convolutional layer. The success of a deep convolutional architecture called AlexNet in the 2012 ImageNet competition was the main reason that CNNs have become so popular in building deeper networks for image recognition tasks. “Convolutional Neural Network has had ground breaking results over the past decade in a variety of fields related to pattern recognition; from image processing to voice recognition. The most beneficial aspect of CNNs is reducing the number of parameters in ANN. This achievement has prompted both researchers and developers to approach larger models in order to solve complex tasks, which was not possible with classic ANNs” ( Albawi, Mohammed, &amp; Al-Zawi, 2017). Convolution neural networks have three types of layers namely convolutional layer, pooling layer and fully connected layer.</p><p><strong>Convolutional layer</strong>: is the main building block and it is the place where the majority of computation takes place. This layer consists of a kernel or filter usually with smaller dimension which moves across the input image to check if a certain feature is present. It is a rectangular array of numbers which is applied to an area of an image to take the dot product with input pixels. The result of this product is fed into an activation function which produces an output matrix whose size is determined by a number of hyperparameters like the number of filters, stride and padding.</p><p><strong>Pooling Layer</strong>: is a layer which is to reduce the dimensions of the input which in turn decrease the number of parameters used for the input. The filter used for a pooling layer does not contain any weights as it simply applies an aggregate function to the input reducing the computational complexity. They are usually applied immediately after each convolutional layer. The two most common types of pooling include max and average pooling.</p><p><strong>Fully Connected Layers: </strong>This layer takes the result produced by convolutional layers and converts it into a one-dimensional array. It applies activation functions and passes it to the next fully connected layer or if there are none it sends it directly to the output layer. In this type of layer each node is connected directly to the next layer which was not the case for convolutional layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*P51D-snH6YSzC4QoFzhH3Q.png" /><figcaption>Figure 3 Building blocks of a CNN (O’Mahony, et al., 2019)</figcaption></figure><h3>Very Deep Convolutional Neural Networks</h3><p>Some of the earliest convolutional neural networks were very simple and did not contain that many layer. The earliest of these was the LeNet-5 convolutional neural network which had only six layers and was used to recognize gray scale images of handwritten digits and letters of the alphabet. Since then there has been a tremendous progress in the field where we saw more powerful and sophisticated networks which consist of more than 30 layers and millions of parameters. Some of the most common deep convolutional neural networks include AlexNet, VGGNet, ResNet, GoogleNet. These networks are more powerful and have an accuracy which is very close to humans. Each network has its own unique implementation method and are utilized for various types of computer vision tasks. An important thing to note here is that some of these networks might be very good at extracting features than others in a certain task and perform poorly on other tasks so we should pay attention to which one we select to fit our business model.</p><h3>Methods of Evaluation for Deep Learning Models</h3><p>There are a lot of similarities between techniques used for evaluating machine learning and deep learning models. Below are some of the various methods to check and evaluate the performance of a deep learning model.</p><p><strong>Accuracy: </strong>is one of the most commonly used evaluation methods but is not a good indicator of the actual performance of the network. This happens when there is a class imbalance, and the accuracy measure becomes biased towards one class. It is calculated as the ratio of the number of correct predictions to the total number of predictions.</p><p><strong>Precision: </strong>is defined as the ratio between the number of correctly classified positive samples (<strong>TruePositive</strong>) to the total number of samples classified as positive (<strong>TruePositive+FalsePositive</strong>). It measures the model’s performance in correctly identifying samples as positive.</p><p><strong>Recall: </strong>is defined as the ratio between the number of correctly classified positive samples (<strong>TruePositive</strong>) to the total number of positive samples (<strong>TruePositive+FalseNegative</strong>).</p><p><strong>Specificity: </strong>is used to measure the number of correctly identified negative samples (<strong>TrueNegative</strong>) to the total number of negative instances (<strong>TrueNegative+FalsePositive</strong>).</p><p><strong>F1 Score: </strong>is defined as the harmonic mean of precision and recall. It takes the contribution of both measures to estimate how well the model is doing.</p><p><strong>PR curve: </strong>is defined as a curve which shows the relationship between precision and recall for various threshold values.</p><p><strong>ROC curve: </strong>is a graph used to show the true positive rate and false positive rate for various threshold values.</p><p><strong>Confusion matrix:</strong> is a representation of true positives (TP), false positives (FP), true negatives (TN) and false negatives (FN) in a matrix format.</p><h3>Comparison of Traditional Computer Vision and Deep Learning</h3><p>The traditional approach of computer vision involves algorithms which are concerned with the extraction of features and context within the image. It is used to detect curves and edges which are used for deriving features to gain an understanding of the contents within an image. Several edge detection algorithms like Canny Edge Detector, Sobel, and Fuzzy Logic method might be used for this purpose. Some of the most established feature descriptors for object detection might include SIFT, SURF and BRIEF. The problem with traditional approach is that “it is necessary to choose which features are important in each given image. As the number of classes to classify increases, feature extraction becomes more and more cumbersome. It is up to the CV engineer’s judgment and a long trial and error process to decide which features best<br>describe different classes of objects” (O’Mahony, et al., 2019).</p><p>Practitioners of computer vision had to determine which specific properties best defined the item of interest. This method of feature engineering and description was not scalable, especially when there are so many items of interest to be described at the same time. Deep learning solves this problem by performing feature extraction and classification with one automated procedure. Deep learning models introduce neural networks which uncover the relationship between the underlining features and class labels. They outperformed traditional approaches by providing higher accuracy and do not require hand-crafted feature extraction which takes a lot of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*cUHt_SxQ6M0DcmzY3HVXaw.png" /><figcaption>Figure 4 Traditional Computer Vision and Deep Learning Workflow (O’Mahony, et al., 2019)</figcaption></figure><h3>Comparison of Artificial and Convolutional Neural Networks</h3><p>Artificial Neural Networks were originally good enough for most image classification tasks with small amount datasets. But they were not able to adapt with the increasing amount of data as they require a large number of parameters which took a lot of computational power and resources. Convolutional Neural Networks offer a solution to this problem as they substantially reduce the amount of computation and parameters required to train the network. It uses special convolutions and pooling layers to reduce the dimensions of the image thus decreasing the number of parameters. They are mostly deployed in most computer vision tasks to classify images and perform far much better than traditional artificial neural networks.</p><h3>Challenges of Deep learning in Computer Vision tasks</h3><p>Although deep learning models perform far better than traditional approaches it comes with a cost. These networks require a lot of time to train, and they require good understanding of hyperparameters and machine learning techniques to fine tune the model and get the best result. They also require a lot of computational and processing power to perform the billions of mathematical operations used to train the model. These networks also suffer from the problem of overfitting or underfitting either from the lack of datasets or low resolution of images. They might perform well on the training data and might fail to generalize when they encounter new data. Although these networks do a decent job on classifying images they have no deeper understanding or background knowledge about the contents of the image. When confronted with a scenario they haven’t seen before, humans may rely on their extensive knowledge of the world to fill in the blanks. In contrast to people, computer-vision algorithms must be carefully trained on the sorts of things they must detect. When they are exposed to items that differ from their training examples, they act irrationally, such as failing to recognize emergency cars parked in unusual locations. So we must wait until the emergence of truly artificial intelligent systems to encounter such scenarios.</p><h3>Implications</h3><p>The tremendous potential demonstrated by deep learning models in computer vision tasks offer a promising future in utilizing these systems to solve real world problems. Researchers and scientists are working hard to improve these systems so that they could give higher accuracies. Deep learning models are deployed in various sectors to solve problems specific to the field. They are used in facial recognition systems, content moderation, autonomous vehicles, military, AR/VR technologies, fraud detection and the health care industry. They are becoming more ubiquitous than ever before because of their superiority in terms of performance. Big companies are utilizing this huge potential to develop new features for their services. From the facial recognition system in our phones to image captioning and content moderation algorithms on social media sites they are becoming part of our daily life.</p><h3>Conclusion</h3><p>To sum up, computer vision has come a long way from traditional techniques for extracting features to artificial neural networks and the more recent deep convolutional neural networks. It is advancing at a rapid pace and is getting better in accuracy and reducing computational cost. The blog highlighted the different types of computer vision models and made comparisons in terms of their deployment and computational cost. It has also covered the applications of these systems and methods to evaluate their performance. It has laid arguments for the advantages and limits of deep learning systems in recognizing objects and outlined the future prospect of these systems in revolutionizing image recognition tasks. The blog concludes by stating the fact that although current deep learning models have achieved very high accuracies, they have a long way to go in terms of reducing computational costs and achieve true artificial intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a3bc371fdc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security and Privacy of IoT]]></title>
            <link>https://medium.com/@teddy.meg1234/security-and-privacy-of-iot-fa2371e69d88?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa2371e69d88</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[iot-security]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:22:34 GMT</pubDate>
            <atom:updated>2022-07-19T07:22:34.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. What are IoT Security and Privacy Issues?</h3><p>In recent years, there has been an explosion of devices that are being connected to the internet. Though being connected to the internet has its own perks, it can expose users and devices sensitive information to the outside world. This has left the door wide open for security and privacy risks which we normally don’t worry about before the invention of the internet. IoT creates even more exposure to security threats and malicious attacks since it allows vulnerable points of entry to our devices. Most of the devices we use every day have access to a lot of private information such as our daily routines, location, health and more. So, whenever these devices connect to the internet, they might be able to deliver this sensitive information to third parties usually without our consent.</p><p>Due to the huge amount of personal data being shared online, it has prompted researchers and organizations to pay attention to security threats and adopt appropriate measures to tackle this problem. The security and privacy issues associated with IoT devices have a lot of implications for businesses and personal users who have access to them. Most users are unaware of the security impacts until a breach occurs and experience massive loss of personal data. As a result, it is important to increase the awareness of consumers about their privacy and the associated risks that come along when deploying IoT devices.</p><h3>2. What are IoT Security risks and vulnerabilities?</h3><p>In this section we will see some of the security risks that are associated with the application of IoT.</p><p>1. The first risk is the vulnerabilities introduced to each IoT device. It has been shown that around 25 vulnerabilities might be found in a single IoT device. Some of the statistics related to vulnerabilities show that 80% of IoT devices don’t have password with sufficient complexity; 70% do not use encryption when transmitting data and 60% use firmwares and interfaces which are vulnerable for malicious attacks.</p><p>2. Another prominent attack against IoT devices can emerge when a third party can gain access to the communication channel and identify the identities of the nodes or listens to the conversation. This is sometimes called a man in the middle attack.</p><p>3. IoT devices also lack proper authentication to gain access to private information. This makes them vulnerable to some common attacks such as Denial of service (DoS). Due to the multiplicity of the data that is being collected in the IoT environment, attackers can easily replicate user information to authenticate themselves.</p><p>4. The IoT’s vastness and heterogeneity also have an impact on its governance. The largest security and privacy problem for IoT devices is heterogeneity. The requirements and security concerns of many IoT devices make management challenging. As a result, protecting every IoT device from various assaults is getting more difficult. It is challenging to apply a single solution to all the devices because they must be approached differently at different times. It is a double sword that must be handled carefully when it comes to government. On the one hand, it provides security, backing for political choices, and the opportunity to develop standard frameworks and interoperability protocols.</p><p>5. The user’s privacy is compromised when an IoT node is given a fixed domain name. One of the most important issues with IoT security services is the requirement for identification. Every device needs to be identified. A manufacture reference must be accessible, regardless of whether the device is genuine or malicious. It’s challenging to authenticate every device. Due to the IoT devices’ increasing variations and abundances, it is one of the most significant challenges.</p><p>6. We frequently link our IoT gadgets to our cellphones. The manufacturer may have access to and use our personal information. If a hacker gains access to a device, he will have easy access to the user’s passwords and personal information. They can take advantage of any flaw in this system. To prevent misuse of user data, service providers must implement an access control system. As a result, such methods or applications are required to defend against attacks and avoid points of failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*8g2ObidCEXLWEUoGqgwriQ.png" /><figcaption>Figure 1The total spending on the security of IoT devices in Million USD</figcaption></figure><h3>3. Use cases of IoT security breaches?</h3><p><strong>1. Mirai botnet: </strong>One of the most well-known Internet of Things security flaws is the Mirai botnet from 2016. A botnet is essentially a network of distributed computers and other devices that are connected to coordinate an attack. The code was posted online by the hacker, enabling imitation. 145,607 IP cameras and video recorders were part of the Mirai botnet. Every second, it consumed almost a terabyte of bandwidth.</p><p><strong>2. Target’s credit card breach: </strong>Target’s network was successfully infiltrated by hackers in 2013, and the data from millions of transactions was taken. An HVAC vendor who was assisting Target in tracking their energy usage and improving the efficiency of their systems had their login information stolen. Although an IoT device may not be at blame in this instance, anyone developing IoT applications, especially apps like smart meters, should be aware of the ramifications.</p><p><strong>3. St. Jude Medical’s pacemakers: </strong>Over 465,000 implantable pacemaker devices were revealed by the FDA to be hacker-prone in 2017. A hacker with access to one of these devices may shock, drain the battery, or literally kill someone by changing their heartbeat. A potentially life-saving device was effectively made into a lethal weapon by an IoT security vulnerability.</p><p><strong>4. Hackable autonomous vehicles:</strong> A Jeep Grand Cherokee was hacked in 2015 by a pair of cybersecurity experts. They were able to reprogram the engine, steering wheel, brakes, transmission, and other components using the multimedia system. This is a chilling reminder of how vulnerable we are to cyberattacks in the age of self-driving cars.</p><h3>4. What are the solutions to IoT Security risks?</h3><p>The internet of things is compatible with many existing IT security solutions, but how can we make sure that the devices connected to it are secure? The suggestions for enhancing IoT security are listed below.</p><p><strong>1. Data Encryption: </strong>To protect user privacy and prevent IoT data infringement, it is recommended to encrypt data at rest and in transit between IoT devices and backend systems using industry-standard cryptographic algorithms. For authentication and wireless network encryption, the best practice is to use WPA, WPA2, or a similarly strong encryption.</p><p><strong>2. Certifying/Authenticating IoT device: </strong>To allow users to verify devices, it is best to introduce multiple user management capabilities for Internet of Things (IoT) devices, such as two-factor authentication, digital certificates, and biometrics. To access administrator controls and make significant changes to the network or devices connected to that network, it should take more than just a password.</p><p><strong>3. API Security: </strong>We must either identify potential threats and attacks against specific APIs or ensure that APIs are only used by authorised devices, applications, and developers. Furthermore, the use of this API security technique should be required to protect the integrity of data transfer between REST-based APIs and applications, IoT devices, and software<strong>.</strong></p><p><strong>4. IoT security analytics and testing: </strong>The most difficult aspect of IoT devices is keeping them updated. In contrast to traditional network security solutions such as firewalls, IoT security analytics can be used to detect attacks and threats to smart devices. To ensure the security of IoT hardware, a comprehensive testing framework should be in place. IoT device manufacturers must also update their security measures without affecting power consumption.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa2371e69d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT in Healthcare]]></title>
            <link>https://medium.com/@teddy.meg1234/iot-in-healthcare-6e48b99dce2b?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e48b99dce2b</guid>
            <category><![CDATA[healthcare-technology]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:20:08 GMT</pubDate>
            <atom:updated>2022-07-19T07:20:08.591Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. What is Internet of Medical Things (IoMT)?</h3><p>Nowadays more and more medical devices are getting connected to the internet. A variety of IoT devices are being utilized in the health care industry to aid both patients and doctors. They are being implemented in a variety of sectors aiding the collection, monitoring, and analysis of patient’s health records. According to Brand essence market research, the IoT market in healthcare is expected to surpass $10 billion by 2024. The Internet of Things (IoT) is gradually gaining ground and evolving in tandem with 5G technology, AI, and Big Data.</p><p>The healthcare industry will most likely be transformed by combining these powerful technologies with the Internet of Things. A particular sector in the healthcare industry known as the Internet of Medical Things (IoMT) has emerged with the sole purpose of incorporating IoT in heathcare and medicine. IoMT collects various data generated from IoT and medical devices to monitor the physiology of patients. It enables the prediction of new diseases and can also be used to diagnose already occurring diseases. Some of them are used for the management of assets and medical information which can save a lot time and resources.</p><h3>2. Use cases of IoT in Healthcare</h3><p>IoT has a lot of benefits in improving treatment outcomes, collection of accurate data, and enabling physicians to make informed decisions. It also helps to minimize errors and track patient’s progress by uploading their health status in real time. In recent years, many conferences have been held to explore new automated technologies in medicine to provide better health care. Several researchers are working in this domain to bring new innovations and features. The application of AI and machine learning techniques also helps in the automation of data analysis for patients’ health records and making predictions based on the data. There are a lot of use cases in where IoT can be used in the healthcare sector to help patients, physicians and hospitals. In this section we will discuss five application IoT in medicine.</p><p>Telehealth or Telemedicine is one application of IoT which allows patients to send their data to hospitals from the convenience of their home. Nowadays, health care providers can monitor their patients by using IoT devices which can measure various metrics such as oxygen saturation, heartbeat, and blood pressure. It can also help the doctors to provide online consultations to patients who are unable to go to the hospital due to several circumstances. There are also devices called “Personal Emergency Response Systems” which are used to make automated emergency calls to notify health care providers if a patient is in distress or in the case of sudden heart attack. This can be useful if the patients are unable to make a phone call to an ambulance on their own or there is no one around to help them out.</p><p>There are some IoTs which are used in the hospital to facilitate and manage interactions between staff members and patients. These might include bedside station, body signal collecting devices, electronic bracelets and more. Most hospitals have a lot of complex departments and facilities which require continuous water supply, electricity, ventilation, and special health care equipment which are integrated with IoT sensors, drives and actuators that are connected to the internet and deliver daily status update to the central hospital management. Inside many hospitals, there is no room for loss of power when doctors are performing surgery on a patient. As a result, we need IoT devices which can intervene and turn on generators when there is a sudden loss of power. There are also a lot of robotic arms which can work together with surgeons to perform surgeries without tiring usually if the session takes too long. They can be used to perform difficult procedures with high success rate. Some IoT devices can be used to disinfect hospitals and operation wards to ensure the cleanliness of these areas which is critical for the patient.</p><p>Glucose Monitoring devices and insulin pens are used to track a patient’s blood glucose level and is connected to a smart phone to send the data. It can help patients with diabetes avoid going to the hospital every time to get the glucose level check out. This smart device can alert the patient when their glucose level is higher than the recommended levels. The procedure used is noninvasive and uses AI to analyze the data retrieved and present it in a format which can be easily understood by the user.</p><p>Smart inhalers are a new set of IoT devices which are helping patient with asthma who have difficulty breathing normally. Patients may experience difficulty in breathing anytime during the day and may not find their inhaler at the moment. The purpose of the smart inhalers is to monitor the frequency of attack for the patients and also notify them if they forgot to carry their inhaler with them. These devices are connected to the internet which can be used to send data about the quality of their breathing to their smartphone. It has been shown that the availability of an inhaler to a patient at the right time can prevent 2 out of 3 deaths.</p><p>Smart video pills and ingestible sensors are new innovations in which patients can swallow small digestible sensors or pills that can travel through hard to see places such as blood vessels and intestinal tracts which then report back their findings. These devices ca take pictures or videos as they travel and send it back to a smartphone. This removes the need to perform surgery or use medical imaging in order to see very complicated areas inside the body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*tospnSDb9Q_QwRLcwIOIhQ.png" /><figcaption>Figure 3 The deployment of IoT in health care</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e48b99dce2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Edge computing]]></title>
            <link>https://medium.com/@teddy.meg1234/edge-computing-1bbec3ec91c4?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bbec3ec91c4</guid>
            <category><![CDATA[edge-computing]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:17:52 GMT</pubDate>
            <atom:updated>2022-07-19T07:17:52.358Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. What is Edge Computing</h3><p>Edge computing is a networking methodology which is concerned with getting computation closer to the source or next to the device generating the data. This is done to reduce the latency and bandwidth of sending data to remote servers for it to be processed. Moving important processes closer to edge devices can be helpful to minimize the communication distance and cache important information for faster access. Edge computing encompasses centralized applications that run on the device or at the network’s edge. The edge includes computationally capable devices such as routers, switches, sensors, industrial machines, or multiplexers that can alleviate the burden of moving redundant data to servers, which can cause network congestion.</p><h3>2. Examples of Edge Computing</h3><p>Edge computing can be extremely beneficial in a variety of use cases such as smart home devices, cloud gaming industry and autonomous vehicles. But here we’ll focus one two hypothetical scenarios in particular.</p><p>1. First let’s consider a scenario where a a company houses high definition IoT security cameras. The purpose of these cameras is to monitor the activities inside the company and continuously stream it to the cloud. We can assume that the camera in the cloud server performs a motion or gait detection algorithm which ensures that only clips that contain useful movements and not raw footage are stored on the server. In this particular scenario we can see that there is a huge strain on the company’s network infrastructure since streaming high quality videos is resource intensive and consumes a lot of bandwidth. There is also a significant strain on the cloud server since it has to run the algorithm on the videos collected from multiple cameras. This problem can be resolved if we just move the motion detection algorithm on the network edge rather than the cloud. Each camera can have it’s own processor and embedded computer to run the algorithm on. This will completely remove the strain on the network since we don’t need to send the videos to the server.</p><p>2. Let’s consider a second scenario in autonomous vehicles where edge computing might be useful. Autonomous vehicles has a lot of IoT devices and sensors which collect and process real-time data in their surrounding such as pedestrians, stop lights, turns, and street signs. If we want the vehicle to make quick decisions such as making a turn or stopping in traffic, it would be inconvenient to send the data to the cloud for it to be processed. We can incorporate some edge computing devices inside the car which allows the IoT devices to process the data locally in real-time.</p><h3>3. Edge Device vs IoT device</h3><p>The terms IoT device and Edge device are often confused and sometimes used interchangeably. In this section we will try to clear up the confusion and state the differences between the two. We have already covered IoT devices in the first section which are physical objects which are connected to the internet and act as a source of data. But an edge device collects the data from these devices and process them to perform data analysis. Here we need to pay attention to the fact that edge devices can be located closer to the IoT devices or can be considered part of the IoT itself. When the IoT device has good computational power and enough storage, it can act as an edge device which can reduce the latency of sending data to another device.</p><h3>4. Advantages and Disadvantages of Edge Computing</h3><p>Some of the benefits of edge computing include:</p><p>· Reducing the extra delay of sending data from IoT devices to cloud servers.</p><p>· Increasing the network bandwidth and improving the traffic.</p><p>· Even when network connection is lost to remote servers, the IoT devices remain functional.</p><p>· Faster access and retrieval cached data from edge devices.</p><p>· Reduce the computational burden on the server and avoid sending redundant data.</p><p>· Local processing of data and decrease in server costs.</p><p>Although edge computing has a lot of benefits, it also brings some associated drawbacks. Some draw backs of edge computing include: -</p><p>· The first drawback of using edge computing is that the introduction of computation capable processors and built in computers to IoT and edge devices will make these devices vulnerable to malicious attacks. This will open the door for new opportunities to attack these devices.</p><p>· The second drawback is that edge computing requires more local resources and hardware. To make these devices perform computationally intensive tasks, we are required to introduce new processors and embedded computers close to the edge. This will have its own associated costs which can sometimes be very expensive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*hOGKUV1zo69d4b2j9VvIRQ.png" /><figcaption>Figure 1 A diagram depicting the use of edge computing</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bbec3ec91c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four V’s of Big Data in IoT]]></title>
            <link>https://medium.com/@teddy.meg1234/four-vs-of-big-data-in-iot-fca3c21eaf77?source=rss-5d6fdd9efa16------2</link>
            <guid isPermaLink="false">https://medium.com/p/fca3c21eaf77</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Teddy Tassew]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:15:39 GMT</pubDate>
            <atom:updated>2022-07-19T07:15:39.668Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Big Data and IoT</h3><p>Before the Internet of Things, there was big data. Despite their differences, big data and the Internet of Things are two concepts that are inextricably linked. Because of the increasing data processing capability, extensive data storage resources, and ultra-high speed Internet, IoT generates big data in a variety of areas. The evolution from simple data storage to active data use has enabled behaviour analysis and prediction, which are the primary drivers of IoT devices. Today’s Big Data concept goes a step further by incorporating organization as well as the scalability of petabytes of information generated by our daily activities.</p><p>In 1999, Kevin Ashton coined the term “Internet of Things.” The Internet of Things (IoT) is a collection of consumer-driven gadgets, devices, wearables, and machines that can communicate with one another and exchange data. The Internet of Things includes devices and connected sensors that can measure, record, and transmit data in real time. Manufacturers can gain a lot of value from this data, but it must be extracted properly. Humans, on the other hand, are the ones who produce Big Data. Human-created Big Data enables IoT elements to act intelligently and become more sophisticated in a context where not only humans interact with technology to create data, but also machines interact with one another.</p><h3>2. What are the V’s of Big Data?</h3><p>In data-intensive systems, big data necessitates robust data handling processes. Big Data’s defining attributes or dimensions are known as the 4 Vs. To put it another way, these are the characteristics that define a large set of data as Big Data. Big data is defined by the four Vs: volume, variety, velocity, and veracity.</p><p>1. <strong>Velocity (i.e., rate of data flow)</strong>:- Velocity is one of the properties of Big Data which describes the speed at which data is being transmitted and processed. In the context of IoT, it is rate at which at which large amounts of data are generated from different IoT devices. It’s worth noting that this refers not only to the speed at which data arrives, but also to the speed at which data flows and is aggregated. Different sensors and devices can generate enormous amount of data which has to be transmitted instantaneously to its intended target for it to be processed. This demonstrates why velocity is a key attribute of big data.</p><p>2. <strong>Volume (i.e., the size of the data):- </strong>Volume, the second V of big data, describes the amount of data generated by IoT devices. It refers to the size of data sent and received, which can range from gigabytes to exabytes. This necessitates the use of large storage and network devices capable of handling the massive amounts of data generated by these devices. According to Intel, IoT devices generate a large amount of unstructured big data, which is useless if there is no algorithm to properly analyze it. One advantage of having large amounts of data is that analytics can be used to detect security breaches. This is an example of how big data technologies can help to strengthen security.</p><p>3. <strong>Variety (i.e., data from multiple repositories, domains or types): — </strong>Another important feature of big data is variety, which refers to the various structures, formats, and organization of data sent between IoT devices. It refers to the various data formats, which include structured, unstructured, and semi-structured data. It consists of various types of data collected by sensors and stored in different formats. It should be noted that data includes not only structured and quantifiable information, but also unstructured and semi-structured information such as images and videos recorded by sensors and cameras, user behaviour, and medical records.<strong> </strong>After sufficiently removing unique identifiers and indirectly identifying information through anonymization, sensitive data can be shared using IoT devices. Big data variety is a new term coined by big data companies to aid in the identification of individuals from massive amounts of unidentifiable data.</p><p>4. <strong>Veracity (i.e., provenance of the data and its management): — </strong>veracity of big data denotes the trustworthiness and quality of the data collected using IoT devices. If the source from which the data is generated not accurate, data analyses will be worthless. It also describes uncertainties caused by data inconsistency, ambiguities, and latency. It is important to maintain data quality in order to ensure security and privacy. In order to make informed decisions from the analysis of big data, the data transmitted through IoT devices must be reliable. The data being processed should be meaningful to the problem being analyzed. According to reports it has been shown that poor data costs the US economy around $3.1 Trillion. So it is necessary to validate the quality and trustworthiness of the data being transmitted by IoT devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*YUZUsDQcRapXjyeYvRN2Jg.png" /><figcaption>Figure 1 The Four V’s of Big data</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fca3c21eaf77" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>