<?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 Zaki Rangwala on Medium]]></title>
        <description><![CDATA[Stories by Zaki Rangwala on Medium]]></description>
        <link>https://medium.com/@rockinzaki?source=rss-e1869e0fd1e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*e9GlvjqYSKYLhXUc4PygzQ.jpeg</url>
            <title>Stories by Zaki Rangwala on Medium</title>
            <link>https://medium.com/@rockinzaki?source=rss-e1869e0fd1e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:10:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rockinzaki/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[Real-Time Face Mask Detector ]]></title>
            <link>https://medium.com/analytics-vidhya/real-time-face-mask-detector-8b484a5a6de0?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b484a5a6de0</guid>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[mobilenet-ssd]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 04:55:31 GMT</pubDate>
            <atom:updated>2020-12-06T22:08:46.551Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build A Real-Time Face Mask Detector 😷</h3><h4>Learn how to develop your own custom object detection program utilizing Tensorflow + Python and MobileNet SSD</h4><p>I have been really fascinated by the field of artificial intelligence lately as many advancements are being made in this field to teach machines various things. Therefore, I decided to build my own mask detector to determine when someone is wearing a mask. I did this by leveraging the TensorFlow object detection API and OpenCV to train the SSD (Single Shot MultiBox Detector) neural network consisting of 300+ images to come up with these detections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUktQpGNEZrCVdY4kLaNDw.png" /><figcaption>The image on the left is of a person with a mask, and the image on the right is the result of my model detecting the mask once I input the image, with a confidence score of 94%.</figcaption></figure><p>In this article, I will explain everything from what object detection is and how the SSD algorithm works to how you can implement these fundamental principles to build your own custom object detection program, whether it be to determine a cat from a dog or, in my case a face with a mask as opposed to as face without one. Keep in mind that you can make a model capable of detecting more than two classes or using something like the <a href="https://github.com/tensorflow/tfjs-models/tree/master/coco-ssd">COCO-SSD</a>, which can differentiate objects from 80 different classes.</p><p>So without further ado, let’s get right into it!</p><h3>What is Object Detection? 👀</h3><p>Object Detection, as you can tell from the name, is one of the most prominent research fields in computer vision today. This technology predominantly identifies or even locates objects belonging to certain classes(dogs, cats, humans, buildings, cars) within an image or even a video stream. This is not to be confused with image classification, which is another branch of computer vision that can easily predict what an image comprises. You could technically use this technology to make a mask detector containing two classes: Mask and No Mask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*NCIQil2ENvMPxJeI.png" /><figcaption>Object Detection Model labelling dog [left], cat[centre] and dog[right] using a combination of image classification and image localization (Source : <a href="https://www.flickr.com/photos/raneko/3051403531">Raneko from Flickr</a>)</figcaption></figure><p>But what would you do when you have both a person wearing a mask and a person not wearing a mask in the same image? How can you classify them from one another? You could use a multi-label classifier that can distinguish both the objects from one another, but you still don’t know which ones. This is where Image Localization comes in as it identifies the location of the object in the image and returns a bounding box identifying the object(s) in the image.</p><blockquote>Object Detection = Multi-Label Image Classifier + Image Localization</blockquote><p>You can make your own classes for your model to detect, like a watch or a bracelet or a mask, but you will need hundreds of labelled images to train your model. But don’t worry too much about it now as I will go over it in this article.</p><p>This technology has many real-world applications like video surveillance or image retrieval, with facial detection being one of the most used domains. It can also be used at traffic lights for pedestrian detection to better direct traffic or even help the blind walk. As you can see, the possibilities are endless, which makes it all the more exciting!</p><h3>What is SSD-Mobilenet? And How does it work? 💭</h3><p>The Single Shot Multibox Detector (SSD) is a single convolution neural network mainly designed for object detection in real-time. It learns to predict bounding box locations surrounding the object. It classifies the object in just a single shot, as opposed to R-CNNs that use a region proposal network to create the bounding boxes that are later used to classify objects. Therefore, this model can be trained to end and consists of MobileNet architecture, followed by many other convolution layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1QgbAgrWg88B0hIO.jpeg" /><figcaption>SSD makes 2 predictions of separate classes from a single image by picking the class with the highest score for the bounded object, retaining a class of ‘0’ for the non-bounded objects (Source: <a href="https://jonathan-hui.medium.com/about">Jonathan Hui</a>)</figcaption></figure><p>This speeds up the process drastically, but the model takes a hit when it comes to accuracy. And the SSD model includes a few improvements like multi-scale features and default boxes, which allows it to match the R-CNN’s accuracy as it uses lower resolution images. As shown in the image below, it achieves the real-time processing speed with more than 50 FPS in the best case scenario than the R-CNN and, in some cases, even beats the accuracy of R-CNN. Accuracy is measured as the mAP, which represents the precision of the predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mdgemxIXZIx6TfKQ.png" /><figcaption>Performance Comparison between SSD and other object detection models (Source: <a href="https://arxiv.org/pdf/1512.02325.pdf">Cornell University</a>)</figcaption></figure><p>Although this model is high-speed and accurate, this framework&#39;s biggest drawback would be that the performance is directly proportional to object sizes, meaning it is more difficult detecting smaller objects. The reasoning for this is because small objects may sometimes lack information for the deeper layers of the neural network to make a detection. But there are many techniques like data augmentation to crop, resize and play around with the images. This is why utilizing a higher resolution for the input images provides better results are there is more data in the images, more pixels to play around with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mb0Rqh5bgv64-AOrSdZHQw.png" /><figcaption>SSD Mobilenet Architecture (Source: <a href="https://arxiv.org/abs/1904.09021">Cornell University</a>)</figcaption></figure><p>The majority of the SSD network is controlled by the backbone network, which would be MobileNet, another network architecture comprising of special class convolutional neural models that are more lightweight in terms of the # of parameters and computational complexity. Additionally, the width and resolution can be explicitly inputted, thereby controlling the # of input and output channels of the convolutional layers while also manipulating the image resolution (height and width). This is directly correlated to the latency vs accuracy of the network, which depends on what the user requires from the model.</p><p>A convolutional layer is a matrix applied to images that perform a mathematical operation on the individual pixels to produce new pixels that are then passed as the input for the next layer and so on until the network&#39;s end is reached. The last layer is a single integer that turns the image output into a numerical class prediction that corresponds to an object we are trying to predict. For example, if ‘1’ is associated with a cat, the prediction of class ‘1’ would be a cat, whereas ‘0’ would be unknown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/0*4FQNdzvWtzc_SR4l.gif" /><figcaption>An example of a data input going through a convolutional layer that returns an output after applying complex mathematical operations (Source: <a href="https://analyticsindiamag.com/">Analytics India</a>)</figcaption></figure><p>The SSD comprises 6 layers making 8732 predictions and uses most of those predictions to predict what the object is finally.</p><p>Integrating MobileNet into the SSD framework opens the doors to limitless possibility since it is not that resource-heavy can run on low-end devices. It is smartphones or laptops that, too, in real-time R-CNN&#39;s struggle with.</p><h3>Time to Start Building Our Mask Detector 🔨</h3><p>Now that you know how everything works behind the scenes let’s get to actually implementing this. All of the code can be found in my GitHub repository, which you can find <a href="https://github.com/ZakiRangwala/Mask-Detector">here</a>.</p><p>To get this working, install Anaconda Python 3.7.4 for <a href="https://repo.anaconda.com/archive/Anaconda2-2019.10-Windows-x86_64.exe">Windows</a>, <a href="https://repo.anaconda.com/archive/Anaconda2-2019.10-MacOSX-x86_64.sh">Mac </a>or <a href="https://repo.anaconda.com/archive/Anaconda2-2019.10-Linux-x86_64.sh">Linux</a>. Then for windows, install <a href="https://go.microsoft.com/fwlink/?LinkId=691126">Visual Studio C++ 2015</a>, which you will need to compile Tensorflow. If you have a dedicated GPU in your system, install <a href="https://developer.nvidia.com/cuda-10.1-download-archive-base">Cuda </a>and then <a href="https://developer.nvidia.com/rdp/cudnn-download">Cudnn</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TqEA1QFfN5NtERvqQdHuRw.png" /><figcaption>Required Dependencies, [Left] Python, [Centre] Visual Studio C++, [Right] Tensorflow</figcaption></figure><p>We will be using the <a href="https://github.com/tensorflow/models">Tensorflow Object Detection API</a>, a framework that utilizes a deep learning network to solve object detection problems. <a href="https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html">Use this guide</a> as a reference if you have any issues, as it helped me a lot.</p><p>Next, create a folder in your directory and open it up in the code editor of your choice and create your virtual python environment using the command: <strong>conda create -n name_of_your_choice pip python 3.7</strong></p><p>Then activate the virtual environment using the command: <strong>conda activate tensorflow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJD7hegatdYHnaPsakF19Q.png" /><figcaption>Create your virtual environment [left] and activate the environment [right]</figcaption></figure><p>Then clone my mask detector repository using the command: <strong>git clone </strong><a href="https://github.com/ZakiRangwala/Mask-Detector.git"><strong>https://github.com/ZakiRangwala/Mask-Detector.git</strong></a></p><p>After that, install all the required dependencies and modules by first entering the mask detector repository using: <strong>cd mask-detector/tensorflow</strong> and then <strong>pip install tensorflow==2.3.1</strong> followed by <strong>pip install opencv-python.</strong></p><p>Verify your installation using the command : <strong>python -c “import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Enkc7WcHcvxfBBO6HJRDbQ.png" /><figcaption>Your output should be something like this.</figcaption></figure><h4>Installing Tensorflow Object Detection API 💻</h4><p>We will install the Tensorflow Object Detection API from the Tensorflow model garden by <strong>cd </strong>into the <strong>Tensorflow-Models </strong>directory and using the command <strong>git clone </strong><a href="https://github.com/tensorflow/models"><strong>https://github.com/tensorflow/models</strong></a><strong> </strong>to install all the models. You will now see a new folder inside tensorflow-models called <strong>models</strong> containing tons of different models.</p><p>We will now need to install Protobuf, Google’s language-neutral compiler, which you get from their <a href="https://github.com/protocolbuffers/protobuf/releases">releases pages</a> for <a href="https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip">Linux</a>, <a href="https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-win64.zip">Windows </a>or <a href="https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-osx-x86_64.zip">Mac</a>. Then extract the contents of the file and add it to the directory of your choice, e.g. <strong>C:\Program Files\Google Protobuf</strong>, then add this path to your environment variables and <strong>cd </strong>into <strong>models/research</strong> and use the command: <strong>protoc object_detection/protos/*.proto — python_out=.</strong></p><p>Before we install the needed dependencies for the object detection, however, we need to install the COCO API using <strong>pycocotools</strong>, run the commands: <strong>pip install cython </strong>and <strong>pip install git+</strong><a href="https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI"><strong>https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI</strong></a></p><p>Finally, <strong>cd </strong>inside <strong>object_detection/packages/tf2</strong> and copy the script, <strong>setup.py</strong> into <strong>Tensorflow\models\research. </strong>Then run the command <strong>python -m pip install . </strong>To install the required dependencies.</p><p>Test your installation from within <strong>Tensorflow\models\research</strong> using the command: <strong>python object_detection/builders/model_builder_tf2_test.py</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6Qs5BN5Je7n_kAXyEmFIw.png" /><figcaption>Your output should be something like this.</figcaption></figure><h4><strong>Install Label Image 🌆</strong></h4><p>Now install the tool, <a href="https://github.com/tzutalin/labelImg.git">LabelImg</a> to help annotate our images by <strong>cd </strong>into <strong>label-image</strong> and using the command <strong>git clone </strong><a href="https://github.com/tzutalin/labelImg.git"><strong>https://github.com/tzutalin/labelImg.git</strong></a></p><p>There should be a new folder created inside the directory. <strong>Cd </strong>into <strong>labelImg</strong> and use the command <strong>conda install pyqt=5 </strong>and <strong>conda install -c anaconda lxml</strong></p><p>After that, all that is left is setting up the binaries, which can be done using the command, <strong>pyrcc5 -o resources.py resources.qrc</strong></p><p>Lastly, navigate to the <strong>LabelImg </strong>directory and move the <strong>resources.py </strong>and <strong>resources.qrc</strong> files into the <strong>lib </strong>folder like so</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzuJ3OloxvScucCJZ_Ze_g.png" /><figcaption>Move the resource files into the libs folder to finish setting up the program.</figcaption></figure><h4><strong>Get Your Dataset of Images 📷</strong></h4><p>With all the hard work out of the way, it’s time to get to the fun stuff. It’s time actually to collect some pictures. You can either try to click them yourself if you are very enthusiastic or get a dataset from anywhere online. If you choose to get a dataset from the web, I suggest <a href="https://www.kaggle.com/wobotintelligence/face-mask-detection-dataset">using this dataset from Kaggle</a>.</p><p>Whereas, if you choose to take your own pictures, make sure to do so in bright lighting, take them from different angles, and it is recommended to capture them with different people talking about the same # of pictures with a mask to the # of pictures without one. To have a stronger confidence score from your model, make sure to have a dataset of at least 300+ images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOP13yAfv7RUIqCtbS6Qkw.png" /><figcaption>My dataset of images consists of a mixture of images from the web and some captured by myself.</figcaption></figure><p>Once you have your dataset of images, navigate to the <strong>labelImg </strong>directory using the command <strong>cd </strong>and <strong>labelImg </strong>and run the Graphical User Interface (GUI) using the command <strong>python labelImg.py</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QT6KP1GxnlSxrHZN1Xl15Q.png" /><figcaption>Your LabelImg GUI Interface should look something like this.</figcaption></figure><p>Then click the <strong>Open Dir </strong>button, navigate the folder where your pictures are stored, and then click the <strong>Save Dir </strong>button to save the images in the same folder.</p><p>Make sure to keep your annotation format as PascalVOC, a data format for image classification and object detection that, unlike COCO, creates a new annotation for every image.</p><p>Then begin, label all the images by pressing ‘<strong>W</strong>’ and then creating a bounding box around the mask and labelling it accordingly. The two classes would be <strong>Mask </strong>and <strong>NoMask</strong>. Then click ‘<strong>D</strong>’ to move forward or ‘<strong>S</strong>’ to move backward. This can be some tedious work and take a long time, but the model must be trained based on how the images are labelled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-rf73QqdlozH2Ox1Ahk-OQ.gif" /><figcaption>Label Images with Classes ‘Mask’ or ‘NoMask’ depending on the image; make sure to be precise.</figcaption></figure><p>Once all the images are labelled, your directory should have double the files as it did before as each image now has an annotation (.xml) file. Now move the images accordingly into the <strong>train </strong>and <strong>test </strong>folder, which can be found inside <strong>Tensorflow/workspace/images. </strong>Make sure to put some pictures with masks and without masks in each folder and put a little more for training. Try something like a 60/40 ratio, as the model will be evaluated based on the training data&#39;s accuracy. This is known as <strong>supervised learning, </strong>as the algorithm is given a labelled dataset to learn from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PP-oj5RbgwtJleHpG2K9tA.png" /><figcaption>My labelled dataset in my testing and training folders</figcaption></figure><h4>Making our Python Script 📄</h4><p>Now create a new file in <strong>Mask-Detector</strong> called <strong>detect.py, </strong>and let’s begin importing the libraries that we will be using.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdc4ad729f71b9a7aa2e39b4aaa45b4d/href">https://medium.com/media/cdc4ad729f71b9a7aa2e39b4aaa45b4d/href</a></iframe><p>After that, let’s set up our environment paths, so they are easier to reference throughout the program.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9dbef8df05cffb17521cb33fedbd5daa/href">https://medium.com/media/9dbef8df05cffb17521cb33fedbd5daa/href</a></iframe><blockquote>Note : You can already find files in the <strong>Tensorflow/workspace/annotations </strong>folder as well as the <strong>Tensorflow/workspace/pre-trained-models </strong>folder which contains my training data in case you are too lazy to label your images and train your own model.</blockquote><p>The next thing you want to do is create a function that will construct a label map containing the class name each image annotation is associated with.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a985a4bd27a576d17a5995f20871a6c5/href">https://medium.com/media/a985a4bd27a576d17a5995f20871a6c5/href</a></iframe><p>Run this function by calling the method: <strong>construct_label_map() </strong>to find a new file in <strong>Tensorflow/workspace/annotations</strong> called label_map.pbtxt containing your classes, which in our case would be “<strong>Mask</strong>” and “<strong>NoMask</strong>” assuming that what you annotated your images using the <strong>LabelImg</strong> tool.</p><p>Now you want to add a function that can merge all the PascalVOC .XML files into one CSV file for the training and testing data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34b27a02e79bfe02285c779065b3eeed/href">https://medium.com/media/34b27a02e79bfe02285c779065b3eeed/href</a></iframe><p>You can call this function by using the command convert() and should find 2 new files under <strong>Tensorflow/workspace/annotations</strong> named <strong>testlabels.csv </strong>and <strong>trainlabels.csv</strong></p><p>Now it’s time to create the TF record (Tensorflow Record) used to train the model.</p><p>To do so, use the commands :</p><pre><strong># Train Record<br></strong>python Tensorflow/scripts/generate_tfrecord.py -x Tensorflow/workspace/images/train -l Tensorflow/workspace/annotations/label_map.pbtxt -o Tensorflow/workspace/annotations/train.record</pre><pre><strong># Test Record<br></strong>python Tensorflow/scripts/generate_tfrecord.py -x Tensorflow/workspace/images/test -l Tensorflow/workspace/annotations/label_map.pbtxt -o Tensorflow/workspace/annotations/test.record</pre><p>We are almost finished; all we need to do now is download a pre-trained model from the Tensorflow Model, which you can find <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md">here</a>. The repository should look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*9lneCFBfA9AOc9T3dBQ-kQ.png" /><figcaption>There are a variety of models that you can choose from. Make sure to keep speed and accuracy in mind.</figcaption></figure><p>You don’t need to download a pre-trained model as I already included one in my repository. But if you download a pre-trained model, make sure to copy the <strong>pipeline.config </strong>file into the <strong>Tensorflow/workspace/models</strong> directory and inside a new folder called <strong>my_ssd_mobnet </strong>as that’s the repository where our training will take place.</p><p>Now before we train, let’s modify our <strong>pipeline. config</strong> file like so</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd4fb1ee49a317f2547b4793f8137f1c/href">https://medium.com/media/bd4fb1ee49a317f2547b4793f8137f1c/href</a></iframe><p>Make sure to keep “num_classes” as 2 since we are only training our dataset with as mask vs, without a mask; you can alter the “batch_size” variable depending on how much computing power you have; 32 is recommended.</p><p>Now we are ready to train our model; all we have to do is run the command.</p><pre><strong># Train Model</strong><br>python Tensorflow/tensorflow-models/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/models/my_ssd_mobnet/pipeline.config --num_train_steps=5000</pre><blockquote>Note : The number of training steps (num_train_steps) is currently set to 5000 but can be increased to increase accuracy but will take longer to train</blockquote><p>Your model should typically take <strong>3 to 5 hours</strong> to train, so I tend to run it longer overnight to increase efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DETxZ9U_EuCCLHCAKb-YsA.png" /><figcaption>Your output should look something like that, and you should have new checkpoints inside the <strong>Tensorflow/workspace/models</strong> folder.</figcaption></figure><h4>Make Real-Time Predictions 🟥</h4><p>Once your model is done training, you are ready to start making detections. What we have to first is load up our model like so :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab89d6d603288ae94b382cfc51281fa6/href">https://medium.com/media/ab89d6d603288ae94b382cfc51281fa6/href</a></iframe><p>Make sure where it says “<strong>ckpt.restore(os.path.join(CHECKPOINT_PATH, ‘ckpt-9’)).expect_partial()</strong>”<strong> </strong>that you input your latest checkpoint where it says ‘<strong>ckpt-9</strong>’, you can find them in <strong>Tensorflow/workspace/models</strong></p><h4>Detection Function 🔍</h4><p>Now is that time we have all been waiting for, putting all our hard work to the test. We need to create a function that takes in an image, loads the model, predicts what’s in the image by parsing into our neural network and returning a class 1 or 2, where 1 is “Mask,” and 2 is “NoMask.”</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90bf320d0e43b80f31b3f00f30e08fa9/href">https://medium.com/media/90bf320d0e43b80f31b3f00f30e08fa9/href</a></iframe><p>Now let’s check if our codes work my making another function that converts our image into a tensor, which is a matrix consisting of our image’s pixels that, when inputted in the model, will be manipulated by one of the convolutions layers through complex mathematical operations and returned as the input for the next layer until it reaches the last layer that would return a class. If the class is 0, then the object is unknown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LsS61nqFVN2GiF00.png" /><figcaption>SSD model architecture comprised of many convolutional layers (Source: <a href="http://lilianweng.github.io/">Lilian Weng</a>)</figcaption></figure><p>Once we run the detection function, we should get the results giving us the number of detections, the object&#39;s location, the confidence score and the detection class itself. We can then draw labels and bounding boxes based on the coordinates returned from the function and use OpenCV to read the image and display the output with the detections made.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98e6b9948820cd183ced339e9e74655d/href">https://medium.com/media/98e6b9948820cd183ced339e9e74655d/href</a></iframe><p>You can always edit the <strong>“min_score_thresh”</strong> parameter to show detections depending on what your confidence score already is, which depends on how accurate your model is.</p><p>You try checking if the models work by running the model using <strong>check(‘Tensorflow/workspace/images/check/test_case_one.jpg’)</strong> and seeing the results pop up in the <strong>results</strong> folder. I have already added a few examples. Feel free to add more!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJOJ5NALwW2ImZEazqhP2g.gif" /><figcaption>Mask Detection Demo -&gt; Inputting an image into the model.</figcaption></figure><p>As you can see, the model works flawlessly when inputting a picture, but how does it perform when asking to make detections in real-time? Let’s find out!</p><h4>Real-Time Prediction 🧔</h4><p>For making a prediction, the function inputs the image into the model that returns various elements like the class, confidence score and even bounding boxes.</p><p>The process is relatively the same when detecting objects in real-time. Still, we set up a video stream and input every single frame into the image, getting a detection and then labelling the video in real-time.</p><p>To do this, we are using OpenCV, which is an open-source library; SSD shines when it comes to real-time detection as it is really lightweight and fast, making this possible as it provides speeds up to 50 FPS, which is pretty amazing taking in everything that is happening under the hood.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf602e6c3b7d1c7b4273f8b75ca59076/href">https://medium.com/media/bf602e6c3b7d1c7b4273f8b75ca59076/href</a></iframe><p>And now, with real-time prediction working successfully, we are all done! You have successfully built your own custom object detection model and have learned how everything works behind the scenes. If you would like to get the source code for all the methods and functions that were outlined in this article, you can find it in my GitHub repository, for which you can find the link down below :</p><p><a href="https://github.com/ZakiRangwala/Mask-Detector">ZakiRangwala/Mask-Detector</a></p><h4>Limitations 😢</h4><p>As you can tell, this application has some limitations, one of them being how the model performance is directly proportionate to object size and image quality, so make sure to have good high-definition images for your dataset and label them precisely and accurately.</p><p>Furthermore, although it boasts running 50 FPS, the real-time prediction video stream seems to be a bit slower, which may be because of the specs of the device you are running the model on. To improve performance, try inputting a smaller video frame and stay in a bright environment!</p><h4>Next Steps 👣</h4><p>Although this project exceeded my expectations of what it would turn out like, I find it useful and helpful in real-world scenarios. But what would make it even more unique and useful would be to add new classes determining if a person is protected or not, which, judging by the facial landmarks, the mask covers. This would help ensure that people follow the laws and regulations set by authorities all over the world to keep everyone safe.</p><p>I could also add more images to my dataset to make my model even more accurate and modify a few parameters to make real-time detection more smooth and efficient.</p><p>If you enjoyed this article and it helped you out, please leave a clap, and if you have any questions, you could always leave a comment down below or, even better, email me at <a href="/service/mailto:zakirangwala@gmail.com">zakirangwala@gmail.com</a>.</p><p>If you would like to learn more about me and the work I do, visit my website at <a href="http://zakirangwala.com/">zakirangwala.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b484a5a6de0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/real-time-face-mask-detector-8b484a5a6de0">Real-Time Face Mask Detector 😷</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build Your AI-Powered Virtual Assistant ]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-build-your-ai-powered-virtual-assistant-8ce474ab200e?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ce474ab200e</guid>
            <category><![CDATA[virtual-assistant]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 17:06:48 GMT</pubDate>
            <atom:updated>2020-09-24T19:13:11.972Z</atom:updated>
            <content:encoded><![CDATA[<h4>Have you wondered how to mimic popular virtual assistants such as Google, Siri, Alexa or even better, Iron Man’s J.A.R.V.I.S?</h4><p>Earlier this year, I stumbled open this fascinating article on how Facebook’s Co-Founder and CEO, Mark Zuckerberg, built an AI assistant like Jarvis to virtually automate his home and become one step closer being the real-life Iron Man.</p><p>If you would like to learn more, check out this article from Mark :</p><p><a href="https://www.facebook.com/notes/mark-zuckerberg/building-jarvis/10154361492931634">Facebook</a></p><p>So, that really inspired me to do the same, and although I had been holding off on it, I finally got started and let me tell you, it’s incredible!!</p><p>See, the advantage of making your Virtual Assistant is that you can customize and personalize it to your liking making it tailored towards your hobbies and interests, resulting in a badass AI like J.A.R.V.I.S.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*M4oY8CFmAd_OmBaW.gif" /><figcaption>Next Step: Make the suit 🚀 (Source: Giphy)</figcaption></figure><h3>What is a Virtual Assistant?🤔</h3><p>If you are not already aware, a virtual assistant is essentially a software agent capable of performing tasks or services based on an individual’s queries, commands or questions. It’s a set of programs that can execute functions that the user would typically do. But if it can do what a human would typically do, doesn’t it make it an AI? <em>Not quite</em></p><p>Although <strong>Artificial Intelligence</strong> refers to the <strong>simulation of human intelligence</strong> and is programmed to mimic our actions and think like us, what we will be making can be considered as an <strong>AI, </strong>but many would disagree. So, let’s not get too ahead of ourselves, as we’ll return to this topic near the end of the article.</p><p>There are different kinds of assistants varying from industries like social media, marketing etc. Think like <strong>Google Assistant, Alexa, Siri or Cortona</strong>. It’s not a new thing as these assistants have been on the market for years, but the rapid innovation in just a few recent years has been astounding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*7BTWBc3IG-P9GxVt.gif" /><figcaption>Apple’s HomePod, Amazon Echo and Google Home are some of the virtual assistant equipped speakers you might be used to be seeing (Source: New York Times)</figcaption></figure><p>This is since we are learning how to leverage <strong>machine learning algorithms, </strong>which, although make these machines more prone to making mistakes, allows the machine to understand and improve over time as the machine is continuously training itself to achieve the goal of becoming <strong>artificially intelligent</strong> eventually.</p><p>In simpler words, <strong>machine learning algorithms help cut down the code</strong> instead of <strong>explicitly programming</strong> each keyword a user would say that could trigger an action as it would just learn over time.</p><p>After reading all of this, you might think <strong>WOW!</strong> that’s amazing and might go order one of those smart speakers. But despite the inherent <strong>“wow”</strong> factor that comes with using these assistants, you can find that these assistants <strong>don’t cater to your specific needs.</strong></p><p>So what can be done to make them more customizable and personalizable?</p><p>Well, you’re in luck because it’s relatively easy to learn how to build your own, and I’ll be walking you right through it. So without further ado :</p><h3>Building a Virtual Assistant 🔨</h3><p>For this project, we will be using Python, and so you will need a recent version installed (<strong>I recommend 3.7 or above</strong>). If not, you can <a href="https://www.python.org/">download it from here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*E54TtndT6ZOt4D6g.png" /><figcaption>When installing, make sure to add Python to PATH.</figcaption></figure><p>Before installing anything packages, I suggest making a python environment in the folder that we will be programming the assistant.</p><p>To do so, type the command py -m venv envin the terminal and wait for it to make the virtual environment. This is recommended, so any of the packages you install won’t tamper with the python interpreter used globally on your machine but just the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4HMzjxRo_JOOWNqKpDlgA.png" /><figcaption>To activate the virtual environment, type <strong>‘env\Scripts\activate.bat’ </strong>and your screen should look like this.</figcaption></figure><p>Once we have done that, install the following packages using the <strong>‘pip install’ </strong>command in your terminal:</p><pre>pip install pyttsx3 <br>pip install pypiwin32<br>pip install speechRecognition<br>pip install PyAudio</pre><p>These libraries help you and the machine communicate with one another by converting text-to-speech and recognizing what the user is saying. If you have a problem with installing the last library, <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio">get it from here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*nhLlend3UtTubQC2_uDOqg.png" /><figcaption>PyAudio Module</figcaption></figure><p>Make sure to get the .whl file built for the python version you have installed on your computer, which you can check by typing <strong>‘python’</strong> in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtJ3B0It41NK-W54fM0Lhg.png" /><figcaption>Mine, for example, is Python 3.8.5 32 bit, so I would get the ‘PyAudio‑0.2.11‑cp38‑cp38‑win32.whl’ file.</figcaption></figure><p>Then you would navigate to where the .whl is installed use the <strong>‘pip install’ </strong>command on the absolute location of the file as it would build it from source. For example : ‘<strong>pip install C:\Users\USER\Downloads\PyAudio-0.2.11-cp38-cp38-win32.whl’</strong></p><p>Once all those packages are installed, we will make the <strong>‘speak ’</strong> function like so</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f58985962de52308430428bab7416438/href">https://medium.com/media/f58985962de52308430428bab7416438/href</a></iframe><p>In this code fragment, we are initializing our Text-to-speech engine and calling in the ‘speak’ function to say any audio that is parsed in. VoiceID helps us determine what voice we would like our assistant to have, voices[0].id refers to male while voices[1].id refers to a female.</p><p>You can test it by calling the function like speak(&#39;Hello World&#39;) and running the code, this should result in the machine saying ‘Hello World.’</p><p>If that doesn’t work, then you need to use a different module. Do so by using the commands pip install gtts and pip install playsound in the terminal and make the new speech function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba02dd1bc895b9a339584b5ac7b28392/href">https://medium.com/media/ba02dd1bc895b9a339584b5ac7b28392/href</a></iframe><p>Once the <strong>speech </strong>function is ready, we will introduce the <strong>listen </strong>function, which allows the machine to recognize what you are saying by using the <strong>Google Speech API</strong>.</p><p>Install the module using pip install speechRecognition and create an object that will take the microphone input from the user. Adjust for ambient sound and give enough time to the user to speak and finally save the resulting text recognized by the machine into a variable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35310c59f2cebd298187f02b90db0953/href">https://medium.com/media/35310c59f2cebd298187f02b90db0953/href</a></iframe><p>Now that we have the foundation set, the possibilities are endless; you can incorporate any APIs you would like, make a mini-program or even control your smart home. I’ll walk you through some of them like retrieving game scores, getting weather forecasts, fetching movie ratings and even stock prices.</p><p><a href="https://www.datadriveninvestor.com/2020/09/15/a-college-student-used-a-language-generating-ai-tool-to-create-a-viral-blog-post/">A College Student Used A Language Generating AI Tool To Create A Viral Blog Post | DataDrivenInvestor</a></p><h4>Greet Function ⌚</h4><p>We will be creating a greet function where the program will greet you according to the time: Morning -&gt; ‘‘Good Morning’’; Afternoon -&gt; “Good Afternoon” like shown down below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5b7bf162aeab1482c1d45c46829a4310/href">https://medium.com/media/5b7bf162aeab1482c1d45c46829a4310/href</a></iframe><p>This function is relatively straightforward as we need to make some conditions by utilizing the built-in DateTime module that tells us the hour of the day</p><h4>Real-Time Stock Price Function 💲💲</h4><p>We will be creating a function that will tell us the real-time stock price of any stock listed in any stock exchange. We can accomplish this feat by web-scraping <strong>Yahoo Finance</strong> stock price updates. All the user has to do is specify which stock’s price they would like to retrieve. First, we need to install these modules that allow us to scrape the web pip install beautifulsoup4and pip install requests to extract any information from a webpage, which is a potent tool.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/540068f5c80abf69d4a323cad55b8f38/href">https://medium.com/media/540068f5c80abf69d4a323cad55b8f38/href</a></iframe><p>If you run this code, you should get an error as the <strong>URL </strong>variable is empty; therefore, you are scraping nothing. Now this function would work if I parsed in a URL like this: <a href="https://finance.yahoo.com/quote/MSFT?p=MSFT">https://finance.yahoo.com/quote/MSFT?p=MSFT</a></p><p>But we want to be able to find the stock price of any stock that is in the various stock exchanges all around the world, and we don’t want to hardcode each stock’s URL because that could be more than half a million variables which is very inefficient least to say time-consuming.</p><p>A way to solve this would be to make a <strong>search query </strong>function that would return the <strong>Yahoo Finance URL</strong> corresponding to the stock from which we could scrape. First, install the google module by using the command : pip install google and then making the relatively easy function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fb0557d01263b8198a29b2b1ed7fbf2/href">https://medium.com/media/1fb0557d01263b8198a29b2b1ed7fbf2/href</a></iframe><p>Then you can test, by first substituting something like <em>‘Tesla stock price yahoo finance’ </em>into the google_query function and substituting the <strong>URL </strong>with the first link returned by the function. After that when you execute the <strong>check_price </strong>function you should get an output of the legal company name, stock price and currency of stock.</p><p>URL = google_query(&#39;Tesla stock price yahoo finance&#39;)[0]</p><p>If it doesn’t work, don’t worry. I will embed all the code we went over today near the conclusion of the article. Meanwhile, let’s move onto the:</p><h4>Weather Function 🌤</h4><p>To create the weather function, we will need the location of the user. Now you can prompt the user to say which city they reside in, but I wanted the program to be seamless, so I find the user’s area by using the user’s IP address.</p><blockquote>Keep in mind this won’t work if the user is using a VPN as then it would get the IP address of the VPN Server.</blockquote><p>Since there might be cases where this doesn’t work, we can also find the weather readings of any city in the world by just using its name like ‘Weather in Calabasas.’</p><p>First, to get the location using the user’s IP Address, we will be using the function <strong>get_location, </strong>which scrapes the output from <a href="http://iplocation.com/">iplocation.com</a>. We should already have the libraries needed from the previous web scraping function, but if you don’t, then pip install beautifulsoupand pip install requests</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/457ec7368c01b0d5f5f5d374667b2ac0/href">https://medium.com/media/457ec7368c01b0d5f5f5d374667b2ac0/href</a></iframe><p>Now to get the weather, we will be using the <a href="https://openweathermap.org/api">OpenWeatherMap API</a> for which you would need to sign up to get your API key(s). I am using the Free plan where you get up to a million calls a month, which is plenty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6okoZQmUKs3tjrHHlNkj8A.png" /><figcaption>You should generate an API Key for the Virtual Assistant and make sure to keep it safe.</figcaption></figure><p>After that, you would make a new python file called <strong>config.py</strong> and store your API key there like so :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ig7dNX7msATxahpqRyWemw.png" /><figcaption>Make a config.py file that will hold all API keys, passwords and secrets to prevent it from getting exposed and exploited by anyone if you plan on uploading your code. (P.S: Make sure to add config.py in the .gitignore file)</figcaption></figure><p>Lastly, all we need to do is write a simple method to make an API call to the OpenWeatherMap API and receive the weather information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab5360ddb819622215f09217fbdb090c/href">https://medium.com/media/ab5360ddb819622215f09217fbdb090c/href</a></iframe><p>Test your code by first getting the latitude and longitude and then parsing it in the weather function like so :</p><pre>city,country,latitude, longitude = get_location()<br>print(weather(latitude, longitude))</pre><p>You should receive something like a dictionary with various values such as coordinates, weather, timezone etc.</p><h4>Movie Rating Function 🎬</h4><p>This is by far the most used function out of my virtual assistant and the most beneficial one as well as I always tend to need reviews of a Tv Show or Movie before committing to it. To use this function, we will need an important module that you can get like this : pip install IMDbPY</p><p>This package is helpful in retrieving any movie or tv show in the IMDB database.</p><p>Then we create a method to make a google query of the movie you want to search to see if it exists or not in the IMDB database. Then we return the right URL from where we can scrape the title and year of the movie for reference afterwards.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/579a7f7ea8921ef9f1d78c5ccbafd259/href">https://medium.com/media/579a7f7ea8921ef9f1d78c5ccbafd259/href</a></iframe><p>Then we would also like to scrape the rotten tomato score, which is a useful metric to determine what the critics and people think about a film.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9f2eac559cbe3f1e233f04681db9ff8/href">https://medium.com/media/c9f2eac559cbe3f1e233f04681db9ff8/href</a></iframe><p>Finally, we need to add a few lines of code that can search the IMDB database for all the information it has on the movie as well as fetch the rotten tomato score. For this example, I will be using the film: <strong>The Karate Kid (1984)</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5a516099e65a15cbadfeffd0b7f2c68/href">https://medium.com/media/f5a516099e65a15cbadfeffd0b7f2c68/href</a></iframe><h4>Sports Function 🏀</h4><p>For this function, we will be using <strong>sports.py,</strong> a package that provides up to date sports scores for several sports. To install : pip install sports.py</p><p>All we need to do now is create a straightforward method to retrieve game scores, as shown down below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b593d23a3b888b3ab0efc35adf74a12/href">https://medium.com/media/0b593d23a3b888b3ab0efc35adf74a12/href</a></iframe><h4>Final: The Send E-Mail Function ✉</h4><p>This function might arguably be the most useful function on this list as it would be handy to talk out the email and have your assistant send it. Also, it is the only function on this list to my knowledge that only a few of the assistants support. To send emails, python has a built-in module called <strong>smtplib </strong>like the server Gmail uses.<strong> SMTP or (Simple Mail Transfer Protocol)</strong> is a protocol used to communicate with mail servers from external ones. It’s a delivery protocol meaning you can’t receive an email with it but can only deliver. For receiving, you can implement the <strong>IMAP or (Internet Message Access Protocol)</strong> yourself in your assistant script as I won’t be going through it in this article.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8f826860b68a1eaead6293acfe9cc7c/href">https://medium.com/media/b8f826860b68a1eaead6293acfe9cc7c/href</a></iframe><blockquote>If you try to run this method you will encounter an error as Gmail imposes restricitons on SMTP connections like this, so you have to authenticate yourself. Notice how the script above has fields such as <strong>config.email</strong> and <strong>config.password</strong> which we will be making right now</blockquote><p>There are two steps: <strong>allowing access to less secure apps</strong> (Not recommended) and <strong>creating an app password </strong>(Recommended)<strong>.</strong></p><p>I prefer the latter. To create an app password, enable<strong> 2-Step Verification</strong> for your Google Account :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uZOcQoeeg-1-lwfBQWKUA.png" /><figcaption>Enable 2-Step Verification to use App passwords</figcaption></figure><p>Then, click on <strong>App passwords </strong>and select what app you need the password for and what device is this password going to be used on. In our case, the app is <strong>Mail,</strong> and the device depends on if you are using a Mac or Windows laptop, in my case <strong>Windows</strong>. Then click generate, and you should be given an app password. Please make a note of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMFnz7MUTz4x9wtPhygDMA.png" /><figcaption>Please copy this password and paste it into config.py under a variable <strong>password.</strong></figcaption></figure><pre>#Then Assign the email and password in config.py<br>email - &#39;your_email_for_which_you_made_the_password@gmail.com&#39;<br>password - &#39;App_Password_that_you_copied&#39;</pre><p>Now to test, call the method and parse in the subject, body and the person you want to send the email to, try yourself first. You should then receive an email consisting of the same information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-QIVlNR_sMceIUw635yUg.gif" /><figcaption>Demo for how the mail function should work</figcaption></figure><h3>Putting it all together💻</h3><p>Now that we have all our methods, we need to put them together. First, let’s create the main method and add <strong>keywords</strong> upon which each process will run. Then determine a keyword to break the loop and end the program.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a49494251831f1387e73820e5588011/href">https://medium.com/media/0a49494251831f1387e73820e5588011/href</a></iframe><p>Conditions for all methods are presented above. Feel free to add any logic needed to call functions inside the requirements.</p><p>The gist above contains the main method for the program that, once you run, should be indistinguishable from <strong>Alexa, Siri and Google Assistant.</strong> This is because we have officially created our very own Virtual Assistant that you can keep on adding features too and iterating on overtime.</p><blockquote>If you would like to get the source code for all the methods and functions that were outlined in this article, <a href="https://drive.google.com/drive/folders/1h9xWbN0JMfFd_rleudwUWLkB8vZbsI6z?usp=sharing">you can get it here</a></blockquote><p>There are many functions like the <strong>internet speed test</strong> and <strong>Spotify integration</strong> that I left out that I would’ve loved to include, but then again, we would we here forever. So if you would like to check out the main program consisting all the source code, check out the link below :</p><p><a href="https://github.com/ZakiRangwala/Virtual_Assistant">ZakiRangwala/Virtual_Assistant</a></p><h3>Can this be considered an AI?🧠</h3><p>As we wrap up, I would like to touch on the fact if this virtual assistant can be classified as an AI or not as a lot of people would argue that it’s not an AI as the machine when learning by itself is far off from following explicitly coded if-else statements which we did. But if we look at the fundamental level,<strong> the sole purpose of an AI is to perform humane tasks with some or even more significant as humans. </strong>Therefore, I would say that our virtual assistant is artificially intelligent and, consequently, an AI but is not a very good example of an AI. There is no learning taking place but rather just doing what it’s being told, making it just <strong>‘intelligent.’</strong></p><h3>Next Steps 👣</h3><p>I am currently working on implementing <strong>Natural Language Processing (NLP) </strong>to make my assistant smarter and understand and learn over time. <strong>Speech Recognition</strong> is not that different from <strong>Natural Language Processing. </strong>We used in this program is only a technology that enables the computer to identify and interpret words or phrases and is part of a field called <strong>computational linguistics.</strong></p><p>Whereas, <strong>NLP</strong> is a branch of pure artificial intelligence that tries to understand what the user means instead of just converting what the user says to text. This will make speech recognition less time consuming and will exponentially reduce the amount of if-else statements we have in our program. It would understand what the user means from a large number of training examples.</p><p>After all, you could have a billion if-else statements, but leveraging this technology is much more efficient and opens up the gateway to limitless opportunities. How do you think Google Assistant started?🧐</p><p>If you enjoyed this article and it helped you out, please leave a clap, and if you have any questions, you could always leave a comment down below or even better, email me at <a href="/service/mailto:zakirangwala@gmail.com">zakirangwala@gmail.com</a>.</p><p>If you would like to learn more about me and the work I do, visit my website at <a href="http://zakirangwala.com/">zakirangwala.com</a></p><p><strong>Gain Access to Expert View — </strong><a href="https://datadriveninvestor.com/ddi-intel"><strong>Subscribe to DDI Intel</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ce474ab200e" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-build-your-ai-powered-virtual-assistant-8ce474ab200e">How to Build Your AI-Powered Virtual Assistant 🎙</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cellular Agriculture: Learn About Cameron Semper’s Work In Rethinking Cultured Fish]]></title>
            <link>https://medium.com/cellular-agriculture-canada/cellular-agriculture-learn-about-cameron-sempers-work-in-rethinking-cultured-fish-61af770ede48?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/61af770ede48</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[cultured-meat]]></category>
            <category><![CDATA[seafood]]></category>
            <category><![CDATA[new-harvest]]></category>
            <category><![CDATA[cellular-agriculture]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Mon, 14 Sep 2020 15:26:18 GMT</pubDate>
            <atom:updated>2020-09-14T15:26:18.837Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Meet the New Harvest researcher working on deriving a serum-free medium for cultured seafood</strong></h4><p>Did you know that the number of companies working in the cultured meat industry has grown exponentially from a mere 5 in 2013 to more than 50 in 2019? These companies are working on producing cultured meat products racing to get it on the market. Some of the notable companies are<a href="http://www.memphismeats.com/"> Memphis Meats</a>,<a href="https://aleph-farms.com/"> Aleph Farms</a>,<a href="https://www.highersteaks.com/"> Higher Steaks</a>,<a href="https://www.mosameat.com/"> Mosa Meat</a> and many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hrsq7Hnb8ibA60A3WmyF4Q.png" /><figcaption>Companies working on commercializing cultured meat</figcaption></figure><h3>Rethinking the Status Quo 💡</h3><p>The current pandemic has increased awareness about the role that animal farming has in promoting zoonotic diseases. If you aren’t aware, a zoonotic disease is an illness that can spread from animals to humans. Therefore, having humans and animals interacting with one another in populated environments can increase the risk of transmitting these types of diseases. Although there are many unknown variables involved in the process, one way of preventing could be by reducing the human to animal interactions. Cellular agriculture can help with that as products would be produced in controlled and sterile environments reducing the interaction with any animals that can be potential carriers of diseases. Furthermore, over the next few decades, the demand for meat will increase as the global population continues to grow at an accelerated pace meaning it can lead to even more intensive animal production unless we adopt a new system. We need to act now and embrace the change if we want to avoid any more zoonotic diseases and outbreaks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wP2_GKPyBpcMRWDH" /><figcaption>Zoonotic diseases are spread between animal and people, one prime example being the current COVID-19 pandemic (Source: <a href="https://www.cdc.gov/onehealth/basics/zoonotic-diseases.html">CDC</a>)</figcaption></figure><h3>The Cultured Meat Industry🍖</h3><p>The alternative protein industry has gotten more attention after plant-based companies like<a href="https://www.beyondmeat.com/"> Beyond Meat</a> and<a href="https://impossiblefoods.com/"> Impossible Foods</a> made their products commercially available, which has built up anticipation for cultured meat companies to do the same.</p><p>However, despite the hype, cultured meat companies are still in the R&amp;D process as there are a few challenges that need to be overcome.</p><p>However, this is only for cultured meat products that are alternatives to beef or chicken products like a burger, nuggets and even steak. The hype for cultured seafood isn’t quite there yet with <a href="https://edgy.app/lab-grown-fish">six </a>companies working on culturing seafood, most notably <a href="https://www.finlessfoods.com/">Finless Foods</a> and <a href="https://www.wildtypefoods.com/">Wildtype</a> while more than <a href="https://cellbasedtech.com/lab-grown-meat-companies">thirty companies</a> are working on culturing meat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p_YQslRubHL0EiYf" /><figcaption>This graphic portrays all the groundbreaking companies working on innovating, investing and collaborating with one another to eventually enter a new world of cultured meat (Source: <a href="https://newprotein.org/">Olivia Fox Cabane/New Protein</a>)</figcaption></figure><p>Culturing meat requires lots of precision and consists of different stages such as cell harvesting, proliferation, and differentiation, where cells multiply in population and mature to become muscle tissue. For this to happen, the cells need a special solution that gives them the fuel or food to function the same they would in our body, increasing in population and specializing in the tissue. This solution is one of the main <em>“ingredients”</em> necessary during this process and is known as a <strong>growth medium</strong>. Now, if you have no idea what I am talking about and would like to learn about the science used in this process, check out my previous article :</p><p><a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-what-is-it-precisely-and-how-can-we-leverage-this-technology-ffb2986513c4">Cellular Agriculture: What is it precisely, and how can we leverage this technology? 🤔</a></p><p>Long story short, <strong>growth media </strong>are vital as they provide the food the cells need to multiply in population, so there is enough to start forming structures that make up the meat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*fkAZhD63u_-FlHKV" /><figcaption><em>Cultured Meat starts in a petri dish in an incubator. Cells are grown as monolayers in a nutritious soup (the culture medium). The red colour indicates the ph level or the acidity of the medium. (Source: Getty Images)</em></figcaption></figure><h3>Yikes 😬</h3><p>But what you don’t know is that initially, most of the companies relied on a growth medium supplement known as <strong>FBS or Fetal Bovine Serum,</strong> which is extracted by inserting a needle into the beating heart of the fetal calf. This is in itself very counterintuitive to the idea of cultured meat as an animal is still being killed in the process, which also, in fact, made obtaining FBS super expensive. The latter is another reason why companies want to get rid of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b_SCEPvSECm0ErcC.jpeg" /></figure><p>The use of FBS is a major obstacle that researchers are currently looking to innovate around, one of them being Cameron.</p><p>Even though FBS might not be the best supplement for cell culture, it contains a large number of nutritional elements and macromolecules as well as a variety of small molecules like amino acids, sugars, lipids, and hormones essential for cell growth.</p><p>The crazy part is that somehow, culturing seafood and culturing meat rely on the same <strong>Fetal Bovine Serum</strong> for growth.🤯</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*1fsfXeehE-rx7M_p9B4EiQ.jpeg" /><figcaption>Fetal Bovine Serum Extraction Process (Source: <a href="https://isctglobal.org/">ISCT</a>)</figcaption></figure><p>This is crazy as cows are terrestrial organisms, while fish are aquatic organisms. FBS’s proteins are specific for supporting calves’ development, which should lead to no reason for the serum from one being used in growing cells from the other. This would work out fine if the protein sequences of both types of cells, fish and bovine, are the same but, in reality, are surprisingly divergent. So there must be a better way to culture fish? 🤔</p><p>Well, there just might be!!</p><h3>Inside a world where Meat/Seafood products are cruelty-free 🚫</h3><p>Cameron is a postdoctoral fellow at the University of Calgary in Canada and is currently engineering an artificial environment that can allow the growth of fish cells.<a href="https://www.new-harvest.org/"> New Harvest</a> is presently supporting his research to lower entry barriers into cell-based seafood production by deriving a serum-free growth medium tailored specifically for fish cell culture. 🐡</p><p>His goal is to identify growth factors that improve performance when culturing fish cells and reduce the costs of cultured fish production, reducing our reliance on animal byproducts and saving the lives of countless fish.</p><p>To identify these specific growth factors, Cameron needs to identify different fish-specific factors and synthesize them in the lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*qeikpt41trCVLatk" /><figcaption>DNA gel of synthetic genes coding for fish growth factors (Source:<a href="https://www.new-harvest.org/cameron_semper"> New Harvest</a>)</figcaption></figure><p>While many companies have begun experimenting with serum-free media for cell-based meats, they still have to develop a cost-effective formula for large scale production. In addition, these media haven’t been optimized for fish, as very few companies are focusing on culturing seafood.</p><p><strong><em>Fun Fact: </em></strong><em>Startup Company</em><a href="https://www.bluenalu.com/"><em> BlueNalu</em></a><em> showcased</em><a href="https://www.gfi.org/blog-bluenalu-cultivated-yellowtail"><em> the first slaughter-free yellowtail</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ZRTV6MMmFE2LmSFt" /><figcaption>BlueNalu’s whole-muscle, cell-based yellowtail medallions atop a bisque of roasted butternut squash (Photo: Business Wire)</figcaption></figure><p>Cameron’s efforts in deriving a serum-free media are to favour long-term goals such as scalability and quality that are one of the main factors that will determine the cultured meat industry. As we well know, every animal is different, so the media derived from the serum will vary from batch to batch for every animal and so standardizing the growth medium would ensure that every bit of cultured meat/seafood would be equally appetizing, which is what Cameron hopes to accomplish in the near future.</p><p>Ultimately, Cameron’s work would help reduce the environmental impact caused by current seafood production and save coastal economies from the burden of overfishing. During the summer, I had the opportunity to chat with Cameron. You can listen to our conversation down below and learn about his thoughts about cellular agriculture, and it’s future.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ7kd47Ql7EI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ7kd47Ql7EI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQ7kd47Ql7EI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/282fdc08a212e141461f38b197f13ffc/href">https://medium.com/media/282fdc08a212e141461f38b197f13ffc/href</a></iframe><p>If you have made it to the end of this article, please share it with your friends. Help us bring awareness about this field and spread the word about this fascinating topic.</p><p>This article is one of many developed to broaden your understanding of this field with loads of groundbreaking research and developments.</p><h3>About the Author :</h3><p>Zaki is an ambitious student who is currently volunteering with Cellular Agriculture Canada to educate today’s youth about this exciting field.</p><p>To learn more about Zaki, visit<a href="https://zakirangwala.com/"> https://zakirangwala.com//</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6aR3GQVCv6Z6F6E9" /></figure><p>Sign up to our <a href="https://www.cellag.ca/">mailing list</a> to receive our newsletter, where new articles will be shared!</p><p><a href="https://www.cellag.ca/">To learn more about Cellular Agriculture Canada, visit https://www.cellag.ca/</a>.</p><p>And follow our socials :</p><p><a href="https://www.instagram.com/cellagcanada/">Instagram</a></p><p><a href="https://www.tiktok.com/@cellagcanada">Tiktok</a></p><p><a href="https://twitter.com/cellagcanada">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61af770ede48" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-learn-about-cameron-sempers-work-in-rethinking-cultured-fish-61af770ede48">Cellular Agriculture: Learn About Cameron Semper’s Work In Rethinking Cultured Fish🐟</a> was originally published in <a href="https://medium.com/cellular-agriculture-canada">Cellular Agriculture Canada</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cellular Agriculture: What is it precisely, and how can we leverage this technology? ]]></title>
            <link>https://medium.com/cellular-agriculture-canada/cellular-agriculture-what-is-it-precisely-and-how-can-we-leverage-this-technology-ffb2986513c4?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffb2986513c4</guid>
            <category><![CDATA[cultured-meat]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[cellular-agriculture]]></category>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[stem-cells]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Fri, 04 Sep 2020 17:41:31 GMT</pubDate>
            <atom:updated>2020-09-04T19:07:08.165Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cellular Agriculture: What is it precisely, and how can we leverage this technology? 🧐</h3><h4>An intensive guide outlining everything you need to know</h4><p>I recently got fascinated by Cellular Agriculture and published an article to portray the potential that harnessing this technology holds. You can check out that article here :</p><p><a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-are-labs-the-farms-of-the-future-b5dbda7f3cbe">Cellular Agriculture: Are labs the farms of the future? 🧫</a></p><p>In this article, we will take a deep dive into the actual science that takes place for Cellular Agriculture while also talking about the limitless applications that this technology holds, so buckle up your seatbelts because you are in for a ride. 🎢</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*kYVMG4-O27EqW_2-.gif" /><figcaption>Let’s get this party started, and bump up your knowledge of cellular agriculture from 0 to 100 real quick. (Source: Giphy)</figcaption></figure><h3>Introduction</h3><p>If you read the previous article, which you can find<a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-are-labs-the-farms-of-the-future-b5dbda7f3cbe"> here</a>, you probably already have a very brief understanding of how this technology works. But let’s refresh the basics of cellular agriculture and what the end goal is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*ZDoEoRHCfhQRvpnv.jpg" /><figcaption>Climate change is a pressing issue that’s leading to many natural disasters like glaciers melting, wildfires and an increase in temperature. (Source: NASA)</figcaption></figure><p>As you well know, climate change is a global issue that we are trying our best to solve. <a href="https://www.washingtonpost.com/weather/2020/08/20/california-wildfires-evacuations/">California shouldn’t be blanketed in smoke caused by wildfires</a>; <a href="https://www.usatoday.com/story/news/nation/2020/08/17/greenlands-melting-ice-sheet-has-passed-point-no-return/3378469001/">Greenlands’ ice sheets shouldn’t be melting</a>;<a href="https://www.aljazeera.com/news/2020/08/hot-death-valley-records-world-temperature-record-200818015732668.html"> temperatures shouldn’t be rising at such an accelerated rate</a>. But alas, all of this is happening due to our intensive use of land, water and other natural resources, to keep up with the constant increase in population.</p><blockquote>The United Nations predicts that by 2050 we will have a staggering population of about 10 billion people.</blockquote><p>This will lead to more demand for food and resources, which by looking at the rate we are currently utilizing these resources won’t be enough to sustain a growing population.</p><blockquote>Fun fact: This year, Earth’s overshoot day was August 22 which marked the date when we had exhausted all of nature’s resources for the year meaning that for the rest of the year, we are actually going to be in an ecological deficit by using more resources than the Earth can handle and accumulating more carbon dioxide in the atmosphere. Learn more here: <a href="https://www.overshootday.org/">overshootday.org</a></blockquote><p>Raising livestock requires a lot of land and demands lots of water and food, which takes up a lot of resources. Irrigation systems are also very inefficient, and agriculture contributes to greenhouse gas emissions leading to climate change.</p><p>But it’s not like we can’t sustain enough resources to feed 10 billion people. The problem is that even with 7 billion people right now, we are struggling with world hunger and poverty as we are wasting so much of it. For instance,<a href="https://rco.on.ca/foodwaste/#:~:text=Every%20Canadian%20lost%20or%20wasted%20almost%20400%20kilograms%20of%20food%20a%20year.&amp;text=In%202015%2C%20Ontario%27s%20municipalities%20recovered,of%20leaf%20and%20yard%20waste."> every Canadian loses or wastes about 400 kilograms of food per year</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/0*FF3DdnY0cn_9gwb-.jpg" /><figcaption>Food waste occurs from agricultural production to end consumption at home (Source:<a href="https://www.iberdrola.com/home"> Iberdrola</a>)</figcaption></figure><p>The solution to this is also relatively simple to understand but challenging to execute, DON’T WASTE FOOD. The amount of food going to waste right now is enough to feed 1.5x the amount of our population.</p><p>We need to produce all our delicious animal products by using sustainable methods like cellular agriculture. To refresh, <strong>cellular agriculture </strong>is the production of agricultural products using cells.</p><p>Now let’s see what the science behind the scenes is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wu_sGSG7sH7mIiFN" /><figcaption>Cultured meat could soon be available at your local grocery store (Source: Shutterstock)</figcaption></figure><h3>Environmental Prospects of Cultured Meat 🌳</h3><p>One of the main focuses of cellular agriculture is to produce the same meat that you would traditionally get from growing livestock but utilizing a small number of their cells. This will use a fraction of the land, water and other resources that it takes to produce the same products through traditional agriculture. Making cultured meat produces almost no <strong>methane, </strong>which is a greenhouse gas that is released by cattle and stays in the environment for approximately <strong>12 years</strong>. Thus far, the process of growing cells for meat production relies on energy resources <a href="https://www.wired.com/story/the-confounding-climate-science-of-lab-grown-meat/">that emit a significant amount of carbon dioxide</a>. Although this can be alarming at first glance, we need to remember that many breakthroughs are being made in the energy sector that produces almost no carbon dioxide and are more sustainable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IY_eHnZZISvJZ3qe.jpg" /><figcaption>Greenhouse Gases are the most prevalent GHGs as they pollute the atmosphere for thousands of years (Source: <a href="https://www.epa.gov/">EPA</a>)</figcaption></figure><h4>But how does the meat grow? 🔎</h4><p><a href="https://www.fsis.usda.gov/wps/wcm/connect/fsis-content/internet/main/topics/food-safety-education/get-answers/food-safety-fact-sheets/meat-preparation/water-in-meat-and-poultry/ct_index">To answer this, we need to understand what meat consists of, which is about 75% water, 20% protein and 5% fat and carbohydrates.</a> The muscle is a collection of many tiny cells called <strong>myofibrils </strong>or <strong>myofibers, </strong>which have two main proteins: <strong>actin </strong>and <strong>myosin. </strong>These proteins are essential in the movement of the cells as they convert chemical energy like <strong>ATP </strong>to mechanical energy that generates the force required for the activity of the cells. These proteins are made up of organic compounds known as <strong>amino acids, </strong>which mainly consist of <strong>nitrogen, oxygen</strong>, <strong>hydrogen </strong>and <strong>carbon </strong>molecules. At the same time, fat cells act as a reservoir of energy. The fat consists of <strong>glycerol </strong>and <strong>fatty acids, </strong>which are essential for cells to absorb nutrients and produce hormones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*VsB3wKYdQ-qfensG" /><figcaption>Muscle tissue breakdown (Source: Nelson)</figcaption></figure><p>To grow the muscle tissue, though, we need to extract a rather particular type of cell known as <strong>stem cells</strong>. These “special” cells are unspecialized cells that can divide and transform in any other building block ranging from brain cells to muscle cells, making them very unique.</p><p>So now that we know what meat consists of and what cells need to be used let’s talk about how it is grown.</p><p>To produce meat, <strong>stem cells </strong>would need to be extracted from the animal. Then we manipulate them to grow in a bioreactor tank that would mimic the natural environment of the animal’s body. Cells will replicate in the necessary heat, oxygen, salts and proteins that they need to transform into muscle tissue just like in the animal itself. This process is known as <strong>myogenesis, </strong>which in a nutshell, is collecting cells that can become muscle tissue, which is then introduced to the necessary nutrients required to grow into small <strong>myotubes, </strong>which become <strong>myofibers, </strong>which, as we know, make up the muscle tissue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*VPqmzdEyMTUddusY.png" /><figcaption>Myogenesis representation (Source: Research gate)</figcaption></figure><p>On top of that, other cells (i.e.,<strong> fat cells) </strong>are usually also introduced to make the meat juicy and tender, so it mimics the actual flavour of meat obtained from animals.</p><p>Let’s break this down into smaller segments :</p><h3>Step 1: Extract cells from 🐄</h3><p>As we know, to grow the meat, we will need to extract cells from the animal. Cows have lots of muscle tissue that have special sections on top of this tissue in case they need more muscle. These special cells are the main ingredient for the lab-grown meat, and so these cells can be extracted and later proliferated to produce tons of burgers. 🍔</p><p>This is all we need from the cow in this process, and it can go running in the field living a happy life, not fearing death. No animals are harmed at all.🐄</p><p>The most common type of cell used in cultured meat is a muscle stem cell, also known as a <strong>myosatellite stem cell</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1CwEKsNUQHkBDlQn.jpg" /><figcaption>The myosattelite cells are on top of the muscle fibre (Source: Pearson)</figcaption></figure><p>These special cells are <strong>multipotent,</strong> meaning they can only evolve into muscle cells and nothing else, making them easier to control in a lab environment. One thing to keep in mind is that these cells also age as each time they divide, a bit of DNA is lost, meaning that the cells can only replicate a certain amount of times before it will undergo <strong>apoptosis </strong>or <strong>programmed cell death. </strong>This concept is known as the <strong>Hayflick Limit.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3IoyMG0RA5i3HXoj.png" /><figcaption>Stem cells can differentiate (specialize) or proliferate (multiply) (Source: Nature.com)</figcaption></figure><p>Other cells like <strong>iPS cells (Induced Pluripotent Stem Cells) </strong>or <strong>Embryonic Stem Cells</strong> can also be used to culture meat. These cells are <strong>pluripotent, </strong>which means that both types of cells can become any cell in the body. Whereas, <strong>multipotent cells</strong> like the one found in the muscle tissue of the cow can only become muscle cells. This allows the pluripotent cells to be able to divide indefinitely as they don’t have a Hayflick Limit meaning that one of the <strong>iPS </strong>or <strong>Embryonic Stem Cells</strong> can feed the world forever, in theory.</p><p>These “special” cells are the only ones that can divide indefinitely besides cancer cells, making them very unique, allowing them to create infinite identical copies of themselves.</p><p>But the reason they are not widely used to culture meat is that they are incredibly hard to control. Ongoing research is currently taking place to hold the differentiation of these cells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*oYyLGMkCVlkn3pY5.jpg" /><figcaption>Difference between pluripotent, multipotent and totipotent stem cells (Source: Open Textbook)</figcaption></figure><p>When using pluripotent stem cells to culture meat, two things need to be kept in mind :</p><ol><li><strong>Proliferation </strong>(Multiply in population, easy as they can make infinite identical copies of themselves)</li><li><strong>Differentiation </strong>(Mature; the process in which the cells changes from one type to another or specializes to a kind)</li></ol><p>Therefore, <strong>multipotent </strong>cells extracted from the muscle tissue are much easier since they will only become muscle tissue.</p><h3>Step 2: Allow the cells to proliferate and differentiate. 🧫</h3><p>Once we have the cells, we need to allow them to multiply in population so we can use it to culture meat. So how is it done?</p><h4>Using a growth medium 🥃</h4><p>As we know, cells are also living and need fuel or food to get work done. When they are in our body, all the nutrients we get allows them to function, but once they are in a lab environment, we need to get creative.</p><p>So to give them the required fuel, the cells are soaked in a “<strong>growth medium,”</strong> which is rich in amino acid and nutrients that can allow the cells to proliferate and differentiate.</p><p>The current growth medium being used is known as <strong>FBS (Fetal Bovine Serum) </strong>that is extracted by killing a fetal calf by inserting a needle into its heart. As an animal is still being killed in the process, many researchers are currently finding an alternative to this serum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*j15jtTftPMJ6xaUy.jpg" /><figcaption>This bottle of FBS has a hefty price tag of $ 1401.28 (Source: Fisher Scientific)</figcaption></figure><p>Furthermore, this medium is also incredibly expensive and simply impractical and, in my opinion, unethical.</p><p>Therefore, this serum is a no-go, and we need an alternative.</p><blockquote>Stay tuned for my next article, where I go more in-depth about this topic and talk about what New Harvest researcher Cameron Semper is working on to address this issue.</blockquote><h3>Step 3: Utilize the cells to form structures 📐</h3><p>Before we get into how we can create the actual meat, one crucial aspect of this process is the growth of cells.</p><p>Cells are like a thin 2D surface, so when meat is cultured, they grow into these two-dimensional strips, and so we need to form a 3D structure to produce, let’s say steak!</p><p>To form these 3D structures, we utilize <strong>scaffolds </strong>that create more surfaces on top of the body that the line of cells already occupies, making a three-dimensional structure. A bioprinter is used to support the stands and allow the cells to grow to form a 3D tissue. It’s very much like an inkjet printer, but instead of ink, we are using the 2D cell strips that are layered on top of one another, creating this masterpiece. But since our techniques are still in its early days, complex structures like cultured steaks are hard to produce.</p><p>So once these cells (<strong>myofibers</strong>) are grown, other ingredients like fat cells can be added to add the taste of traditional meat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GnZL_Qg7uS0_-ZWB.jpg" /><figcaption>Scaffolds are a type of material that helps <em>myocytes develop a 3D structure. (Source: Cambridge University)</em></figcaption></figure><h3>Challenges of Cultured Meat 🍖</h3><p>The main reason why cultured meat is not commercially available like plant-based meat products is that several caveats need to be addressed before this a reality. Some of them being :</p><h4>1.) The Use of FBS in the growth medium 🧪</h4><p>Current cultured meat production is far from perfect as the serum we rely on to allow the cells to grow is incredibly expensive and is derived from animals, which are very counterintuitive as the whole point to produce cultured meat is not harming any animals and increasing access to food.</p><blockquote><strong>Sidenote</strong>: Another important aspect to keep in mind is that we need the cells to differentiate and proliferate which each requires different nutrients and/or chemicals. It is difficult to determine how many media should be used for each task as culturing meat is very expensive 💰</blockquote><h4>2.) Perfecting the taste of cultured meat 👅</h4><p>For the people to accept clean meat and for it to survive the market, it needs to taste like meat. Researchers are working on improving the taste and texture of the beef, while AI algorithms are being developed to test different compounds that affect the taste and texture of the meat. There is a lot of research currently being done in the field of <strong>flavour engineering </strong>and also in studying the smell-flavour perception or the aroma.</p><h4>3.) An efficient method of constructing cell structures 🔬</h4><p>Currently, we use <em>diffusion </em>to feed the cells, which is why we are limited to producing hamburgers or thin sheets of meat. Diffusion is the movement of substances from a high area of concentration to a low area of concentration, which makes feeding the cells an ongoing problem with making thicker structures like steaks because, at a specific point, diffusion stops working. This is because a cell needs to be 200 microns to form nutrients, which in the process also limit the cultured meat products to be a maximum of 200 microns that is comparable to the thickness of the width of a human hair.</p><h4>4.) Controlling pluripotent stem cells 🧫</h4><p>As we know, instead of using the multipotent stem cells found on the muscle tissue of the cow, we can also use other pluripotent stem cells. Embryonic stem cells or iPS cells, which don’t have a Hayflick Limit, thereby can divide indefinitely. However, what makes them hard to control is that they can specialize into any tissue, making the differentiation step of the cells difficult as they need to be redirected into muscle cells like the multipotent stem cells become.</p><p>Aside from these, there are many other challenges like consumer acceptance as well as food regulations and scaling manufacturing so that it can be produced in mass quantities.</p><p>This may all seem complicated, but it can be summarized in this one diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*CicT0qN8rb3hj20K.jpg" /><figcaption>Stem cells are extracted, placed in a liquid that “feeds” them to become a strand of actual muscle cells that form a fibre ring around the gel column that are then harvested, cut into strips and layered together with separately grown fat tissue to produce a patty. (Source: Good Food Institute)</figcaption></figure><blockquote>Fun fact: A 3-ounce burger requires 10,000 of these strips</blockquote><p>See pretty simple right?</p><p>Even though there are these challenges that we have to overcome, cultured meat has tons of great opportunities to solve current posing issues while also making cultured meat production the primary method of getting meat, keeping animals unharmed and eventually in the future causing the cost of meat to drop down. This will allow us to enjoy meat guilt-free while allowing the animals to thrive and our Mother Earth to flourish. 🌎</p><p>If you have made it to the end of this article, please share it with your friends to bring awareness about this field and spread the word about this fascinating topic.</p><p>This article is one of many developed to broaden your understanding of this field with loads of groundbreaking research and developments.</p><h3>About the Author :</h3><p>Zaki is an ambitious student who is currently working with Cellular Agriculture Canada to look into the field of Cellular Agriculture in means of educating today’s youth about this exciting field.</p><p>To learn more about Zaki, visit<a href="https://zakirangwala.com/"> https://zakirangwala.com//</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6aR3GQVCv6Z6F6E9" /></figure><p>Sign up to our <a href="https://www.cellag.ca/">mailing list</a> to receive our newsletter, where new articles will be shared!</p><p><a href="https://www.cellag.ca/">To learn more about Cellular Agriculture Canada, visit https://www.cellag.ca/</a>.</p><p>And follow our socials :</p><p><a href="https://www.instagram.com/cellagcanada/">Instagram</a></p><p><a href="https://www.tiktok.com/@cellagcanada">Tiktok</a></p><p><a href="https://twitter.com/cellagcanada">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffb2986513c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-what-is-it-precisely-and-how-can-we-leverage-this-technology-ffb2986513c4">Cellular Agriculture: What is it precisely, and how can we leverage this technology? 🤔</a> was originally published in <a href="https://medium.com/cellular-agriculture-canada">Cellular Agriculture Canada</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Establish Your Own VPN Server ]]></title>
            <link>https://studentsxstudents.com/how-to-establish-your-own-vpn-server-82e07b1865e0?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/82e07b1865e0</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[enjoy-writing]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 22:35:26 GMT</pubDate>
            <atom:updated>2021-02-16T18:09:14.711Z</atom:updated>
            <content:encoded><![CDATA[<h4>Keep yourself protected and secure wherever you go</h4><p>I recently worked on a mini-project where I created my adblocking server at home to protect myself from tracking services, advertisements and malicious links. I did this by utilizing PiHole, which is an open project that is meant to act as a DNS sinkhole between your local network and any internet traffic travelling in or out of it. It acts as an interceptor between you and the servers, so not only do you have no ads, but you are also secure from any malware. This results in higher internet speeds as you are not downloading any content that you don’t need like ads, which also saves you on your bandwidth usage if you have a quota. If you would like to learn more about how to set up Pihole and have a fun summer project to work on, check the article down below.</p><p><a href="https://medium.com/@rockinzaki/how-to-evolve-your-network-to-be-ad-free-with-pi-hole-5fa2d4e5efc9">How to evolve your network to be ad-free with Pi-Hole®</a></p><p>After I finished this project, I thought to myself: Wow! Having no ads is terrific, I don’t have to get interrupted every 2 minutes while watching a YouTube video or get those annoying popups while browsing the web, so how can I get this on my devices on the go?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fC7x5rY_IsZcnWo7.png" /><figcaption>Graphical Visualization of how my PiHole server blocks ads in my network</figcaption></figure><p>Let’s say I’m at a local grocery store, and I run out of data and need to send a quick email, so I connect to an open wifi network. But I’m a little skeptical about the security this network has as I am vulnerable to any cyber attack, so what if I could route my internet traffic through my home internet, so I get the adblocking functionality plus safety and security I feel when I am using my home network. This is possible, and I have just the solution.</p><h3>Introducing PiVPN</h3><p><em>Note: This VPN server is designed to run on the Raspberry Pi as it is a container that houses the VPN of your choice, whether it is OpenVPN or Wireguard.</em></p><p>Since I am already running a PiHole server on my internet network at home, I could theoretically create this VPN server, which would allow me to access my home network from anywhere in the world, given of course, that I am connected to some internet even it is mobile data. This is helpful as if you are travelling abroad and need access to your home internet connection either to retrieve a few files, control your smart home, enjoying local services (accessing Netflix Canada while in the UK) and most importantly just being more secure thanks to the PiHole server running at the home network at the same time. So before I teach you how to set this up, let me explain to you how a VPN service works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*nA3ZoXx3KZX69qut.jpg" /><figcaption>PiVPN: Low cost, High Security</figcaption></figure><h3>How does a VPN Server work?</h3><p>A VPN server routes your device’s internet traffic through an encrypted tunnel to a private server, which could be anywhere in the world. This allows you to be anonymous on the internet, as your IP addresses and location are harder to find, which will make you safer and less vulnerable to attacks. This allows you to bypass any restricted applications or services that are blocked in your region, access age-restricted material, and in our case, get PiHole. To paint a picture, let’s say I go to India for a holiday. I want to binge this series that is only available in Canada: By using a VPN server, I could do that. Still, services like Netflix can detect this from the thousands of people doing the same thing as you as there is a lot of internet traffic coming from one place, usually a data center. But it’s possible; you could also use it to bypass app bans. The possibilities are endless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*0Nl5lMiG3PMlDOvq.jpg" /><figcaption>This diagram illustrates the difference that having a VPN server makes</figcaption></figure><p>This VPN server is not designed to protect my home network where it’s running, although that’s possible, but instead provides remote access to any client connecting from outside the system to access my home network. A good part about this is rather than using one of those free VPN services, who have full access to your internet traffic, you could create your own unless, of course, you have the cash and can afford a premium subscription.</p><p>So, now that we are all educated on how this process works, let’s get started!</p><h3>Setting up PiVPN</h3><p>While writing this article, I am assuming you have already followed all the steps in my previous article that you can find <a href="https://medium.com/@rockinzaki/how-to-evolve-your-network-to-be-ad-free-with-pi-hole-5fa2d4e5efc9">here</a>.</p><p>If you need to set up your Raspberry Pi as well, please refer to the previous article where I go over how to set up your pi as well as setting up a PiHole server.</p><p>You can learn more about this open-source project here at <a href="https://pivpn.io/">https://pivpn.io</a>. It allows you to run an OpenVPN or Wireguard server through this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-m86wFR9n4jPWFWGZJkFsQ.png" /><figcaption>To install the PiVPN, type this one-line command that will establish all packages and dependencies needed to run this server.</figcaption></figure><p>To install the packages necessary to install this server, run this command :</p><pre>curl -L <a href="https://install.pivpn.io/">https://install.pivpn.io</a> | bash #installing packages</pre><p>Before you do so, make sure to make yourself a root user :</p><pre>sudo su #do this step before you begin installing pivpn</pre><p>Once that is done, you should get a screen like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpXtb0VQBsStECi6QWkhhQ.png" /></figure><p>It will then give you an option to select a user, which you can choose like so :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_p381k4t1Gpiz9yoIzESqg.png" /></figure><p>Now you get to choose which VPN server you would like to use, with the options being Wireguard and OpenVPN. Let’s find out what both have to offer!</p><p>Just for context, OpenVPN is the current leader due to its extensive use as it is very flexible, reliable and has been around for a long time. In contrast, Wireguard is relatively new compared to it and utilizes state-of-the-art cryptography, and its source code is only about 4000 lines compared to OpenVPN’s thousands of lines.</p><p>There are many areas where we will be evaluating Wireguard and OpenVPN in a very brief comparison.</p><h3>1) Speed</h3><p>Wireguard’s performance, according to many people and organizations, is phenomenal as it not only offers faster speeds but is also quicker to establish a reliable connection on most devices. On average, it is<strong> 58% faster</strong> than OpenVPN and is capable of achieving speeds beyond 500 Mbps.</p><h3>2) Encryption</h3><p>In terms of encryption, OpenVPN uses the OpenSSL library, which supports several different cryptographic algorithms and makes this service agile but more complex, which can slow down execution. On the other hand, Wireguard is very different when it comes to the use of cryptographic algorithms as it uses only one fixed set of algorithms.</p><h3>3) Security</h3><p>OpenVPN has no known vulnerabilities and a fantastic track record with the numerous amount of years it has been available to the consumer. In contrast, Wireguard, even though it’s very secure, doesn’t have an experience like OpenVPN.</p><p>However, one caveat is that Wireguard, whiled designed for speed and security, isn’t that good if you are leaning towards privacy as it stores the user IP address on the VPN server, which could be exposed if a WebRTC leak was to occur.</p><p>Finally, Wireguard is also designed to function with the Linux operating systems and which allows a better performance relative to OpenVPN and a better option for PiVPN.</p><p>So now that you know what each VPN service brings to the table, you could choose whichever you like, although keep in mind that this article only outlines how to setup Wireguard, but setting up OpenVPN shouldn’t be that much different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccQAoAmwlO6pN4rgJFtNZg.png" /><figcaption>I am personally choosing to go with Wireguard because of its speed and connectivity.</figcaption></figure><p>Then it will give you another prompt to set up your static IP, which, if you don’t know how to do, you could check out <a href="https://medium.com/@rockinzaki/how-to-evolve-your-network-to-be-ad-free-with-pi-hole-5fa2d4e5efc9?sk=44ce1e0cb189ec12e90fed145f7a8c72">my previous article here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCg92eP3GE_l59d9kxQQkw.png" /><figcaption>As we have already set up a static IP for the already running PiHole, we can choose to use our current settings.</figcaption></figure><p>However, if you haven’t followed through the other guide, then make sure to set up a static IP, so it doesn’t interfere with your router’s configuration.</p><p>Now you will get an option to choose a default port to listen in on, and I suggest to stick with the default ‘<strong>51820’.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uoXq1Vlj-7EXGaKF6SgtWw.png" /><figcaption>The default port for Wireguard</figcaption></figure><p>Next, it will give you an option to choose your upstream DNS provider, which you could choose any from the list. But if you already have a PiHole service running, you already got to decide which one to use and selecting another one would mean that you wouldn’t get the adblocking functionality in your VPN service.</p><p>Therefore, you could navigate to the custom option, and for the DNS enter the IP address of the raspberry pi or like in my case, PiVPN will already detect an existing DNS server from the PiHole and allow you to run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSOtI1m-qshXIfVGrctiog.png" /><figcaption>If you would like to have adblocking on the go, click YES.</figcaption></figure><p>Now you will get to choose an option to either use your public IP or a public DNS. You could generate your public DNS at a website like <a href="https://noip.com/">https://noip.com</a>, so if your public IP address changes, it won’t affect you as much.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nc-QVlBZ3AHIeC6Oux-WmA.png" /><figcaption>I chose to use my public IP address to connect to my server.</figcaption></figure><h3>Port Forwarding</h3><p>Now to allow your router to listen in to any devices connecting to the VPN server, we will need to enable port forwarding like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgQRIlmku94npTPz8lhV2g.png" /><figcaption>Navigate to the port forwarding tab of your router</figcaption></figure><p>Once you do so, you will need to add a new rule that will tell your router to listen in to the port that Wireguard is active in, which is <strong>51820</strong>.</p><p>You can then enter the pi’s static IP address so all the incoming internet traffic outside your network can go through the pi to connect to your local network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*ls8ct-7116XDGRSo5sfLOQ.png" /><figcaption>Enter the port number where it asks to enter a range, and for a local IP address, enter the pi’s address.</figcaption></figure><p>You have no finished installing PiVPN on your pi and have a correctly running server ready to use. Now to put this into use, you need to add a client or user into the VPN server from which you can configure your device to connect to the server itself.</p><p>To do so, enter :</p><pre>pivpn add #After this proceed to enter the name of the person</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQvL5T4UomOv9ebZ67zB9w.png" /><figcaption>Adding a user to the server</figcaption></figure><p>Now you have a user in your server to connect to a device, install the <a href="https://www.wireguard.com/">Wireguard</a> app on your PC or phone.</p><p>I tested this by getting the <a href="https://apps.apple.com/us/app/wireguard/id1441195209">app from the app store</a> and entering the following command that generates a QR code:</p><pre>pivpn -qr #proceed to enter the QR code of the user whose profile you wish to connect</pre><p>This makes it easier to add the VPN profile to your phone by simply scanning the QR code in the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EQ8cZcP93G2mVgKaBAK9g.png" /><figcaption>Scan the QR code from the app (Blurred for security purposes)</figcaption></figure><p>And now we are done, you can check by toggling mobile data and trying to access your router configuration settings which obviously shouldn’t work as you are not in the same network, but if you also turn on the VPN, then it will be easier to access this as well as anything in your local system as all your traffic is routed through your home server.</p><p>This setup ensures that no matter where you go, you will always have a sense of privacy and security as well as get adblocking on the go. This protects you from any attacks by making you less vulnerable to it and allows you to control devices in your home network. The possibilities with doing this are endless as you could do anything like :</p><ol><li>Setup a fileserver</li><li>Establish a firewall</li><li>Run a seedbox server</li></ol><p>And much more.</p><p>If you enjoyed this article and it helped you out, please leave me a clap down below, and if you have any questions, you could always leave a comment down below or even better email me at <a href="/service/mailto:zakirangwala@gmail.com">zakirangwala@gmail.com</a>.</p><p>If you would like to learn more about me and the work I do, visit my website at<a href="http://zakirangwala.com/"> zakirangwala.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82e07b1865e0" width="1" height="1" alt=""><hr><p><a href="https://studentsxstudents.com/how-to-establish-your-own-vpn-server-82e07b1865e0">How to Establish Your Own VPN Server 🔑</a> was originally published in <a href="https://studentsxstudents.com/">students x students</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to evolve your network to be ad-free with Pi-Hole®]]></title>
            <link>https://rockinzaki.medium.com/how-to-evolve-your-network-to-be-ad-free-with-pi-hole-5fa2d4e5efc9?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fa2d4e5efc9</guid>
            <category><![CDATA[ads]]></category>
            <category><![CDATA[pihole]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 13:26:06 GMT</pubDate>
            <atom:updated>2020-09-22T10:53:50.911Z</atom:updated>
            <content:encoded><![CDATA[<h4>Follow this 15-minute comprehensive guide on how to build your ad-blocking server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0ttDxK0mzzXlhuXO" /><figcaption>This is the Raspberry-Pi Zero W, a new variant of the immensely popular Raspberry-Pi Zero ($10) (Courtesy of <a href="https://unsplash.com/@harrisonbroadbent?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Harrison Broadbent</a> on <a href="https://unsplash.com/s/photos/raspberry-pi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><h3>Introduction</h3><p>I first stumbled upon this project back in the early days when companies were adopting the ad-based business model, which meant more and more ads. But as I navigated through their <a href="https://github.com/pi-hole/pi-hole">Github Repository</a>, I figured it was too hard to implement, and then my laziness took over. But alas, here we are now in 2020 where advertisements are almost everywhere you go, growing at an exponential pace with no desire to stop, we have reached a stage where it is essential to implement this ad-blocking system as I have had enough with these youtube ads that just seem to be creeping through the small window of the video you are watching that reach a point where you just don’t want to use the internet anymore. And so, I went ahead and ordered myself the <a href="https://www.raspberrypi.org/products/raspberry-pi-zero-w/">Raspberry-Pi Zero W</a> and started setting up my server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*Jmoq5wTpBpl9SWU9" /><figcaption>Different Raspberry-Pi Models you can use for this project with the latest being the <a href="https://www.raspberrypi.org/products/raspberry-pi-4-model-b/">Raspberry Pi 4</a> (not listed here)</figcaption></figure><p>Now actually implementing this is pretty straightforward, but being a Linux amateur, I encountered a lot of issues and problems. Still, having a strong background in CS, I was able to navigate myself through dozens, and dozens of StackOverflow threads and subreddits and god knows how many open forums to finally derive this perfect in-depth walkthrough on how to set up this server while also applying a bit of my knowledge so you won’t have to. Even if you don’t need it, it can be a cool mini-project to work on if you are bored, which can be very useful and which can also be emphasized in the future. So now that you are all ready and mentally prepared let’s get started!</p><h3>First Steps: Setting up your Raspberry-Pi</h3><p>Now just to clarify, you technically don’t need a raspberry-pi for this project. You can run this on any <a href="https://www.pcworld.com/article/2918397/how-to-get-started-with-linux-a-beginners-guide.html">Linux compatible system</a> or even a <a href="https://www.docker.com/resources/what-container">Docker container, </a>which allows it to run from devices such as the <a href="https://www.synology.com/en-us/solution/what_is_nas">Synology NAS (Network Attached Storage)</a>. But I would go for the raspberry pi as I wouldn’t want to keep my computer running all the time and since it’s better suited towards this mini-computer. As surprising as it is, the requirements for this server is :</p><p><strong>Hardware </strong>:</p><ul><li>52MB of free space</li><li>512 MB RAM</li></ul><p><strong>Software (Officially Supported)</strong> :</p><ul><li>Raspbian: Jessie/Stretch</li><li>Ubuntu: 16.04 / 16.10</li><li>Debian: 8 / 9</li><li>Fedora 27, 28, 29</li><li>CentOS: 7 (not ARM)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*PKjjWy0eZA6vy7X6.jpg" /><figcaption>Supported Operating Systems</figcaption></figure><p>So like I said, don’t stress too much about what model to buy as my Raspberry Pi Zero can handle this with ease. So now what you will need is :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8b19538fYuNz6OSBCepy4w.png" /><figcaption>Power Adapter (5V), Rasperry-Pi Model of your choice, Ethernet dongle and cable (if needed, also works with wifi if supported by model) and an SD card with 4GB of minimum storage (Photo: Linus Tech Tips)</figcaption></figure><p>Also please, keep the board protected, you can either use a DIY protective box like shown in the image above or buy a protective casing from <a href="https://www.amazon.ca/gp/product/B07PK255GC/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;psc=1">Amazon</a> <em>#noad</em></p><h3>Step 1: Setting up the SD Card</h3><p>So now that you have all the tools needed, let’s set up the SD Card. Now most laptops, don’t have an SD card port, so by default so you will need an SD/MicroSD card reader as the board utilizes a MicroSD. Once you got that, connect the MicroSD to the computer and format the card.</p><p><em>*Most SD Cards ordered from official raspberry pi vendors come with a variant of Linux installed, typically NOOBS, but just to make sure you learn and know what you are doing, it is recommended to format the card.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFurd44HERgOO8WpPJLa1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcUgy1y8l5UogFFutvYVBA.png" /><figcaption>You can either use the native format option or download the <a href="https://www.sdcard.org/downloads/formatter/">SD Card Formatter</a> software to format the MicroSD card entirely and delete all partitions.</figcaption></figure><p>Once that is done, <a href="https://www.balena.io/etcher/">download the balenaEtcher software</a> to burn the <a href="https://www.raspberrypi.org/downloads/raspberry-pi-os/">raspberry pi os image, which we will download right now.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoiCSuwivZwdpxodABWgxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmbtJg19BL7_oRIUiiOvpA.png" /><figcaption><a href="https://www.raspberrypi.org/downloads/raspberry-pi-os/">Get the Raspberry Pi OS Lite</a> as it takes minimal space and <a href="https://www.balena.io/etcher/">install balenaEtcher</a></figcaption></figure><p>Once the zip file is downloaded, burn the image into the MicroSD card like so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WeTVNTjOIMkRpj9XFBbvkg.png" /><figcaption>Flash the image into the MicroSD card and then eject your microSD card and plug it back in, and it should be called “boot.”</figcaption></figure><p>Once that is done, we have to add an <strong>ssh file</strong> since we are doing a headless install so that we can connect to our pi wirelessly. This is only targeted towards individuals who have this feature on their pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AsNp9ADtthYEbuebxZExsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2746gvIlUkPVXE-Iz-L1A.png" /><figcaption>[Left] How the contents of the boot drive should look ;[Right] Adding the ssh file, make sure it has no extensions and is an empty file</figcaption></figure><p>If you don’t know how to make an extensionless file, download the <a href="https://drive.google.com/file/d/1SCgWSvNgVlWybkCRuXFDhZ-SOrarsa2I/view?usp=sharing">ssh file from here</a>. Next, we have to add a <strong>wpa_suppliant.conf. </strong>In the file, enter the following content :</p><pre>country=ca<br>update_config=1<br>ctrl_interface=/var/run/wpa_supplicant</pre><pre>network={<br> scan_ssid=1<br> ssid=&quot;Network_Name&quot;<br> psk=&quot;Network_Password&quot;<br>}</pre><p>If you are having issues making this file, <a href="https://drive.google.com/file/d/1ToSCqgGP3NLRmK7TQWhaZPCT1unMYs_P/view?usp=sharing">download it from here</a>. Keep in mind both these files need to be in the boot drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5W3uFtNX-HWsmH3IG6QHjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_qg2Jgdz_MaddiZ1V16bxw.png" /><figcaption>An additional point to take note of is to change the EOL Conversion (if not already) to Linux, so it is compatible with the pi</figcaption></figure><h3>2. Setting up the Raspberry Pi</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*hh29l_px0Gyi7yWy.jpg" /></figure><p>Now you can safely connect your raspberry pi after ejecting and inserting the SD card into it, like so and make sure the power cable is connecting to the port closest to the end of the board.</p><p>It may take 2–15 minutes to boot up and install the OS depending on your wifi connection.</p><p>Meanwhile, install the following programs that will allow us to connect with the pi through ssh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDkcwyPVCfpQUuUUFl-d9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqQvkngT6DEBrTLsOdHtiA.png" /><figcaption>Install <a href="https://support.apple.com/kb/dl999?locale=en_CA">Bonjour Print Services</a> which helps us detect devices in our network and<a href="https://www.putty.org/"> PuTTy </a>for actually accessing the terminal</figcaption></figure><p>Now access your routers configuration settings, which you can accomplish by typing the default gateway of your router on your browser (i.e., <a href="https://192.168.0.1/)">https://192.168.0.1/)</a>. Still, if you don’t know this address, you can check behind your router or search up online (i.e., Hitron router configuration) or just download <a href="https://angryip.org/">Angry IP Scanner</a>. If what we did was successful, you should see your raspberry pi connected to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPRApxQHEERJA6G_Wf7USA.png" /><figcaption>If you see the raspberry pi, it means that we were successful, and it is connected to the internet. Take note of the IP address of the pi.</figcaption></figure><p>Now we can open the PuTTY command centre and input the <strong>IP address</strong> of the raspberry pi like shown in the image before or entering <strong>raspberrypi.local</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DfbnHuZJemcK2G-8EDWwlA.png" /><figcaption>Make sure the port is 22 as the pi is listening through that and that the connection type is ssh.</figcaption></figure><p>After executing this, you should see a terminal window open as well as a security alert asking to add the server’s key to PuTTy’ s cache as it is the first time connecting via ssh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4IDV7Q-BpbCSw9CjvYFPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgUd_KybjNip3bXhh3hB2g.png" /><figcaption>[Left] Click yes when this prompt shows up; [Right] To login, the default username is ‘pi’ and the default password is ‘raspberry’</figcaption></figure><p>Once logged in and good to go, we need to make some configuration changes, but first, you need to promote yourself to superuser (root) which you can do by using the following command :</p><pre>sudo su #intializes user as root</pre><p>Next, enter the command :</p><pre>raspi-config # will allow you to edit settings</pre><p>This window should show up :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWCOQskD2GofzKwdlzIj8g.png" /><figcaption>You can change your password and hostname needed when logging in as well as setup overclocking and edit timezone settings.</figcaption></figure><p>Just to be organized, once at the menu, navigate to 7. Advanced Options and click ENTER, then select ‘Expand File System’ so the pi properly configures your SD Card. Quickly reboot your pi by using the command :</p><pre>sudo reboot # reboots pi with updated settings</pre><p>And log in the same way you did above but use the new hostname or password if you changed during configuration.</p><p>Now just to update packages, run the following commands :</p><pre>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y</pre><p>This may take a while, so get some coffee or go for a quick run, and once this is done, we are ready to finally install PiHole as the raspberry pi is finished setting up.</p><h3>Final Step: Installing PiHole 😊</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L9KWTCW-7ii-Mfzq6Kv35w.png" /><figcaption>Begin installing PiHole dependencies by <a href="https://github.com/pi-hole/pi-hole">this one line of code</a></figcaption></figure><p>Make sure to enter this command as a root user which you can become :</p><pre>sudo su</pre><p>To establish PiHole use :</p><pre>curl -sSL <a href="https://install.pi-hole.net/">https://install.pi-hole.net</a> | bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8CcaVsGhSrrSCgWutn2hNw.png" /><figcaption>Once you start seeing prompts, just enter through them</figcaption></figure><h3>Setup Static IP Adress</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UM0-HNytz8rTJUl1eF3TNw.png" /><figcaption>PiHole requires the server to have a static IP address</figcaption></figure><p>The reason you have to set up a static IP address is that your router’s <a href="https://www.infoblox.com/glossary/dhcp-server/#:~:text=A%20DHCP%20Server%20is%20a,to%20broadcast%20queries%20by%20clients.">DHCP server</a> is responsible for assigning IP Addresses to each device and can sometimes replace your IP Address with some other one that can cause issues with the PiHole server. Therefore, we need to set up a static IP.</p><p>There are two ways to do so, but first, we need to navigate to our router configuration panel, which you can find more instructions on the internet once you do so note down the default gateway and range of your IP Addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zg2OTtEubUaTXh22gA4YLg.png" /><figcaption>Note the range (i.e : 192.168.0.10–192.168.0.200) and the Gateway (192.168.0.1)</figcaption></figure><p>Now we can either :</p><ol><li>) Navigate to the DHCP Reservation option of our settings and just reserve a specific IP address for the Pi which cannot be taken away from you by the router and given to someone else, allowing you to run the server</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*5UAxEzp2weF7jVJ7.jpg" /><figcaption>This involves pointing the Pi’s MAC address to your desired IP address in the range noted in the picture above (i.e., if your range is 192.168.0.1 to 192.168.0.200, you can only choose an IP address in that range)</figcaption></figure><p>2.) Just remember the range of the IP address selected by your router, and we can continue with the setup, we can configure that later</p><blockquote>Tip : if you are using DHCP Reservation, you might as well just use a static IP (Option 2)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdScEaDT7WS_j0sOPO8jEg.png" /><figcaption>If it asks to select an Upstream DNS Provider, you can select anyone you want, Google is the default, but I am personally using Cloudfare for its speed and security</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YrZwEXMOuU4kd86hX4wyQ.png" /><figcaption>Default blocklists integrated with the pihole</figcaption></figure><p>Select both the blocklists and enter.</p><p>For the selection of protocols, you could select both IPv4 and IPv6, if supported by your router.</p><h3>Static IP Address</h3><p>Now it will show you a page where it asks if you want to use your current network settings (IP Address) or change it. If you locked in your IP address with DHCP Reservation, you could enter yes and pass-through, but if you went through step 2, let’s make some changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1HOJi10yVJL3voMepuTzw.png" /><figcaption>If you selected Option 2, select no on this page</figcaption></figure><p>Now, remember the range of IP Addresses your router supports and choose any IP Address with the same prefix (192.168.0.xxx). You can only modify the xxx part and make sure that it is not in the IP range. So if the IP range is <strong>192.168.0.10</strong> and <strong>192.168.0.200</strong>, then you can choose something like <strong>192.168.0.5 </strong>to be your static IP as it does not interfere with your router settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8Wu6L8WrHbCthVdPGcqrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAdg_kXl2HIBu1yqaGcLAw.png" /><figcaption>[Left] Enter desired IP Adress keep the /24 to indicate that the x of 192.168.0.x is the value being changed; [Right] Make the gateway the same as it is in your router settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oaeMN5OMQnN6OcFp--sAeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNjYSoAUEz-fxTo1QDny0w.png" /><figcaption>[Highly Recommended]: You will have the option to install the web admin interface/webserver which is incredibly useful and would be a no-brainer to get</figcaption></figure><p>And now you should get a screen like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mrb_yFueStsVGloDIo8_Xg.png" /><figcaption>You can now access the web-console with the following URL and password.</figcaption></figure><p>So, the pihole is finished setting up and is running, but it requires just a few adjustments to be 10x.</p><p>Firstly run the command :</p><pre>pihole -a -p #to change your password for the web console</pre><p>Now we need to decide how you want this server to function and block ads; there are three options :</p><ol><li>) Pointing your router’s DNS settings to the raspberry pi’s IP address which is running the Pihole server to get the network-wide implementation</li><li>) If you can’t configure DNS settings, setup Pi-hole as the DHCP server, which I recommend as you get more comfortable with the web console</li><li>) If you can’t do either or don’t want all your network traffic routed through the pi, you can manually configure specific devices to point to the pi to get ad blocking and security on them</li></ol><p>Let’s see what each option offers :</p><h3>1.) Pointing router DNS settings to PiHole Server</h3><p>This option will configure your router to direct all internet traffic through the server providing you with adblocking and security for the entire network. One downside is that if the pi is down, the wifi is down unless you configure the DNS settings back to normal. All you have to do is navigate to the router settings panel and input the IPv4 and if supported IPv6 addresses of the pi into the DNS settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*twKhkr4u-InRvmgdZ1hESw.png" /><figcaption>Point the DNS to the IP Address of the raspberry pi running pihole, if it requires both the DNS fields enter the same address or else leave the second field empty like shown</figcaption></figure><h3>2.) Setup PiHole as DHCP Server</h3><p>Setting up the Pihole as a DHCP Server ensures that nothing can go wrong when running the server as now the PiHole as taken responsibility to assign IP addresses to each client and now making it visible to see what traffic is going to what device, which is not visible for the other two options. The only downside is that like the first option, if this is down, then the entire wifi is down, and since devices rely on the DHCP server to assign IP addresses, no devices would be able to connect. But otherwise, it is no different from the first option, providing service across all devices connected to the network but instead also having additional visualizations.</p><blockquote>I personally recommend to utilize this option</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*2asXEFhPNXJ0vvPjL-FP_g.png" /><figcaption>Enable DHCP Server under the settings and DHCP tab</figcaption></figure><p>Now for this to succeed, you need to remember the range of the IP address to hand out and the default gateway, which you can get from the router configuration panel.</p><p><strong>Now pay attention, before you disable the DHCP server of the router, enable the DHCP server of the pihole and then after that disable the DHCP server of your router</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SKPwYGX_5Cigk_gafJdUA.png" /><figcaption>Disable only after allowing the DHCP server on the pihole</figcaption></figure><h3>3.) Manually route individual device traffic through the server</h3><p>In this method, you need to manually change the DNS settings on each device you want to run through the pihole server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_dsJ2AegN48ByE6m.jpg" /><figcaption>Navigate to the wifi settings by selecting the wifi network and configure DNS, the same way we did for the router in Step 1, but in this case, only on the phone or other devices you might want to use</figcaption></figure><p>Now the PiHole server should be up and running, and you can test it by going to a website you usually get ads on, and you will notice now you don’t.</p><p>This tedious and challenging process has paid off yayy! But how do I enhance the adlists to block more content? By default, you are only blocking about 80,000 unique domains, but there is so much more than that so let’s get to work and add some malicious links and ad links as well as any other links you would want to be blocked, whether it be pornography or the dark web. This way, no one can access these websites.</p><p>Some adlists, I would recommend is :</p><pre><a href="https://hosts.oisd.nl/">https://hosts.oisd.nl/</a><br><a href="https://filterlists.com/">https://filterlists.com/</a><br><a href="https://firebog.net/">https://firebog.net/</a></pre><p>From <a href="https://filterlists.com/">https://filterlists.com/</a> and <a href="https://firebog.net/">https://firebog.net/</a> you could just copy the links of the elements that you would like to block like so :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7M5YC2p5tQHWEiXd4EFQA.png" /><figcaption>Select Links to add to adlist</figcaption></figure><p>You can then add these links to the pihole adlist manager by navigating to the settings tab and then adlists. You can then paste them into the field :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DX2ahsYWwMCupDaLx1HWnA.png" /><figcaption>Add Links to the adlist.</figcaption></figure><p>You can then navigate to the PuTTy terminal and run the following command actually to update the gravity database, so your changes come into effect :</p><pre>pihole -g #update the gravity database</pre><p>This might take a few minutes, but once it is done, you can verify that the server is up and running via this command :</p><pre>pihole -status #check status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLpP3LJlt2V5C_Vi6-DvJQ.png" /><figcaption>Over time as more ads get blocked, your admin interface should look a bit like this.</figcaption></figure><p>The fantastic thing about this interface is that it shows the temperature, load and memory usage this process is having on your pi. If you are running multiple processes on your pi other than this, get an external accessory like a <a href="https://thepihut.com/products/raspberry-pi-heatsink">heatsink</a>, which can redirect the heat produced from the processor to prevent it from any sort of throttling and is also helpful when you are overclocking your pi.</p><p>And that’s it! We are done setting up the PiHole. Feel free to add any more links to the list or unblock any as there are cases where there are false positives.</p><p>If you try to block tracking and ads from sites such as Facebook and Google, it will affect the other services such as Messenger and, in terms of Google, pretty much everything ranging from Gmail to Youtube, so make sure to keep updating the gravity database and whitelisting certain domains.</p><p>If you got what you came for, you could just skip the section below where I explain how this process works, but if you are interested, keep on reading.</p><h3>How does this server work</h3><p>Now that we have set everything up to be up and running, you may be like how does this work? Is it magic? You may be confused, if you are not, then yay! But let me still clear this for you. So typically, when you visit a website like <a href="https://www.theverge.com/">The Verge</a> or even <a href="https://www.speedtest.net/">Speedtest.net</a>, you will type the link and see the webpage load but with loads and loads of advertisements. To be more specific, when you type a web address, your computer sends a request to a server to find out where this link is located (i.e., phone book, address book) and relays this information to the computer. So it starts sending pings to this webpage and begins downloading it so that you can see it. Still, it also runs other queries in the background where it is asking the server where to find domains like <a href="http://doubleclick.com/">doubleclick.com</a>, <a href="http://b.scorecardresearch.com/">http://b.scorecardresearch.com/</a>. It begins downloading their elements as well, which are used to display ads, so not only is that taxing to your wifi if you have a fixed quota every month, but it’s also very annoying.</p><p><em>*By the way, clicking those two links is an excellent way to check if your pihole works as they are responsible for ad services and should be automatically blacklisted</em></p><p>You might already know this and already have solutions like <a href="https://ublock.org/">uBlock Origin</a>, or even <a href="https://ublock.org/">Adblock Plus</a> installed on your computer.</p><h3>So how is PiHole different from these services?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vpd_1LIYIlUMbiZL.png" /><figcaption>Queries are made from your local network, which is then forwarded to an external upstream server, which makes the request and pings back information to you.</figcaption></figure><p>A traditional adblocker would just hide these ads from you by editing the source code (HTML, CSS, JS), which means that you are still pinging other servers and again downloading their content, but you do not see it, which is an acceptable solution. But why not just utilize a server that takes maximum about a day to set up that can detect domains that serve these advertisements and just ping them a fake address and act as an interceptor between you and the servers, so the webpage loads without downloading these content in the first place meaning there is no need to hide it. This provides faster internet speed and less bandwidth usage.</p><p><strong>You most probably have an adblocker on your computer, but what about your phone or SmartTV that you can’t install these services on?</strong></p><p>Well, PiHole, if the device is routed through their DNS servers or it’s a network-wide implementation, you will have this effect on all devices that are connected to the network. That’s right, ALL!</p><p>This is why you don’t have to worry about anything and just enjoy ad-free browsing. One essential service whose ads are not 100% blocked is YouTube as they are continually evolving and now send their content and announcements through the same server, which means blocking ads would prevent the content itself. So a wise thing to do would be to pair up PiHole with an adblocker. Still, many amazing people in this community are continually finding a way to bypass this, while YouTube is continuously finding a way to get their ads through as it’s their primary source of income. So, that is the only sort of limitation, but other than that, everything works like a charm.</p><figure><img alt="Using Pi-hole to route your services internally | by containeroo ..." src="https://cdn-images-1.medium.com/proxy/1*aNmEjZK4zTh0E4w7Z0YSNA.png" /></figure><p>In a world where advertisements have become a significant source of attracting consumer’s attention while companies like Google and Facebook make a substantial source of income from it, it can also sometimes be a hassle. The perfect solution for this would be PiHole (A black hole for internet advertisements). So, with this software installed, the possibilities to iterate more are endless and are a fun little mini-project to enhance your browsing and streaming experience.</p><p>If you enjoyed this article and it helped you out, please leave me a clap down below, and if you have any questions, you could always leave a comment down below or even better email me at <a href="/service/mailto:zakirangwala@gmail.com">zakirangwala@gmail.com</a>.</p><p>If you would like to learn more about me and the work I do, visit my website at<a href="http://zakirangwala.com/"> zakirangwala.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fa2d4e5efc9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cellular Agriculture: Are labs the farms of the future? ]]></title>
            <link>https://medium.com/cellular-agriculture-canada/cellular-agriculture-are-labs-the-farms-of-the-future-b5dbda7f3cbe?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5dbda7f3cbe</guid>
            <category><![CDATA[food-technology]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[cellular-agriculture]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Thu, 06 Aug 2020 20:32:50 GMT</pubDate>
            <atom:updated>2020-08-06T20:32:50.014Z</atom:updated>
            <content:encoded><![CDATA[<p>It is bizarre to think that we live in a world where about<a href="https://www.worldbank.org/en/topic/water-in-agriculture"> <strong>70%</strong> of the earth’s clean and fresh water is used just for agriculture.</a></p><p>Just take that in, <strong>70 PERCENT‼</strong></p><p>That’s more water that is used in agriculture alone than in any other industry, which is due to the fact that the production of beef and chicken along with other meats is consuming all of our planet’s freshwater.</p><p>For instance, did you know that<a href="https://www.vice.com/en_us/article/d3z8az/1800-gallons-of-water-goes-into-one-pound-of-meat"> <strong>1 pound of beef requires about 1800 gallons</strong>’</a> worth of drinking water??</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*G53Q7Y-5cyGnMdeVNUmzPA.gif" /><figcaption>Even Chris Pratt is mindblown🤯 Source: Giphy</figcaption></figure><p>That’s insane and something needs to be done to solve this. Well, what if I told you there is?</p><p>Presenting…</p><h3>Cellular Agriculture</h3><p>You must have heard or read this term before unless you are living under a rock as it is a fascinating field with tons of research being done to solve this issue and many others like climate change and world hunger. Just for the context of what the “problem” really is, approximately 7.6 billion people are on planet Earth, and just today, from the time you woke up to the time you are reading this,<a href="https://www.un.org/en/chronicle/article/losing-25000-hunger-every-day#:~:text=Each%20day%2C%2025%2C000%20people%2C%20including,million%20into%20poverty%20and%20hunger."> <strong>25,000 </strong>people died from hunger</a>. <strong>1 in 7</strong> people lack access to clean water, while another <strong>1 in 9 </strong>people does not have a sufficient food source. Not only that but 800 million people, that’s right, 800 million, which is almost 2.5 times the US’s size, are malnourished. This is not from a movie or a means of guilting you for your eating habits.</p><p>No.</p><p>This is today, and it is happening on our planet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m1AQ_aKpB5LTBgd_.jpeg" /><figcaption>Tons of Food is wasted every year (Source: Unknown)</figcaption></figure><p>So all fun and jokes aside, let me elaborate on a potential solution for this issue. Now I am not saying that this will cure world hunger instantly or fix all the current issues, but it is a step in the right direction towards a green and sustainable future. It is our role as human beings to be a part of this change.</p><p>So you may be wondering :</p><h3>What is cellular agriculture?</h3><p>Well, you know what agriculture is, which is the science of cultivating the soil, growing crops and raising livestock, making it the backbone of the food industry. And we know that the word cellular implies looking at it at the cellular level.</p><p>So basically, cellular agriculture is looking at the production of agricultural products at a cellular level or, as the textbook definition says, from cell cultures. Now you may be wondering what cell cultures are? 🤔</p><p>Well, let me tell you!!</p><p><strong>Cell cultures</strong> are the growth of microorganisms such as bacteria or human/animal cells in a laboratory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/0*IICjYVNw3y7uhhG0.jpg" /><figcaption>A representation of how cultured meat leads to the same result as conventional meat but without the need to kill an animal (Source: Unknown)</figcaption></figure><p>But wait! Before you get too ahead of yourself, there are two types of cultured products which are :</p><p><strong>Acellular</strong>: made up of organic molecules like proteins and fats but contain no cellular or any living material.</p><p><strong>Cellular</strong>: Pretty self -explanatory, which is cellular products made of living cells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKrKfD11G0gRAe26SkyVsA.png" /><figcaption>This not-so-complicated diagram shows how the agricultural products can be classified as cellular and acellular Source: New Harvest</figcaption></figure><p>Products harvested from cell cultures taste and look exactly the same as those collected from the animal/plant itself as they are the same, but the difference is how they are made.</p><p>Currently, the technology needed to make the end-products feasible is still in the early stages of development and is one of the reasons it is not commercially available. The ultimate goal is obvious: which is to get cell-based meat to a point where no animals need to be killed, and it is available everywhere at an affordable cost. Non-Profit organizations such as the<a href="https://www.gfi.org/"> Good Food Institute</a> are currently supporting businesses to get their products to the market. Don’t be surprised if you are shopping at a grocery store and happen to see a meat package that was produced using cell cultures because that day isn’t far from now.</p><p><strong>Fun Fact:</strong><a href="https://www.businessinsider.com/kfc-will-test-3d-printed-lab-grown-chicken-nuggets-this-fall-2020-7"> KFC</a> is working on 3D-printing their chicken nuggets making them the first fast-food company actually to work on commercializing cultured meat🍖</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PRk5MiMGURCskVWN.png" /><figcaption><a href="https://www.novameat.com/"><em>Novameat’s </em></a><em>latest 2.0 version of its 3D-printed vegan steak (Source: Novameat)</em></figcaption></figure><p>Now let’s take a trip outside the field of cellular agriculture as there is also something known as plant-based meat — not to be confused with cultured meat). You are probably more familiar with plant-based alternatives as you might have had some interaction with it at your local Starbucks or Burger King, depending on your location.</p><p>In comparison to meat derived from cell cultures (cell-based meat), plant-based meat doesn’t contain any sort of meat but is instead designed to create and look like conventional meat and is derived from elements of the vegetal origin such as pea protein, soy protein and many more. This technology can be used to mimic any form of processed meat like a burger patty or nuggets.</p><p>Some companies that are in the plant-based market and have garnered loads of hype over the last few months would be the two rivals<a href="https://impossiblefoods.com/"> Impossible Foods</a> and<a href="https://www.beyondmeat.com/"> Beyond Meat</a>, both of which have engineered burgers that imitate the taste of ground meat even though it is meatless. Two Canadian companies currently embracing meatless alternatives are<a href="https://www.mapleleaf.ca/"> Maple Leaf</a> and<a href="http://yvesveggie.com/"> Yves Veggie Cuisine</a>, who are working on providing nutritious plant-based snacks tailored towards Vegans and Vegetarians.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D8tmkazY6NP1ymNm" /><figcaption>A depiction of the plant-based Beyond Meat and Impossible Burger (Source: USA Today)</figcaption></figure><p>Now the question we have all been waiting for…</p><p>Are plant-based meats healthier than conventional ones?</p><p>The answer to that would be, it depends. Plant-based meat does not have cholesterol and has a bit of fibre that conventional meat lacks, but are generally higher in sodium. However, plant-based options allow us to reduce our meat consumption and better balance our diet.</p><p>Eating plant-based meat helps us reduce our red meat intake, which is way too high as it stands with an average American eating 2.4 burgers per day. Remember what I said at the beginning of this article: 1 pound of beef requires about 1800 gallons’ worth of drinking water?</p><p>Meeting the demands of consumers requires a steady supply of meat, which can lead to the use of natural resources at an accelerating and mindblowing pace. Therefore, plant-based options are more sustainable and environmentally-friendly and are better for both our planet and animals. It would reduce the consumption of our resources drastically and slow down the accelerated rate of climate change.</p><p>Although cell-based and plant-based alternatives rely on different technologies, both are here to help us create a sustainable food system. They intend to provide consumers with more choices that have a lower environmental impact. Even though this may have been the first time you heard about cellular agriculture, there is lots of potential and room for improvement, which will provide solutions to quench people’s hunger by refraining the need to slaughter animals and wasting water or land resources.</p><p>Cellular agriculture will revolutionize the food industry for generations to come, and you could be at the forefront of this change.</p><p><em>Disclaimer: Currently, most Research and Development is being conducted in labs. Hence the title stating labs being the “new farms,” but as cell-based products improve in terms of cost-effectiveness and quality assurance, they will be produced at mass scale in larger facilities.</em></p><p>If you have made it to the end of this article, please share it with your friends to bring awareness about this field and educate individuals about this fascinating topic.</p><p>This article is one of many developed to broaden your understanding of this field with loads of groundbreaking research and developments.</p><h3>About the Author :</h3><p>Zaki is an ambitious student who is currently working with Cellular Agriculture Canada to look into the field of Cellular Agriculture in means of educating today’s youth about this interesting field.</p><p>To learn more about Zaki, visit:<a href="https://zakirangwala.com/"> https://zakirangwala.com//</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zy5O_XDFF_8FR_V-" /></figure><p>Sign up to our <a href="https://www.cellag.ca/">mailing list</a> to receive our newsletter, where new articles will be shared!</p><p><a href="https://www.cellag.ca/">To learn more about Cellular Agriculture Canada, visit https://www.cellag.ca/</a></p><p>And follow our socials :</p><p><a href="https://www.instagram.com/cellagcanada/">Instagram</a></p><p><a href="https://www.tiktok.com/@cellagcanada">Tiktok</a></p><p><a href="https://twitter.com/cellagcanada">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5dbda7f3cbe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cellular-agriculture-canada/cellular-agriculture-are-labs-the-farms-of-the-future-b5dbda7f3cbe">Cellular Agriculture: Are labs the farms of the future? 🧫</a> was originally published in <a href="https://medium.com/cellular-agriculture-canada">Cellular Agriculture Canada</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRISPR: The Answer to Climate Change?]]></title>
            <link>https://rockinzaki.medium.com/crispr-the-answer-to-climate-change-c6f99589ec41?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6f99589ec41</guid>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[crispr]]></category>
            <category><![CDATA[genomics]]></category>
            <category><![CDATA[gene-editing]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 12:19:52 GMT</pubDate>
            <atom:updated>2020-01-14T12:21:30.591Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m sure all of you have heard about climate change and the implications of it in our life. From the devasting forest fires that occurred earlier in the Amazon and currently in Australia threatening thousands of species to the disastrous flood and cyclones, Mother Earth🌎 is trying to send us a message and maybe it’s time we open our eyes and address this issue!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*0JY-RxfcVJal-UFlkIK6Mw.jpeg" /><figcaption>Hurricane observed from the Internation Space Station(Courtesy: NASA)</figcaption></figure><h3>CRISPR in a Nutshell🥜</h3><p>CRISPR: <strong>Clustered Regularly Interspaced Short Palindromic Repeats</strong> — is a gene-editing tool that can alter DNA sequences and modify gene function that has received a lot of hype lately! But what’s the hype about?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUKbrwPL3wXE%3Fstart%3D25%26feature%3Doembed%26start%3D25&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUKbrwPL3wXE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUKbrwPL3wXE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5681fa08a1a218680ac2680eb6d0726/href">https://medium.com/media/d5681fa08a1a218680ac2680eb6d0726/href</a></iframe><p>To recap, CRISPRs are specialized stretches of DNA that consist of the protein <strong>Cas9 </strong>which is an enzyme that acts like a pair of molecular scissors, capable of cutting these strands and a guide RNA that can recognize the sequence of DNA that can be used to be edited. What this basically means is that first scientists identify a specific sequence in the human genome that is posing as a health problem and create a specific guide RNA to recognize these combinations of <strong>A</strong>’s, <strong>T</strong>’s, <strong>C</strong>’s and <strong>G</strong>’s in the DNA. This guide RNA is then attached to the CAS9 enzyme that targets these sequences and cuts the DNA at which point the genome can be modified by adding or deleting sequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_aUKUEHs7ue9ktlP" /><figcaption>Diagram outlining the cut and paste methodology of CRISPR</figcaption></figure><p>But’s it not just cut and paste. CRISPR’s different from any of the other traditional methods of genetic engineering because</p><ul><li>Allows genes to be edited simultaneously</li><li>Delivers protein to particular genes to fine-tune/polish their activity</li><li>Conventionally, a gene called a marker had to be inserted to identify the cells that were successfully edited while CRISPR can make <strong>markerless </strong>changes</li></ul><p>Essentially, CRISPR has the potential to correct genetic defects, treat diseases and also improve crops.</p><p>Now let’s see how this tool can be used to build new pathways to tackle the environmental challenges caused by climate change!</p><h3>1.) Biofuels💩</h3><p>The use of bioenergy is a promising solution to the world’s energy crisis as plant and animal by-products can be a very useful resource for the generation of energy making biofuel one of the cheapest ways to generate fuels. Plants, Bacteria and Algae have the potential to produce this fuel. For example, algae are organisms that have the potential to store energy- if starved from certain nutrients and so <a href="https://www.nature.com/articles/nbt.3865">a group of researchers from California</a> used CRISPR to knock out 18 transcription factors in algae that regulated lipid production resulting in the lipid production being doubled and the means to store energy more efficiently. Another use case is increasing the efficiency of cells that already produce biofuels and accelerating the process like certain bacteria who feed on waste or plants whose cell walls produce methane.</p><h3>2.) Bioplastics🥤</h3><p>Other than fuels, plastics are also major pollutants for the environment, and with the demand for plastics only going up, we need an organic-based alternative or a bioplastic. Fortunately, certain bacteria produce <a href="https://www.sciencedirect.com/science/article/pii/S0964830517300276"><strong>Polyhydroxyalkanoates</strong> or <strong>microbial polyester</strong></a> which are essentially bioplastics. Recently, CRISPR was used to genetically engineer the bacterial species,<strong> </strong><a href="https://biotechnologyforbiofuels.biomedcentral.com/articles/10.1186/s13068-018-1170-4"><strong>Ralstonia Eutropha</strong></a>, improving bioplastic production while there are also many experiments being done on <a href="https://www.sciencedirect.com/science/article/pii/S0958166917301994">synthesizing plastics </a>using CRISPR.</p><h3>3.) Biosensing &amp; Bioremediation🔎</h3><p>Taking hundreds of years to decompose, plastics are not ideal posing as a threat to many species and our environment itself. But microbes could be <a href="https://www.ncbi.nlm.nih.gov/pubmed/29377615">genetically engineered to help degrade plastics</a> as some fungi and bacteria have naturally evolved to decompose specific compounds found in plastic. CRISPR could be used to enhance this process. This procedure can also be used to clean up oil spills, improving wastewater treatment and maybe even genetically engineering plants to sink more carbon. Biosensing is where microbes or plants are equipped with sensors or any means to detect any invasive compounds that posing as a threat to the environment that can then be dealt with. This is currently being used to diagnose illnesses such as Alzheimer&#39;s and cancer at an early stage, so they can be treated effectively or prevented entirely.</p><h3>4.) Reducing Greenhouse Gas Emissions⛽</h3><p>Greenhouse gases are one of the main causes of global warming and with the help of CRISPR, we can address the biological sources of these gas emissions. <strong>Methane </strong>is a greenhouse gas that has several producers like cattle, goat, sheep but is thought mainly to come from bacteria. Some of them reside in wetlands, guts of cows or flooded fields of rice. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3691002/">The genetics of the cows or the grass they eat can be tweaked</a> so less methane is produced while rice can also be genetically modified to restrict bacterial growth keeping more methane in the ground.</p><p>These are not all but some of the ways that this powerful gene-editing tool can be used to develop technologies that can help protect the environment. With unlimited use-cases of this technology, the possibilities are endless! But, as with any new technology, it will be important to discuss the ramifications and benefits of using CRISPR to solve these environmental problems.</p><h3>Key Takeaways</h3><ul><li>With the human population constantly increasing and so our demand for resources, our environment is drastically being affected and newer technologies that are more sustainable and efficient are being developed</li><li>CRISPR is a gene-editing tool that can modify or alter DNA-sequence with the potential to correct genetic defects, treat diseases and also improve crops</li><li>Biofuels and Bioplastics can be genetically engineered using CRISPR by modifying genes of plants and bacteria, reducing our dependence on non-renewable resources such as fossil fuels</li><li>Biosensors can be used to detect the presence of bioweapons or pathogens that are polluting the environment</li><li>The genetics of cattle and grass can be tweaked to produce less methane which is one of the most potent greenhouse gases that are polluting our environment</li></ul><p>And that’s a wrap!</p><p>Thanks for reading!</p><p><strong>If you enjoyed this article, don’t forget to</strong></p><ul><li>Share it with your network</li><li><a href="http://eepurl.com/gE3n6z">Join </a>my monthly newsletter</li><li>Check out my <a href="https://www.linkedin.com/in/zaki-rangwala-49b8a5153/">LinkedIn</a> here</li><li>Check out my <a href="https://tks.life/profile/zaki.rangwala">portfolio </a>to keep updated with my progress and learn more!</li><li>Lastly, don’t hesitate to give me a clap (or 50 😄)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6f99589ec41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regenerative Medicine: One Step Closer to Immortality?]]></title>
            <link>https://rockinzaki.medium.com/regenerative-medicine-one-step-closer-to-immortality-6a0e2c75ca36?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a0e2c75ca36</guid>
            <category><![CDATA[regenerative-medicine]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[stem-cells]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Fri, 18 Oct 2019 01:21:48 GMT</pubDate>
            <atom:updated>2019-10-18T09:48:16.452Z</atom:updated>
            <content:encoded><![CDATA[<p>We are all getting old! Yes, even you.</p><p>A huge chunk of the population are over <strong>sixty</strong>, some living well into their <strong>nineties</strong>. As we live longer, our joints, organs, and tissues begin to deteriorate, putting us in a bad state at that age. Currently, with medical technologies, we can perform extraordinary feats of <em>augmentation </em>and <em>replacement</em>, <em>rejuvenation</em>, <em>transplantation</em>, and utilize <em>pacemakers </em>and <em>artificial joints</em>.</p><p>But regenerative medicine goes one step further by promising the repair of dysfunctional body parts with our own living tissue!🤯</p><figure><img alt="Hand being injected with dermal fillers in the process of rejuvenation" src="https://cdn-images-1.medium.com/max/1024/1*vaFMVVO0lRtWQiRmGSbpzA.jpeg" /><figcaption>Hand Being Rejuvenated (Source Unknown)</figcaption></figure><h3>The Problem</h3><p>We have about <strong>210 different types</strong> of cells in our body that each play a crucial role in executing bodily functions.</p><p>In an average adult, between 50 to 70 billion cells<strong> </strong>die every day. Cells are always created and destroyed in the human body and in fact, just as you are reading about<strong> </strong>300 million cells died in your bodies!! <strong>Apoptosis </strong>is a form of programmed cell death and is vital as it maintains the balance of cells in the human body. While <strong>necrosis </strong>is the death of cells due to injury and is unplanned but can be fatal as it causes an inflammatory response causing patches of tissue to die which is not good.</p><p>But doesn’t that mean we would have to compensate for those cells that have died?</p><p>As we grow up, we get hurt and injured which results in our body parts becoming unusable as structural integrity is lost. Cells accumulate damage throughout our life which eventually leads to death ☠.</p><figure><img alt="Picture of a cell exploding" src="https://cdn-images-1.medium.com/max/1024/1*3p8NsMmyvLTTjcp8P9uI4w.jpeg" /><figcaption>Cell bursting and dying after excessive damage (Source Unknown)</figcaption></figure><h3>The Solution</h3><p>Many times we obtain injuries that are untreatable or permanently damage our organs, but we can use our body’s power to heal and cure these injuries!</p><p>What I mean by this is that we can essentially regenerate living tissue to replace the damaged one! Umm… Well not exactly.</p><p>There are already many species that can regenerate; Salamanders🦎 can often regrow their <strong>limbs</strong>, <strong>tails </strong>and in some cases even their <strong>eye</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Cjc0m921guxHBd-cmf3DVg.jpeg" /><figcaption>Salamanders 🦎 have a chain of proteins that activates new limb growth</figcaption></figure><p>THAT’S CRAZY!</p><p>But unfortunately, the only organ in the human body that can grow cells and regenerate is the <strong>liver</strong>.</p><p>So how can we allow the rest of our body to perform this trick?</p><p>In order to do so, we would have to utilize a <strong>3D printed biomaterial scaffold</strong> of the tissue being built coated with layers of the patient&#39;s own cells, which is then harvested in an artificial environment mimicking the human body. This is what is known as <strong>tissue engineering</strong> which can already produce viable veins, bladders, and bone while more complex structures like the kidney and lungs are not far away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*S0zCBcSgTnCCW5-ZqSYhUA.png" /><figcaption>Researchers at the North Carolina hospital have printed ear, bone and muscle structures and successfully implanted them into animals.</figcaption></figure><h3>Forms of Regenerative Medicine</h3><p>There are many approaches that all work on amplifying the natural healing process of the human body in this field that include :</p><h4>1.) 🔑 Tissue Engineering</h4><p>A method involving a biologically compatible scaffold that is printed with cells from the subject, to whom the scaffold is to be implanted. This procedure takes place at the site where new tissue needs to be formed. This process of 3D printing is known as <strong>additive manufacturing </strong>which is the ability to fabricate objects using various materials.</p><p>Even though millions of patients have been treated using this form of engineering devices, this technology is still in its infancy as groundbreaking research is being done to make this process efficient and able to produce structures that are more complex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yhV9-V342Fzy1ZLw6jBMKg.jpeg" /><figcaption>BIOLIFE4D attempting to print a 3D version of the heart viable for transplant ♥</figcaption></figure><h4>2.) 🔑 Cellular Therapies</h4><p>Millions of adult stem cells are found in every human. Stem cells are one of the elements that are used to repair the human body. There have been many studies and clinical trials that have illustrated that if stem cells are harvested and injected back into the human body where there is damaged tissue, then the reconstruction of tissue takes place under the right circumstances which involves the other forms of regenerative medicine.</p><p>These cells can be collected from many sources like <strong>blood</strong>, <strong>fat</strong>, <strong>bone marrow</strong> and have tons of applications with the possibilities being limitless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*PBw_4j72jW5tZ-NKbaK5KQ.jpeg" /><figcaption>Source Unknown</figcaption></figure><h4>3.) 🔑 Medical Devices and Artificial Organs</h4><p>This is yet another form of how regenerative medicine can be used that can use the body’s property of healing and accelerate this process. There are many cases when an organ fails and the patient has to be placed on a waiting list to receive a transplant from a viable donor which both you and I know can take a long time.</p><p>Not only that but even after the organ is transplanted, the patient may experience side effects as the donor is required to take <strong>immunosuppression drugs</strong> which is essentially anti-rejection drugs so the organ doesn’t get rejected by the patient. This is very unhealthy and is why many medical devices and artificial organs are being developed to give the user a perfectly healthy alternative to the native organ or tissue. One example of this is circulation support; many devices such as <strong>Ventricular Assist Devices(VADs) </strong>are being used as a bridge to a heart transplant that can also be used for a long — term support system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gzV4loomcZM0t96_3ApA1g.png" /><figcaption>Tools such as VADs are used to assist in cardiac circulation which is used either to partially or completely replace the function of a failing heart</figcaption></figure><h3>Implications</h3><p>Having a limited population, adult stem cells are hard to collect but promise repairs for conditions such as sclerosis, types of diabetes, heart disease and much more. Technologies incorporating nano-technology are also being used to target spinal injuries, joint degeneration, and failing organs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYfWrZjgmjeOps3RZzdY_w.jpeg" /><figcaption>A form of stem-cell therapy where stem cells are being injected into patient (Photo by <a href="https://unsplash.com/@chang612?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Chang Duong</a> on <a href="https://unsplash.com/s/photos/injection?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><p>The applications of this topic are endless and we have just explored the tip of the iceberg as this technology is still at its infancy and tons of groundbreaking research needs to be done in order to solve the biggest problem, “immortality”. But let’s not get too ahead of ourselves as that’s a topic for another time, so keep an eye out for that! 😉</p><p>The role of regenerative medicine is to improve our life span by making it healthier rather than longer which will happen anyway if a healthy routine is being followed.</p><p>But do we even want to invest in longevity when we are already burdened with problems such as climate change and overpopulation?</p><p>Is it even ethical to do so?</p><h3>Key Takeaways</h3><ul><li>We can already perform transplants and create medical devices with our current technology but with regenerative medicine, we can take it one step further</li><li>Better chance of the body accepting tissues or organs specifically engineered for the patient as their <strong>STEM cells</strong> are utilized which contains their genes and DNA so it is like growing their own tissue in a lab and inserting it back in the body</li><li>Less chance of rejection when using such technologies since traditional transplant from donors are not specifically tailored towards the patient</li><li>We are constantly aging but with the help of regenerative medicine, we can increase our healthspan which will result in a longer lifespan.</li></ul><p>And that’s a wrap!</p><p>Thanks for reading!</p><p><strong>If you enjoyed this article, don’t forget to</strong></p><ul><li>Share it with your network</li><li><a href="http://eepurl.com/gE3n6z">Join </a>my monthly newsletter</li><li>Check out my <a href="https://www.linkedin.com/in/zaki-rangwala-49b8a5153/">LinkedIn</a> here</li><li>Check out my <a href="https://tks.life/profile/zaki.rangwala">portfolio </a>to keep updated with my progress and learn more!</li><li>Lastly, don’t hesitate to give me a clap (or 50 😄)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a0e2c75ca36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are Unmanned Aerial Vehicles the Future?]]></title>
            <link>https://rockinzaki.medium.com/are-unmanned-aerial-vehicles-the-future-7d4ea902eacd?source=rss-e1869e0fd1e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d4ea902eacd</guid>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[aerial-vehicle]]></category>
            <category><![CDATA[drones]]></category>
            <category><![CDATA[unmanned-aerial-vehicle]]></category>
            <dc:creator><![CDATA[Zaki Rangwala]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 03:25:20 GMT</pubDate>
            <atom:updated>2019-09-17T03:25:20.802Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a world where you order a pizza or some clothes and receive it almost instantly. Wouldn’t that just be amazing?</p><p>Well, this is now possible through the power of <strong>UAVs </strong>such as <strong>drones</strong>. From delivering food to spying on your next-door neighbour, drones can be used to perform a variety of tasks that can sometimes be useful but also really creepy 👀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aAVITpNNzFp179mK" /><figcaption>Photo by <a href="https://unsplash.com/@tylercasey?utm_source=medium&amp;utm_medium=referral">Tyler Casey</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What are Drones?</h3><p>In a nutshell, a drone is a <strong>UAV(Unmanned Aerial Vehicle)</strong> that is normally operated by a human with a controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIW1FXv6J7w6HPMJgF3Zqw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@heinrichheld?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christian Langenhan</a> on <a href="https://unsplash.com/search/photos/drones?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>But what if they could operate themselves?</p><p>Wouldn’t that be even cooler?</p><p>Well, it is cool and is currently happening, so let’s get into it!!</p><p>UAVs like drones can be used to implement precision farming by mapping and measuring the best areas to grow crops and determine solutions for problems. But not only that, in addition to monitoring crops, they could change lives by providing internet to those who don’t have access to it, transporting goods to consumers at an unbeatable pace, monitoring buildings for flaws and the list just goes on. Don’t be surprised if you see drones delivering diapers or mail in the near future because it isn’t that far. We already possess the technology to allow drones to function autonomously, but due to regulations from the <strong>FAA</strong>, such services can’t be put into effect yet.</p><p>For example, Amazon came out with a new service called <a href="https://www.amazon.com/Amazon-Prime-Air/b?ie=UTF8&amp;node=8037720011"><strong>Prime Air</strong></a> that promised to deliver packages 30 minutes after the order being placed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*rUPX4yBexj-AWrtHowDMbA.jpeg" /><figcaption>Credit: Amazon</figcaption></figure><p>One other key advantage to drones is that they can go where humans can’t, so let’s say there is an emergency, Drones can be used as surveillance tools to study the scene and inform first responders by creating maps to avoid them from going in blind. This can be very useful when there are natural disasters as many lives could be saved.</p><p>Drones can not only be used for commercial use but also consumer use. DJI is a leader in drone tech and sells drones for commercial and consumer use.</p><h3>How do Drones work?</h3><p>Drones use sensors and scanners to map the environment and understand where the obstacles are to travel safely. While drones have some level of autonomy like flying, hovering or navigating without input from a pilot, they require controllers that utilize radio waves to communicate with it. And not only that but they also require tons of tech like ultrasonic sensors and a camera to create a map and so it could triangulate itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEjbNYaInipDywvQ_m9mJw.jpeg" /><figcaption>Credit: Unknown</figcaption></figure><p><strong>Parts of a Drone :</strong></p><p>All drones need to include :</p><ul><li><strong>Gyroscope</strong>: Detects the direction of the drone</li><li><strong>Accelerometer</strong>: Measures the speed of the drone</li><li><strong>GPS</strong>: Maps space for the drone</li><li><strong>Processor</strong>: Powers the drone</li><li><strong>Camera</strong>: Allows drones to capture images and be more autonomous</li></ul><h3>Why Drones?</h3><p>Some of you may be thinking why drones instead of cars??</p><p>Drones just make more sense as the skies are clear and therefore faster while roads are more congested. Even though Autonomous systems can have accidents, they learn from their mistakes and improve so the same mistake doesn’t happen again.</p><p>The problem in<strong> 94% of the accidents </strong>that take place every year is <strong>human </strong>error. Autonomous vehicles aim to reduce human error entirely as they can’t text and drive. They can’t drink and drive and they can’t even look away from the road to tend to noisy passengers, but instead, they are always focused on their activity. This is without taking into account the level of efficiency a network of drones or a “<strong>swarm</strong>” would achieve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWGLIvKt0fDnDmUe0pxBVw.jpeg" /><figcaption>Credit: Unknown</figcaption></figure><p>Just think about it…</p><p>A system of drones where each drone communicates with one another to plan their respective routes to reduce overall traffic and make navigation for each drone much better.</p><h3>What are they being used for?</h3><p>Drones are being used by insurance companies to assess damages, while farmers use it to collect crop and soil data. Drones can provide huge carbon footprint reductions, as it leads to less emission per delivered package. Drones need not be used only for ‘convenience deliveries’ like fast food, but can also be used to provide great social impact</p><p>They are useful tools in combatting poaching, delivering critical medicines to remote areas, and assisting in the search and rescue of refugees.</p><p><strong>Zipline </strong>is the world’s first drone delivery system to operate at a national scale by transporting blood and plasma to communities in need in countries like Rwanda.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*HFsmJ1iKGTQlYO4fQhS1zw@2x.jpeg" /><figcaption>Credit: Zipline</figcaption></figure><p>Drones are used in situations where manned flight is considered too risky or difficult. They provide troops with a 24-hour “<strong>eye in the sky</strong>”, seven days a week. Each aircraft can stay aloft for up to 17 hours at a time, loitering over an area and sending back real-time imagery of activities on the ground. They also possess the capability of reaching the most remote areas with little to no manpower needed and require the least amount of effort, time, and energy. This is one of the biggest reasons why they are being adopted worldwide, especially by these four sectors: Military, Commercial, Personal, and Agriculture/Farming. Drones are also used for pipeline surveillance and damage detection.</p><h3>Key Takeaways</h3><ul><li>UAVs are being developed by companies such as <a href="https://x.company/projects/wing/">Google </a>and <a href="https://www.amazon.com/Amazon-Prime-Air/b?ie=UTF8&amp;node=8037720011">Amazon </a>to deliver goods in a more faster, cheaper and more environmentally friendly way than what’s possible on the ground</li><li>Federal Aviation Authority is partnering up with its UAS integration pilot program to accelerate unmanned aerial systems</li><li>Drone systems are utilizing advanced AI to communicate with fellow drones as an extra precaution to avoid collisions and navigate tricky urban cityscapes including skyscrapers</li><li>Being used to deliver critical medicines to remote areas, and assisting in the search and rescue of refugees and scanning areas after natural disasters</li><li>From quick deliveries at rush hour to scanning an unreachable military base, drones are proving to be extremely beneficial in places where a man cannot reach or is unable to perform in a timely and efficient manner</li></ul><p><em>And that&#39;s a wrap!</em></p><p>Thank you for reading!</p><p><em>If you enjoyed this article don’t forget to give it a clap! 👏</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d4ea902eacd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>