<?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 Syed Muhammad Jafri on Medium]]></title>
        <description><![CDATA[Stories by Syed Muhammad Jafri on Medium]]></description>
        <link>https://medium.com/@syedmhjafri?source=rss-cc4fcb041ac3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*miFmB-dsbeiBq60a6WzKgA@2x.jpeg</url>
            <title>Stories by Syed Muhammad Jafri on Medium</title>
            <link>https://medium.com/@syedmhjafri?source=rss-cc4fcb041ac3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:28:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@syedmhjafri/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[Breast Cancer detection — Malignant vs Benign Tumors]]></title>
            <link>https://medium.com/@syedmhjafri/breast-cancer-detection-malignant-vs-benign-tumors-f122720602cd?source=rss-cc4fcb041ac3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f122720602cd</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[support-vector-machine]]></category>
            <dc:creator><![CDATA[Syed Muhammad Jafri]]></dc:creator>
            <pubDate>Sat, 25 May 2019 23:24:43 GMT</pubDate>
            <atom:updated>2019-05-25T23:24:43.374Z</atom:updated>
            <content:encoded><![CDATA[<h3>Breast Cancer detection — Malignant vs Benign Tumors</h3><p>This article explains a basic application of Machine Learning (ML), i.e. a <strong>binary classification problem</strong>. This problem is very flexible and simple enough that almost anyone with a basic understanding of statistics can understand and implement this solution as one sees fit to one&#39;s application.</p><p>Before we begin, I would like to describe the problem and its solution very quickly. In the machine learning world, basically, there are two types of problems.</p><ol><li>Regression.</li><li>Classification.</li></ol><p>Regression problem solutions are implemented where are predicting a future “continuous variable”. i.e. a continuous value. Common examples of continuous variables include, a) price of a stock, b) the weight of a child, c) temperature, etc.</p><p>Classification problem solutions are implemented where we are predicting discrete outputs. Common examples of discrete variables include, a) Cat vs. Dog, b) classification of digits into 10 numbers (0–9), c) Identification classification of objects in an image i.e. books, lamps, tables, chairs, etc.</p><p>This problem is a sub-problem of classification called “Binary Classification” because we only have two outputs to choose from i.e benign or malignant. This problem can be solved with a number of different and advanced techniques, but we are using a very basic and easy to understand technique called Support Vector Machines (SVM) for our binary classification problem.</p><p>By basic, I mean the understanding of the concepts, but extremely powerful in application. Please note that Logistic Regression can also be used to solve this problem. Logistic Regression is a process of finding out the solution using deep neural networks, using “sigmoid” classifier in the last layer of the NN (Neural Network). The good thing about the NN model for image classification is that it can be used to classify an even greater number of objects by replacing the last layer’s activation function by “softmax”. Sigmoid is a special case of softmax, with only 2 possible outcomes.</p><p>Since there are a number of solutions to similar problems with Logistic Regression, I believe I should provide a different approach to binary classification using SVM.</p><p>Please check my Github repo below: <a href="https://github.com/mohammadjafri1992/SVM-Breast-Cancer-Diagnosis">https://github.com/mohammadjafri1992/SVM-Breast-Cancer-Diagnosis</a></p><p>The repo contains a Jupyter notebook which itself contains a walkthrough of the code in detail. If you find anything off or a mistake, please let me know and I’ll fix it.</p><p>The Jupyter notebook contains a detailed explanation of each step. Providing such explanations in this post would create a disconnect between the explanation and the code. So I would like you to check out the repo for a more detailed explanation of each step. This post is about the possible applications of binary classification.</p><p><strong>Some Application of Binary Classification</strong></p><ol><li>Sentiment Analysis — Classification (Good/Bad)</li></ol><p>This is one of the classical applications of binary classification using SVM in a product based environment. For those who are familiar with the surveys, we only consider 1,2,3 and 8,9,10 out of a scale of 0–10 for each response and throw away the survey responses 0,4,5,6,7 because these responses don’t give us any useful information about whether to improve or eliminate a feature.</p><p>Sentiment classification, in this case, is a good application since we can easily train our model on the full range (0–10) of responses, so we get good support from the support points (4–7) for the model. In the actual prediction, this becomes much easier for the model to classify the response as being good or bad.</p><p>2. Disease detection — Present or not.</p><p>In our above example, we are using the example of Breast Cancer. We can use the same model to classify other diseases as well. e.g. Presence or absence of tumors. etc.</p><p>3. Quality Testing / Quality Analysis — Pass/Fail</p><p>This is the most common application of SVMs in the manufacturing industry where the products are classified by the thousands every hour. If done by humans, this would require an enormous number of workers to classify the products but using SVMs, we can use a single machine to perform the quality analysis on manufactured products.</p><p><strong>Conclusion</strong></p><p>There are several different ways to perform binary classification, like Random Forest, Decision Trees, Logistic Regression, Neural Networks, SVM, etc. Using a specific model shouldn’t depend on if the programmer knows how to program it, but rather its performance on a specific application.</p><p>Most of the time, we perform multiple analyses for a specific problem and test the output of the model. The model with the highest accuracy gets tested more and then selected as the final model to be put into production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f122720602cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Smart Solutions for the Modern World]]></title>
            <link>https://medium.com/@syedmhjafri/creating-smart-solutions-for-the-modern-world-af2e15a57754?source=rss-cc4fcb041ac3------2</link>
            <guid isPermaLink="false">https://medium.com/p/af2e15a57754</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Syed Muhammad Jafri]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 22:51:57 GMT</pubDate>
            <atom:updated>2019-03-17T22:51:57.354Z</atom:updated>
            <content:encoded><![CDATA[<p>In the age of buzzwords like Artificial Intelligence, Deep Learning, Machine Learning, and Data Science, the most important principles of problem-solving take the back seat. This was not the original intention of these technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7qUQnUKnNjIDgEpQKlCCg.jpeg" /></figure><p>In my blog posts, I would shed some light on what these buzzwords are, and how we can use them to solve our problems. Solving problems should be our ONLY focus. Not the “HOW” part. Leave it to the smart researchers and academics who spend their careers in researching the hell out of the “how” question.</p><p>As technologists and practitioners, our goal should be to define the problem correctly and come up with an appropriate solution, preferably using the <a href="https://en.wikipedia.org/wiki/Occam%27s_razor">Occam’s razor</a> i.e. simpler solutions almost always are the correct ones.</p><p>In my future blog posts, I will present some common industry problems and their solution using a simple machine learning approach. Of course, there are almost always multiple ways to solve a problem, but I will try to create turn-key solutions so that anyone with even the basic understanding of programming and statistics can use them.</p><p>The most important thing about applying machine learning models is not the application/use part. It is the understanding of the fundamentals of a business and its problems, and the ability to model the problem.</p><p>I will try not to limit the scope of the posts to the tutorials. I will also be posting the advancements in the field of AI, Robotics, Machine Learning, and Deep Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af2e15a57754" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>