<?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 Prisha Bhavsar on Medium]]></title>
        <description><![CDATA[Stories by Prisha Bhavsar on Medium]]></description>
        <link>https://medium.com/@prishabhavsar?source=rss-6c63e20199dd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tQkoFTalV_8-B9PK3PdlpQ.jpeg</url>
            <title>Stories by Prisha Bhavsar on Medium</title>
            <link>https://medium.com/@prishabhavsar?source=rss-6c63e20199dd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:05:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prishabhavsar/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[Is There Ever Going to Be a Cure?]]></title>
            <link>https://medium.com/@prishabhavsar/is-there-ever-going-to-be-a-cure-814fa1efbc09?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/814fa1efbc09</guid>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 04:50:40 GMT</pubDate>
            <atom:updated>2023-03-03T02:09:44.940Z</atom:updated>
            <content:encoded><![CDATA[<p>Endometriosis is a disease that affects 1 in 10 women globally. This means globally, 176 million people are affected by this disease. Despite this, current treatments to endometriosis is limited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Bbv4W858LsuB2BKoGhWBBQ.png" /></figure><p>Common drug treatments include:</p><ul><li><strong>Over-the-counter pain medications</strong> such as NSAIDs like ibuprofen, but are ineffective in many cases.</li><li><strong>Supplemented hormone therapy</strong> can in some cases relieve pain and inhibit disease progression. By regulating the body’s hormone levels, it stops hormonal fluctuation which leads to pain.</li><li><strong>Hormone-based contraceptives </strong>can be an effective therapy. They work by decreasing fertility via prevention of endometrial tissue build-up.</li></ul><p>All these treatments are like bandages because they do not fix the problem permanently, and instead are a temporary fix. They are simply fixes for the symptoms and not the actual cause.</p><p>The reason a strong solution is not implemented is because a lot is still unknown about its root, but there is evidence that proves that it is somewhat genetic. An Oxford University study stated that endometriosis has 50% heritability. This is a good thing because we can more thoroughly decode endometriosis. By finding the genes involved, we can target them.</p><h3><em>NPSR1 Gene</em></h3><p>Through analysing DNA from families containing at least three women diagnosed with endometriosis, scientists at the University of Oxford found a <a href="https://www.drugtargetreview.com/news/94122/exome-sequencing-reveals-genetic-drug-target-for-ocd/">genetic linkage</a> to endometriosis on chromosome 7p13–15. The gene NPSR1 was found as common thread.</p><p>Consequently, the researchers analyzed the genes in monkeys which again showed suggestive evidence. After this, a study of more than 11,000 women, including patients with endometriosis and healthy women, were also analyzed and the specific common variant in the NPSR1 gene also associated with stage III/IV endometriosis.</p><p>Identifying the NPSR1 is a big step because it helps in understanding the disease mechanisms. The NPSR1 gene encodes a protein that is involved in the regulation of inflammation and pain. By identifying this gene in endometriosis, researchers can gain a better understanding of the biological mechanisms that contribute to the development and progression of the disease. It can help in three main ways:</p><ul><li>disease detection</li><li>personalized medicine + care when battling the disease</li><li>development of new therapies</li></ul><h3><strong>Therapeutic target</strong></h3><p>Researchers have found that NPSR1 is expressed at higher levels in the endometrial tissue of women with endometriosis compared to those without the condition. This suggests that drugs that target NPSR1 could potentially be used to treat endometriosis by reducing inflammation and other pathological processes associated with the condition.</p><p>One way that NPSR1 could be targeted for endometriosis treatment is by developing drugs that selectively block the receptor. By doing so, the downstream signaling pathways that are activated by NPSR1 could be disrupted, leading to reduced inflammation and other pathological processes associated with endometriosis.</p><p>Researchers at Bayer, in scientific partnership with Oxford University, “used an NPSR1 inhibitor to block protein signaling of that gene in cellular assays and then in mouse models of endometriosis. They found this treatment led to reduced inflammation and abdominal pain, thus identifying a target for future research in treating endometriosis” (Science daily).</p><p>The researchers used a small molecule inhibitor called SHA 68 to block the activity of NPSR1 in cellular assays and found that this reduced the growth and invasion of endometrial cells in a dose-dependent manner. They did the same in mouse models of endometriosis and saw the reduction of growth and invasion of endometrial tissue.</p><p>It concluded that targeting NPSR1 with an inhibitor like SHA 68 can help treat endometriosis, but further human research must be done! It is a new area of research, but a promising one.</p><h3>Drug Development</h3><p>Another way that NPSR1 could be targeted for endometriosis treatment is by developing drugs that modulate the activity of the receptor. For example, drugs that enhance the activity of NPSR1 could potentially be used to promote tissue repair and regeneration in the endometrium. On the other hand, drugs that inhibit the activity of NPSR1 could be used to reduce inflammation and other pathological processes associated with endometriosis.</p><p>It’s important to note that developing drugs that target NPSR1 for endometriosis treatment is still in the early stages of research, and more studies are needed to fully understand the safety and efficacy of this approach. However, targeting NPSR1 is an exciting and promising avenue of research for the development of new treatments for endometriosis.</p><h3>Diagnostic Marker</h3><p>Another way that NPSR1 could be used for endometriosis is as a diagnostic marker. Studies have shown higher levels of NPSR1 in the plasma of women with endometriosis.</p><p>For example, a 2019 study published in the journal Reproductive Sciences found that NPSR1 expression was significantly higher in endometriotic lesions than in normal endometrial tissue. The researchers suggested that NPSR1 could be used as a diagnostic marker for endometriosis, as well as a potential therapeutic target. Like this, multiple papers have came to a similar conclusion, which suggests, measuring its levels can potentially be used as a non-invasive diagnostic test for endometriosis.</p><h3>Artificial Intelligence</h3><p>One potential application of AI in endometriosis is in the development of diagnostic tools. AI algorithms can be trained on large datasets of patient information, including medical history, symptoms, and test results, to identify patterns and create predictive models. AI algorithms can potentially identify patients with endometriosis earlier and more accurately than traditional diagnostic methods. As promising as this sounds, there are multiple health privacy risks associated it with. Since it deals with patient data, it is a sensitive matter and is often not available.</p><p>This is not specifically done yet, but AI can also be used to identify new drug candidates that target NPSR1. By analyzing data on the receptor, including its structure, function, and interactions with other molecules, AI algorithms can identify potential drug candidates that may be effective in treating endometriosis. This can potentially speed up the drug discovery process and lead to the development of new treatments more quickly.</p><p>Credits:</p><ul><li><a href="https://www.sciencedaily.com/releases/2021/08/210825143114.htm">https://www.sciencedaily.com/releases/2021/08/210825143114.htm</a></li><li><a href="https://blogs.bcm.edu/2021/09/16/from-the-labs-npsr1-gene-linked-to-endometriosis-revealing-a-potential-drug-target/">https://blogs.bcm.edu/2021/09/16/from-the-labs-npsr1-gene-linked-to-endometriosis-revealing-a-potential-drug-target/</a></li><li><a href="https://www.sciencealert.com/researchers-find-a-genetic-link-to-endometriosis-and-a-new-target-for-drugs">https://www.sciencealert.com/researchers-find-a-genetic-link-to-endometriosis-and-a-new-target-for-drugs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=814fa1efbc09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Endometriosis : the problem in depth]]></title>
            <link>https://medium.com/@prishabhavsar/endometriosis-the-problem-in-depth-946f6c279d3f?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/946f6c279d3f</guid>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 01:59:47 GMT</pubDate>
            <atom:updated>2023-03-01T05:01:28.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Endometriosis : the problem in depth</h3><p>Endometriosis is a disease that affects 1 in 10 women globally. This means globally, 176 million people are affected by this disease.</p><p><strong><em>That’s crazy.</em></strong></p><p>A woman’s uterus is lined with endometrial tissue. This lining is called the endometrium. This is the same tissue that sheds during the monthly menstrual cycle. The change in hormones like progesterone and estrogen, triggers the building and shedding of endometrial tissue. The body grows a new endometrium with each menstrual cycle to prepare for a fertilized egg!</p><p>Endometriosis is a condition in which endometrial tissue grows outside the uterus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*tgG1LNLlkqCXA2g1.jpg" /><figcaption>The tissue growing outside where it’s supposed to grow</figcaption></figure><p>The problem with the growing of endometrial tissue outside of uterus, is that at the end of each menstrual cycle, it thickens, breaks down and bleeds — how endometrial tissue normally acts in the uterus. However, this tissue has no way to exit your body, and gets trapped. This causes inflammation.</p><p>Common symptoms include:</p><ul><li>chronic pelvic pain</li><li>dysmenorrhea (painful and frequent menstrual cramps)</li><li>deep dyspareunia (pain with deep vaginal penetration)</li><li>infertility</li></ul><p>There is an ongoing cycle between inflammation and endometrial growth, making it unclear if the inflammation is a cause or effect of endometriosis. The inflammation can endometrial tissue stick to unwanted places, and when the tissue grows, it also causes inflammation.</p><h4><strong>How is this possible?</strong></h4><p>The exact origins of endometriosis are multifactorial, meaning that many different factors contribute to its development. However, there are some hypothesis regarding the origin of this disease.</p><p>One theory is called Sampson’s Theory of Retrograde Menstruation, and is one of the oldest theories explaining its etiology. It suggests during menstruation, when the female body sheds the endometrium, the endometrial cells are transported through the fallopian tubes into the peritoneal cavity, leading to endometriosis. As a female’s hormones change during menstruation, the deposits of tissue, grow — causing endometriosis to spread.</p><p>Think of it like the endometrial cells flowing backward through the fallopian tubes and into the pelvic cavity rather than out of the body. As a result, they can deposit in one location where they grow further.</p><p>Although, this is an old theory, through various research papers, it is being proven as incorrect. Firstly, this theory does not make sense with all types of endometriosis. Secondly, a lot of women actually experience retrograde menstruation, while very few develop symptoms or evidence of endometriosis. This does not fit with the theory, because then all women with retrograde menstruation, should have endometriosis.</p><p>Another theory is with stem cells. Stem cells are an important building block to our body. They are cells from which all other cells with specialized functions are generated. It has been proposed that stem cells could have spread to ectopic regions which can lead to the differentiation of endometrial cells and cause endometriosis.</p><p>Moreover, a theory suggests uterine structural anomalies cause endometriosis. Structural defects of the uterus can affect to dysfunctional uterine contractions and abnormal blood flow during menstruation, i.e. retrograde menstruation. This theory is challenged when cases that get a correction with the defect, still have endometriosis.</p><h4><strong>Genetics</strong></h4><p>Nonetheless, one theory a lot of scientists agree upon is genetics.</p><p>An Oxford University study stated that endometriosis has 50% heritability. This means the etiology must be somewhat genetic. This is a good thing because we can more thoroughly decode endometriosis. By finding the genes involved, we can target them.</p><p>A <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6447774/">2019 </a>study has listed more than two dozen genes that various studies have linked to endometriosis. However, researchers have yet to demonstrate that any specific gene inevitably causes the condition. Not only they say genes have to do with the disease, but also epigenetic factors that change the gene expression.</p><p>Through genetic analyses of humans and rhesus macaques, University of Oxford identified a specific gene, <em>NPSR1</em>, that increases risk of endometriosis. They first did multiple studies on rhesus monkeys, including DNA sequences and found a correlation between them having the disease and the gene. Then, they did a study of more than 11,000 women, including patients with endometriosis and healthy women, and identified a specific common variant in the <em>NPSR1</em> gene also associated with stage III/IV endometriosis.</p><p>Another example of a study done to shortlist a gene, is at Michigan State University where they identified a potential genetic target for treating an especially painful and invasive form of endometriosis.</p><p>Their research focused on a more painful type of endometriosis and found a correlation with a mutation in a gene called ARID1A. They found when ARID1A is mutated, a part of the DNA that determines the function of cells, called, “super-enhancers,” malfunction. As a result, cells that are supposed to be in the uterus, forms deep implants outside the uterus and cause a severe form of endometriosis.</p><p>DNA sequencing is an extremely powerful tool, which can help find genes associated with diseases.</p><h4>Connection Between Microbiome and Endometriosis</h4><p>The microbiome is the bacteria and microbes living in and on a human. It’s a combination of the bad and good bacteria which bring ups and downs to your health. Studies show that the microbiome can affect endometriosis, but this is also possible visa versa — creating a <strong>bidirectional</strong> relationship between your microbiome and the progression of endometriosis. Studies have shown:</p><blockquote>- “The microbiomes of women with endometriosis have lower levels of <a href="https://www.juno.bio/blog/vaginal-microbiome-101">protective <em>Lactobacillus</em> species</a> and higher levels of <a href="https://www.juno.bio/conditions/bacterial-vaginosis">bacterial vaginosis</a> associated bacteria.</blockquote><blockquote>- The endometrial microbiome of women with endometriosis is more diverse than healthy women.</blockquote><blockquote>- A study with over 140 thousand participants showed that patients with <a href="https://www.juno.bio/conditions/pelvic-inflammatory-disease">pelvic inflammatory disease (PID)</a> — an ascending infection of vaginal bacteria to the upper reproductive tract — have a three times greater risk of developing endometriosis.”</blockquote><p>This connection is fascinating because the microbiome can affect endometriosis, and there is research being done to find its help in diagnosis.</p><h4><strong>Advocating for patients</strong></h4><p>It takes an average of seven and a half years to get a diagnosis of endometriosis.</p><p>There is no easy approach to diagnosis for this disease as there isn’t a simple test. Currently the only way a clinician can test for endometriosis is by doing a laparoscopy. This invasive procedure involves a small camera being inserted into the pelvis so the doctor can look for signs of endometriosis.</p><p>In some cases, patients end up getting referred to a completely different illness. World Endometriosis Research Foundation’s study found in a clinic, that 50% of people that were referred with bowel issues to a gastroenterologist actually had endometriosis and not bowel issues.</p><p>Additionally, the normalization for the symptoms associated with endometriosis is huge. The most common is chronic pain and can make doing tasks difficult. There are misconceptions about the disease, the symptoms, and cure — so spreading information is key. Advocating for other women in your workplace and environment is extremely necessary.</p><h4>Current treatments</h4><p>Without knowing the the WHY behind the disease, it is difficult to find effective treatment. It’s crucial to know the root cause behind why it happens.</p><p>The next steps are not to find a treatment, but finding better better approaches in diagnosis, so that we can actually get to the treatment stage. Concepts like targeting a gene, understanding gene expression, and the microbiome are ways we can advance this research in this field.</p><h4>Works Cited</h4><ol><li><a href="https://www.endofound.org/what-causes-endometriosis">https://www.endofound.org/what-causes-endometriosis</a></li><li><a href="https://centerforendo.com/who-is-sampson-and-what-does-he-have-to-do-with-endometriosis/#:~:text=%22The%20Sampson%20theory%20is%20no,menstruation%20could%20implant%20and%20develop">https://centerforendo.com/who-is-sampson-and-what-does-he-have-to-do-with-endometriosis/#:~:text=%22The%20Sampson%20theory%20is%20no,menstruation%20could%20implant%20and%20develop</a>.</li><li><a href="https://drseckin.com/retrograde-menstruation-cause-of-endometriosis/">https://drseckin.com/retrograde-menstruation-cause-of-endometriosis/</a></li><li><a href="https://www.forbes.com/sites/alicebroster/2020/08/27/why-it-takes-so-long-to-be-diagnosed-with-endometriosis-according-to-a-expert/?sh=78e9fa8a6967">https://www.forbes.com/sites/alicebroster/2020/08/27/why-it-takes-so-long-to-be-diagnosed-with-endometriosis-according-to-a-expert/?sh=78e9fa8a6967</a></li><li><a href="https://www.ox.ac.uk/news/2021-08-26-researchers-identify-genetic-cause-endometriosis-and-potential-drug-target">https://www.ox.ac.uk/news/2021-08-26-researchers-identify-genetic-cause-endometriosis-and-potential-drug-target</a></li><li><a href="https://www.who.int/news-room/fact-sheets/detail/endometriosis#:~:text=Endometriosis%20is%20a%20disease%20where,and%20girls%20globally%20(2).">https://www.who.int/news-room/fact-sheets/detail/endometriosis#:~:text=Endometriosis%20is%20a%20disease%20where,and%20girls%20globally%20(2).</a></li><li><a href="https://www.juno.bio/blog/endometriosis-and-the-microbiome#:~:text=The%20microbiomes%20of%20women%20with,more%20diverse%20than%20healthy%20women">https://www.juno.bio/blog/endometriosis-and-the-microbiome#:~:text=The%20microbiomes%20of%20women%20with,more%20diverse%20than%20healthy%20women</a>.</li><li><a href="https://www.sciencedaily.com/releases/2020/11/201112100858.htm">https://www.sciencedaily.com/releases/2020/11/201112100858.htm</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=946f6c279d3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drug Discovery is Like Rock Climbing]]></title>
            <link>https://medium.com/@prishabhavsar/drug-discovery-is-like-rock-climbing-48563990e115?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/48563990e115</guid>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Thu, 30 Jun 2022 21:23:29 GMT</pubDate>
            <atom:updated>2022-06-30T21:23:29.613Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*wi4hiUhJaZYBYdTv.jpg" /></figure><p>Imagine you are rock climbing.</p><p>You decide which rock to hold on to next.</p><p>You plan your climb through the way the rocks are positioned and the different bumps and cracks.</p><p>You find cracks that are suitable for you to put your feet.</p><p>Through this process you are finding places that are helpful with you climbing.</p><p>Climbing is a good analogy for the discovery of targeted, ‘small molecule’ drugs. In order to exert an effect on a target protein that has been demonstrated to be important for the disease of interest, a drug needs first to bind to the protein surface.</p><p>This is where drug discovery comes in. It’s the process where new candidate drugs are discovered.</p><p>Now let me ask you, what would you do with $2.6 billion?</p><p>For pharmaceutical companies, the answer is develop a SINGLE drug.</p><p>Not a handful, not a few… a single drug.</p><p>It’s the estimated development cost of each Food and Drug Administration (FDA)-approved drug, which is crazy. The current process of discovering candidate are time consuming and costly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*BhgfP30hCf7NBjV3" /></figure><p>The current process is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*PwlqDSY82AYsdjlE" /></figure><p>The first step is to find a targets, which is a molecule in the body, usually a protein, that is associated with a particular disease process and that could be addressed by a drug to produce a desired therapeutic effect.</p><p>Genes are not good target, but what they are made up of are. Proteins are good targets.</p><p>Former Harvard Professor and current President of the Novartis Institutes for BioMedical Research (NIBR) <a href="https://www.novartis.com/our-company/executive-committee/james-bradner">Jay Bradner, M.D.</a> explains how proteins are like pasta.</p><p>They are better with certain fillings and they come in many, many shapes. A good drug, meanwhile, is like a good filling–it fits into the pasta well, it changes the flavor of the pasta, as well as the experience of the person eating it (the patient) for the better. Some pastas are easier to fill than others; the same is true for proteins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*-2Lmj4DCzC1RLDVm" /></figure><p>“Omics” are a group of techniques that use large data sets to identify patterns in one of the four groups of molecules, but the starting point for most target searches is genomics (DNA).</p><p>Once scientists have found the gene that codes for a pasta protein, if there isn’t already a chemical known to interact with with that protein, one can decide to test hundreds of thousands of chemicals quickly in a process called High Throughput Screening (HTS). To decide what chemicals to test, medicinal chemists often use a computational technique called <a href="https://en.wikipedia.org/wiki/Virtual_screening">virtual screening</a> that uses data from past screens to predict what molecules will interact.</p><p>The library of chemical compounds is then screened for interactions with YFP; any compounds which interact are known as “hits.”</p><p>A generated HIT is then turned into a drug. It’s often referred to as the “valley of death”. The “valley” is the gap between drugs that work in Petri dishes and mice and drugs that actually work in the human body.</p><p>On average only 1 in 20 drugs will perform well enough to even warrant entry into another complex set of processes for FDA approval, proving the current process is not cost or time efficient.</p><p>Helpful links:</p><p><a href="https://sitn.hms.harvard.edu/flash/2020/modern-drug-discovery-why-is-the-drug-development-pipeline-full-of-expensive-failures/">https://sitn.hms.harvard.edu/flash/2020/modern-drug-discovery-why-is-the-drug-development-pipeline-full-of-expensive-failures/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48563990e115" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Limiting Yourself to Mac N Cheese When You Have a Full Fridge]]></title>
            <link>https://medium.com/@prishabhavsar/ai-bias-hurts-womens-hurt-health-6d2cdc729728?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d2cdc729728</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[bias]]></category>
            <category><![CDATA[womens-health]]></category>
            <category><![CDATA[gender-bias]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 14:05:19 GMT</pubDate>
            <atom:updated>2022-04-11T02:20:05.638Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine having a full fridge but only cooking Mac n Cheese for the rest of your life.</p><p><strong>Would you do that?</strong></p><p><strong><em>No.</em></strong></p><p>If you have an entire fridge full with ingredients and food, why would you limit yourself to one dish?</p><p>The crazy part is we are doing this same thing with healthcare research and women!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iBBB8j5UlNfhmsBr.jpg" /></figure><p>Think of current healthcare research as the ingredients in fridge and the male gender as Mac n Cheese.</p><p>When it comes to health research, there are large gender gaps that limit how much we know about the difference between women and men’s health. Females are underrepresented in trials, and data is not easily available about them. We have the ingredients (health research/tech) to do so, but because of gender bias and lack of female empowerment, we aren’t doing so!</p><p>Cardiovascular disease is the number one killer of US women.</p><p>However, only 31% of cardiovascular clinical trials include women report results by sex, according to the report.</p><p>Heart disease affects both women and men differently, both in terms of risk factors and outcomes, so it’s CRUCIAL that both genders are equally represented in trials.</p><p>Men and women are different at the cellular level. That also means that diseases, treatments, and chemicals may affect the sexes differently.</p><p><strong>STILL</strong> there’s a long and storied tradition of ignoring gender when it comes to health research.</p><p><strong>80% of painkillers have only ever been tested on men despite the fact that 70% of sufferers of chronic pain are women.</strong></p><p><strong><em>Read. That. Again.</em></strong></p><p>There are big endocrine changes throughout a woman’s life that are directly linked to increased risk for depression. <strong>Yet fewer than 45% of animal studies on anxiety and depression use female lab animals.</strong></p><p>Lung cancer kills more women every year than breast, ovarian, and uterine cancers combined. In fact, researchers have found that sex hormones, particularly estrogen, influence lung cancer development and mortality. <strong>Yet women remain less likely to enroll in trials than men. </strong>Even when studies do include women, they often fail to stratify data by sex or include information about hormone status or any other gender-specific factors.</p><h3>Domino Effect With Artificial Intelligence</h3><p>Machine Learning has been on the rise since the past decade.</p><p>ML is helpful right?</p><p>Makes predictions, solves problems, and helps our society.</p><p>BUT what if I told you, ML creates problems. It creates problems for women.</p><p>If machine learning methods are implemented without careful consideration they can lead to the perpetuation of current biases.</p><p>Gender bias in AI is already prevelant, for example, natural language processing (NLP) has been shown to <a href="https://www.jstor.org/stable/44526232?seq=1#page_scan_tab_contents">perform better in male speakers than female </a>speakers 6.</p><p>The intersection between ML and healthcare is growing, which at first glance is a good thing, but it’s important to deploy models with consideration. With the rapid growth of medical AI technology, it is crucial that we identify the risk of gender bias and do all that we can to mitigate them.</p><p>Due to lack of gender equal trial practices, women died from the sleeping pill Ambien. After it was licensed, it was found it metabolised faster in men than women. Consequently, some women who took the recommended dose were found asleep carrying out daily activities.</p><p>Daily activities, not too serious you may think?</p><p>Well one woman who took Ambien remembers nothing after sleep driving in the early hours of the morning. She was found by police officers slumped behind the wheel, having stopped her car at the bottom of an exit ramp. The FDA has since reduced the dose of Ambien for women by half.</p><h3>Training Data is Important</h3><p>Women have been underrepresented in medical trials historically, and yet, they receive treatment based on the conclusions of these studies.</p><p>If we continue gender inequity into using ML, the current situation may even become worse.</p><p>If this pattern continues into the type of data we use for AI models, it will result in inaccurate results. Women go through significant hormonal and physiological changes during their lives, including menstrual cycle changes, pregnancy and the menopause. It is important that women at all life stages are represented in data sets to make sure that we can effectively assess women of all ages.</p><p>This is not a new issue, either.</p><p>In 2015, Amazon found that their algorithm used for hiring employees <a href="https://www.theguardian.com/technology/2018/oct/10/amazon-hiring-ai-gender-bias-recruiting-engine">was found to be biased against women</a>. The data used for the algorithm was based on the number of resumes submitted over the past ten years, which were mostly all men. As a result, the algorithm was trained to favor men over women.</p><p>Most data is based on men. In her 2019 award-winning book <em>Invisible Women: Exploring Data Bias in a World Designed for Men</em>, Caroline Criado Perez discusses the effects of gender-biased data. Most designs are all based on data gathered from men. Medical research has historically been conducted by men, on male bodies.</p><h4>Next Steps</h4><p>Like most problems, the first step in solving gender bias is acknowledging that there is a problem. Once we understand the problem and its risk, we can start taking steps to prevent it.</p><p>To ensure AI actually benefits many diverse groups of people, developers need to recognize this issue! To ensure AI does not have a gender bias, or if so, a very little gender bias, we can ensure diversity in the training samples through encouraging women in STEM.</p><p><strong>Next step you see a model or are creating one, ask yourself is the training data biased?</strong></p><p>Resources Used:</p><ul><li><a href="https://www.theguardian.com/lifeandstyle/2015/apr/30/fda-clinical-trials-gender-gap-epa-nih-institute-of-medicine-cardiovascular-disease">https://www.theguardian.com/lifeandstyle/2015/apr/30/fda-clinical-trials-gender-gap-epa-nih-institute-of-medicine-cardiovascular-disease</a></li><li><a href="https://www.theguardian.com/lifeandstyle/2015/apr/30/fda-clinical-trials-gender-gap-epa-nih-institute-of-medicine-cardiovascular-disease">https://www.theguardian.com/lifeandstyle/2015/apr/30/fda-clinical-trials-gender-gap-epa-nih-institute-of-medicine-cardiovascular-disease</a></li></ul><p><a href="https://www.womeningh.org/single-post/2019/09/11/gender-bias-in-health-ai-prejudicing-health-outcomes-or-getting-it-right">Gender bias in Health AI - prejudicing health outcomes (or getting it right!)</a></p><ul><li>babylonhealth.com/en-us/blog/health/ladies-and-everyone-else-lets-kick-some-bias</li><li><a href="https://medium.com/@slavaxyz/how-to-solve-the-gender-bias-problem-in-machine-learning-artificial-intelligence-google-8471bd75e80c">https://medium.com/@slavaxyz/how-to-solve-the-gender-bias-problem-in-machine-learning-artificial-intelligence-google-8471bd75e80c</a></li><li><a href="https://www.raspberrypi.org/blog/gender-bias-in-ai-machine-learning-biased-data/">https://www.raspberrypi.org/blog/gender-bias-in-ai-machine-learning-biased-data/</a></li></ul><blockquote>If this article provided insight, clap it, share it, and connect with me on <a href="http://linkedin.com/in/pnbhavsar"><strong>Linkedin</strong></a>, and follow me on <a href="https://twitter.com/prishabhavsar"><strong>Twitter</strong></a>!!</blockquote><blockquote>If you have cool articles/things related to AI, post in the comments or connect with me and let’s chat!!!</blockquote><blockquote><strong>Feel free to subscribe to my monthly </strong><a href="https://landing.mailerlite.com/webforms/landing/n0j2z9"><strong>newsletter</strong></a><strong> to follow along with my journey!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d2cdc729728" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just Dropped The “M” Word!]]></title>
            <link>https://medium.com/@prishabhavsar/just-dropped-the-m-word-c775a50b5d57?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c775a50b5d57</guid>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Fri, 01 Apr 2022 03:54:47 GMT</pubDate>
            <atom:updated>2022-04-03T17:33:43.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CxdKRbBeoU1e25BC" /></figure><p>“Menstruation,” there I just dropped the “M” word!</p><p>Menstruation is a normal and healthy part of life for most women. Roughly half of the female population — around 26 per cent of the global population<a href="https://www.unicef.org/press-releases/fast-facts-nine-things-you-didnt-know-about-menstruation#_edn1">[i]</a> — are of reproductive age. Most women menstruate each month for about two to seven days. Yet, as normal as it is, menstruation is stigmatized around the world.</p><p>Menstruation is often a taboo in our society. <strong><em>Why?</em></strong></p><p>Many girls do not have complete and accurate understanding of menstruation as a normal biological process. Educating girls before their first period — and, importantly, boys — on menstruation, builds their confidence, contributes to social solidarity and encourages healthy habits. Such information should be provided at home and at school.</p><p>In South Asia, young girls are likely to face stigma and exclusion during menstruation. Talking about women’s menstrual health is considered a taboo.</p><p>Due to this, <a href="http://unesdoc.unesco.org/images/0024/002452/245238E.pdf">according to UNESCO </a>worldwide, 131 million girls are out of school — and 100 million of those are girls of high school age. And while there are many reasons for this, periods play a major role.</p><p>I created a chatbot that helps women understand what is happening with their bodies, debunk stereotypes, and educate them about periods!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15WWQw9YB5Fbc5c2320Prw.png" /><figcaption>Chatbot in action!</figcaption></figure><p>Here’s how I did it:</p><p>For my program I used NLP and a Deep Neural Network, both of these concepts are subsections of Artificial Intelligence (AI). I used the Pytorch framework,</p><p>NLP, which is Natural Language Processing refers to the branch of computer science — and more specifically, the branch of artificial intelligence or AI — concerned with giving computers the ability to understand text and spoken words in much the same way human beings can.</p><h3>Step 1: Chatbot training</h3><p>Our first step is to initialize the training for our chatbot. I added a JSON file with the inputs/outputs I want to train the model with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxnuzwz9JUrZt6NZhoAIfg.png" /></figure><p>This will be the sample data, that will help our chatbot understand what we are saying and have sample answers to respond with. It is answers to questions related to periods.</p><p>Each pattern has a tag, and sample responses. With this training data, we have to train the deep learning model. But we can’t just put the string (the sentence e.g. “What is a period?”) into our model.</p><p>To convert the string to a vector that contains numbers, we use bag of words.</p><p>All the different patterns, we put into a single array :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yryaw8tn90YgC0CXEMovyw.png" /></figure><p>If the word is in the array, it the array changes to 1. For example “Hi,” is in the array so the number is changed to 1. For each pattern, they have a label. Greeting has a label 0 for example, and goodbye has a label 1. Using this, we can put it in the deep neural network.</p><p>In order to get to bag of words, we use NLP techniques. Specifically, tokenization and stemming.</p><p><strong>Tokenization: split the string into meaningful units.</strong></p><p><strong>Stemming: Generate the root form of words.</strong></p><p>For example if we have those three words, we take the ending:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*veV25QZz3tukO-5xJdec3A.png" /></figure><p>An example of tokenization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*00BSR0j_EijIwTc1V_kvBg.png" /></figure><h4>Putting it together :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*wrLHMZ6J_QV7QEpt2Ncyag.png" /></figure><p>I made a file named nltk_utils.py and here’s the code :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*e87xBPApkThgh96NtqPO6A.png" /></figure><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*A0f04ioacs8r93373MQzrQ.png" /></figure><p>When we run it, we get a stemmed version of the sentence.</p><h4>Step 2: Creating training data</h4><p>Made a new file : train.py.</p><p>Loaded the necessary frameworks + data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*W44qP-dmp69ATNO52BWeYQ.png" /></figure><p>The code below loops through each sentence in the intents patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*yX8URztjZtwlLIW87w1F2g.png" /></figure><p>This is the code for the stemming &amp; removes duplicates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*Es1Efgk2Y6g6TnwJmHdtuA.png" /></figure><p>This is the code for bag of words. We create a list for our x and y train data. Create a new dataset that inherits the dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjDh6_O_P2EfiUHzea5fMg.png" /></figure><p>Setting up parameters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*X4p_hU3xU7w0U4JSXK_ehw.png" /></figure><p>Creating a new dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCO_eIERzrcYqZi7wtgcrA.png" /></figure><p>We create a data loader, that gets the dataset.</p><p>Also ask if we have GPU support, and if it we do, we push the model to the device. If not, we use the CPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_e7i1Hazf0ZX_sbJfL3Zw.png" /></figure><p>Then added the loss and optimizers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*ucEUTSInuG95OShwLYOVJA.png" /></figure><p>Creating the training loop:</p><ul><li>we use the words &amp; labels in our training loader</li><li>push the words &amp; labels to our device</li><li>implement forward path</li><li>calculate loss</li><li>backward + optimizer step→ *first need to empty the gradient*</li><li>Print the current epoch every 100 step</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JCFSI0iiUF49I4RUfy26qQ.png" /></figure><p>Print final loss:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sH8lw3k-w3FnFBLBcZlApA.png" /></figure><p>Now we need to save things:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OUkzQqnJ-8XkC-AQz9TxPA.png" /></figure><p>Print the training is done and file is saved:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwSONA7eiTh8vwt8Op1aCA.png" /></figure><h3>Step 2: Pytorch training</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_e-oYG_GRg2T4noxIRfww.png" /></figure><p>Creating the feed forward neural network.</p><ul><li>Created three linear layers (e.g. self.l1 = nn.Linear(input_size, hidden_size). These get the input size and hidden size.</li><li>Created an activation function (used the RelU activation function)</li><li>Implement the forward path. out = self.l1(x) + out = self.relu(out) (do this three times since there are three layers).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*p6w9Un_MMj8JQSvrRRvJSQ.png" /></figure><h4>Step 4: Implement the chat</h4><p>Made a new file called chat.py.</p><p>Then import all needed frameworks/files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6LPAtKObLe13iAORJQqPJQ.png" /></figure><p>Check if we have GPU support:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mSX72k6rLZ0rylgAseiGfA.png" /></figure><p>Load the JSON file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*bkZ1bJNUsAuSGk8svGlQHw.png" /></figure><p>Get information we need to build the model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*MyVv_5hmYltPO8o3p8Vjpw.png" /></figure><p>Now we load the stat_dict of the creation and set it to evaluation mode.</p><p>A state_dict is simply a Python dictionary object that maps each layer to its parameter tensor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ayr3ycl8V4K7dC00o1rZcw.png" /></figure><p>Creating the actual the chat that takes in input until the input is “quit.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*iJbgfmkum2bXZXGbfajueA.png" /></figure><p>Now we want to tokenize and add the bag of words:</p><p>Then we reshape the data. Reshaping gives a new shape to an array without changing its data. We also change it to torch tensor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*qW6v_RrcKcN0yBzhRuPTSA.png" /></figure><p>Then we want the prediction + tag of the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*XQOrwswpVZ38v1BPZkdpUw.png" /></figure><p>After we find if the probability for the tag is high enough for the intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*-LC1Ww7I9Nx6g7VOx1OseA.png" /></figure><p>Then we find the corresponding intent for the tag. If it’s less than 0.75, then the bot prints out “I do not understand.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzg7-4PXKgx5mOVd9ho-Wg.png" /></figure><p><strong>And that’s it!</strong></p><p>By ensuring young girls have accessible information about menstruation, we can empower them!</p><p>Here’s the github with the full code: <a href="https://github.com/prishu-b/MenstrationChatbot">https://github.com/prishu-b/MenstrationChatbot</a></p><blockquote><em>If this article provided insight, clap it, share it, and connect with me on </em><a href="http://linkedin.com/in/pnbhavsar"><strong><em>Linkedin</em></strong></a><em>, and follow me on </em><a href="https://twitter.com/prishabhavsar"><strong><em>Twitter</em></strong></a><em>!!</em></blockquote><blockquote><em>If you have cool articles/things related to AI, post in the comments or connect with me and let’s chat!!!</em></blockquote><blockquote><strong><em>Feel free to subscribe to my monthly </em></strong><a href="https://landing.mailerlite.com/webforms/landing/n0j2z9"><strong><em>newsletter</em></strong></a><strong><em> to follow along with my journey!!</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c775a50b5d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Covid-Net Project!]]></title>
            <link>https://medium.com/@prishabhavsar/covid-net-project-782db78f0e94?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/782db78f0e94</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[crisis]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 18:04:56 GMT</pubDate>
            <atom:updated>2021-12-31T18:04:56.152Z</atom:updated>
            <content:encoded><![CDATA[<p>Wow! This is so inspiring and interesting!</p><p>Researchers at the <a href="https://www.linkedin.com/company/uwaterloo/">University of Waterloo</a>, like Dr. Alexander Wong and an alumni founded startup company called <a href="https://www.linkedin.com/company/darwinai/">DarwinAI</a> are developing a project called CovidNet. It has many use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x7MuzNF2t1r41OpV" /></figure><p>1) It uses <a href="https://www.linkedin.com/feed/hashtag/?keywords=artificalintelligence&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#artificalintelligence</a> to help determine whether a <a href="https://www.linkedin.com/feed/hashtag/?keywords=covid19&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#Covid19</a> patient should be admitted to ICU. An AI learns from over 200 different clinical features. From learning from this info, it becomes powerful whether to move someone into ICU. It’s a powerful tool doctors can utilize as it can tell them how it makes the decision.</p><p>2) Part of it also uses a neural network to diagnosis, based on chest x-rays and CT scans. It’s been used in numerous hospitals around the world, including <a href="https://www.linkedin.com/feed/hashtag/?keywords=malysia&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#malysia</a>, <a href="https://www.linkedin.com/feed/hashtag/?keywords=unitedkingdom&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#unitedkingdom</a>, <a href="https://www.linkedin.com/feed/hashtag/?keywords=austrilia&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#austrilia</a>.</p><p>And, it’s open source!!</p><p>Recommend watching this video to get some more context: <a href="https://lnkd.in/e5YGnwq9">https://lnkd.in/e5YGnwq9</a></p><p>Over the past couple of days, been reading research papers like this one: <a href="https://lnkd.in/ee_J-gsJ">https://lnkd.in/ee_J-gsJ</a>. Definitely gives more context!</p><p>So grateful to be surrounded by such an inspiring community. I just finished my first project about how machine learning algorithms like (random forest classifier, decision tree classifier, etc) can be used to detect breast cancer, and now diving deeper into <a href="https://www.linkedin.com/feed/hashtag/?keywords=neuralnetworks&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6882164693381779456">#neuralnetworks</a>. I’m looking to replicate a project the intersection between genomics and neural networks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=782db78f0e94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning to Detect Breast Cancer]]></title>
            <link>https://medium.com/@prishabhavsar/machine-learning-to-detect-breast-cancer-bfcd2f941bf5?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfcd2f941bf5</guid>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Thu, 30 Dec 2021 21:19:57 GMT</pubDate>
            <atom:updated>2021-12-30T21:19:57.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J-GG4NGKDkfqtrni.png" /></figure><p>In 2020, there were <strong>2.3 million </strong>women diagnosed with breast cancer.</p><p>In 2020, there were <strong>685 000 deaths</strong> globally due to breast cancer.</p><p>By the end of 2020, there were <strong>7.8 million </strong>women alive who were diagnosed with breast cancer in the past 5 years.</p><p><strong><em>It made it the world’s most common cancer.</em></strong></p><p><strong>That’s crazy.</strong></p><p>Breast cancer is killing people. And fast. In fact, according to the world economic forum of the women every year because of breast cancer, over <a href="https://gco.iarc.fr/today/online-analysis-pie?v=2020&amp;mode=cancer&amp;mode_population=continents&amp;population=900&amp;populations=356&amp;key=total&amp;sex=2&amp;cancer=39&amp;type=1&amp;statistic=5&amp;prevalence=0&amp;population_group=0&amp;ages_group%5B%5D=0&amp;ages_group%5B%5D=17&amp;nb_items=7&amp;group_cancer=1&amp;include_nmsc=1&amp;include_nmsc_other=1&amp;half_pie=0&amp;donut=0&amp;population_group_globocan_id=">90,000</a> are in India. Breast cancer in India is the most common cause of cancer-related deaths. This is because most Indian patients present in the later stages of cancer.</p><p>Dr. Anita Borges from the Indian Cancer Society and Dr. Lakshmi Krishnan, from Niramai Health Analytix say, “Population-scale screening with early detection methods, and increasing awareness of breast cancer, could help tackle the disease and improve survival rates, reducing treatment costs.”</p><p>So… Where to Start?</p><p>I specifically use Logistic Regression, Random Forest Classifier, and Decision Tree Classifier to detect whether a tumor in the breast was malignant (cancerous) or benign (non-cancerous).</p><p><strong>Here are the steps :</strong></p><h3>1. Collecting + Importing Data:</h3><p>Since machines learn from the data that is given, it needs to be reliable, correct, and up to date. Only then the machine learning model can find right patterns! If not, there will be wrong outcomes or predictions which are not relevant.</p><p>For this project, I had data that was already collected. I used breast cancer the <a href="https://www.kaggle.com/uciml/breast-cancer-wisconsin-data">data set</a> from UCI Machine Learning that was available on Kaggle.</p><h3>2. Cleaning + Exploratory Data Analysis:</h3><p>Starting to write the code, I imported the libraries/packages that I need to make it easier for me to write the code:</p><blockquote><strong><em>#import libraries</em> <br>import numpy as np <br>import pandas as pd <br>import matplotlib.pyplot as plt <br>import seaborn as sns</strong></blockquote><h4>WHY THOSE LIBRARIES?</h4><p>Numpy is important because this in this project I’m using Python. The library is a python library and has a lot arrays and mathematical functions. This is something I will use in the project.</p><p>Pandas is important because it helps me manipulate and analyse data.</p><p>Matplotlin.pyplot is important because it is a plotting library for the Python programming language.</p><p>Seaborn is important because it is a data visualization library built on top of matplotlib and closely integrated with pandas data structures in Python.</p><h4>IMPORT THE DATA TO THE PROGRAM</h4><blockquote><strong>from google.colab import files</strong></blockquote><blockquote><strong>uploaded = files.upload()</strong></blockquote><blockquote><strong>df=pd.read_csv(‘datafinal.csv’)</strong></blockquote><blockquote><strong>df.head(7)</strong></blockquote><p>This program allows one to upload a file named “datafinal.csv.” I had this downloaded to my desktop.</p><p>df.head is the data frame. Prints the first 7 rows of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*MKt9xOltvRnbwtKNanjqVg.png" /><figcaption>A small snippet of what was produced.</figcaption></figure><h4>EXPLORING THE DATA</h4><p>Exploring the data helps form a big picture of the data that is being worked with.</p><p><strong>COUNTING ROWS + COLUMNS OF DATA</strong></p><p>I first counted the number of rows and columns in the data set to get familiar with what my dataset contains.</p><blockquote><strong>df.shape</strong></blockquote><p>This returns : (569, 33) because there are 569 rows of data. This means their are 569 patients in this data set, and 33 columns which mean their are 33 features or data points for each patient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*h4vIywmZB-LM7yXT4Nd94g.png" /></figure><h4>CLEANING THE DATA</h4><p><strong>COUNTING THE NUMBER OF EMPTY VALUES IN EACH COLUMN</strong></p><p>The code below shows how I counted of the number of empty (NaN, NAN, na) values in each column.</p><blockquote><strong>df.isna().sum()</strong></blockquote><p>This results in the empty values in each column and is useful because it cleans the data.</p><p>A column named “Unnamed: 32” is the one that has no data. It has 569 empty values. This is unnecessary data and can make the program more prone to bugs. It can also lead to errors in the outputs. The code below shows how I dropped the column with all missing values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*KYuOOLLR926I1jaxKs8Twg.png" /><figcaption>important to note “unamed : 32” has 569 unamed values.</figcaption></figure><blockquote><strong>df = df.dropna(axis=1)</strong></blockquote><p>Dropna() function returns a new index without NA/NaN values. Axis=1 talks about how it is the empty values for the columns.</p><p>Then to get a new count of the rows and columns, I did:</p><blockquote><strong>df.shape</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*ExLTFE1rvT_SBcA43IKz2g.png" /><figcaption>outcome of the code. important to note it’s changed from 33 to 32 values.</figcaption></figure><p>Then to get a count of the number of Malignant (M) or Benign (B) cells I did:</p><blockquote><strong>df[‘diagnosis’].value_counts().</strong></blockquote><p>value_counts() is a function that will return object containing counts of unique values. In my case, it will return number of Malignant and Benign cells from the data frame called diagnosis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*oNdgzRaZTDjyUoHSYlBQlA.png" /></figure><h3>3. Data Visualization:</h3><p>Visualizing the data helps understand how it is structured and understand the relationship between variables and classes.</p><p>I visualize the count of malignant and benign cases with different factors through this code:</p><blockquote><strong>sns.countplot(df[‘diagnosis’], label=’count’)</strong></blockquote><p>sns.countplot is from the Seaborn library. It counts the number of observations per category for a categorical variable, and displays the results as a bar chart. Instead of displaying numerically that there are 212 malignant values and 357 begin values, it displays it in a graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*mccbYQmOkc-_-sx_ADsecw.png" /></figure><p>In this process it’s important to turn the data into something machine learning models can understand. To see the current type of data, I wrote:</p><blockquote><strong>df.dtypes</strong></blockquote><p>Snippet of what was returned. The only data that wasn’t numeric was diagnosis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*UDKzPcP1HGAOcvFV-8qk1A.png" /></figure><p>Diagnosis is not numeric (since its M and B), so to make a numeric value…</p><blockquote><strong>from sklearn.preprocessing import LabelEncoder</strong></blockquote><blockquote><strong>labelencoder_Y = LabelEncoder ()</strong></blockquote><blockquote><strong>df.iloc[:,1]= labelencoder_Y.fit_transform(df.iloc[:,1].values)</strong></blockquote><p>What I did above was encode the data. Encoding data is important because machine learning models require all input and output variables to be numeric. This means that if your data contains categorical data, you must encode it to numbers before you can fit and evaluate a model.</p><p>I changed the values in the column ‘<em>diagnosis’</em> from <strong>M and B</strong> to <strong>1 and 0</strong> respectively, then print the results.</p><h4>PAIR PLOT</h4><p>Next, I created a pair plot.</p><p>This is an important step, especially considering the end goal because it is a way to visualize relationships between each variable.</p><blockquote><strong>sns.pairplot(df.iloc[:,1:5], hue=’diagnosis’)</strong></blockquote><p>One variable in the same data row is matched with another variable’s value.</p><p>This was the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*NEE_p83kdWNX78Tm3Hj1qQ.png" /></figure><p>Shows the difference features in the same data row which was diagnosis. It was between malignant versus benign.</p><p>Since this was comparing for 5 of the data columns, there is the new data set. And to print this new data set, I did:</p><blockquote><strong>df.head(5)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*M_36_nETmdfkULfmvB3Zjg.png" /><figcaption>Small snippet of what was returned. Not all columns are visible in there.</figcaption></figure><p>To see the correlation between columns I did:</p><blockquote><strong>df.iloc[:,1:12].corr()</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*Mr50WY9qRFgZwyIer3tl_w.png" /></figure><p>A correlation of 1 means that there is an almost perfect correlation. An example of this is diagnosis. A correlation of 0 means that there is no correlation. If the value is below 0, that means that there is an inverse correlation. For example, we can see that the radius_mean has more of an influence on the diagnosis of the patient, than the smoothness_mean. Another example is how fractal_dimension_mean has a negative correlation with diagnosis. Radius_mean has a positive correlation.</p><p>This is all numbers and to put it into words :</p><blockquote><strong>sns.heatmap(df.iloc[:,1:12].corr(), annot=True, fmt=’.0%’)</strong></blockquote><p>Here sns.heatmap creates a visual. annot=true, annotates each cell with the numeric value using integer formatting. <em>fmt = ‘.0%’</em> converts the numerical correlation values into correlation percentages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pVbOag5HIZ_UWx4hKCDJg.png" /></figure><p>Much easier to understand, isn’t it?</p><p>The <em>figsize</em> adjusts the size of the heatmap.</p><blockquote><strong>plt.figure(figsize=(10,10))</strong></blockquote><p>10,10 makes it look bigger.</p><h3>4. Preparing Data Before Model Training</h3><h4>SPLITTING THE DATA</h4><p>I first split the datasets into independent (x) and dependent (y) datasets.</p><blockquote><strong>x=df.iloc [:, 2:31].values</strong></blockquote><blockquote><strong>y=df.iloc[:,1].values</strong></blockquote><blockquote><strong>type(df)</strong></blockquote><p>Here x is a variable that stores values from the 2 column index to column at index 31. It is independent because x are different features that determines if someone has cancer. Y is the column at the first index which is malignant or benign (1 or 0).</p><p><strong>NOWW, I split from training and testing. </strong>The training set is the set my model learns from. This data is feeded into the model so that it can learn the relationships between the inputs and the outputs. A testing set is used to check the accuracy of your model after training. The model will never have seen the testing data during training.</p><p>I split 75% to testing and 25% training.</p><blockquote><strong>from sklearn.model_selection import train_test_split</strong></blockquote><blockquote><strong>x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.25, random_state=0)</strong></blockquote><p>train_test_split is a function in Sklearn model selection for splitting data arrays into two subsets: for training data and for testing data. With this function, I don’t need to divide the dataset manually. By default, Sklearn train_test_split will make random partitions for the two subsets.</p><h4>FEATURE SCALING</h4><p>Feature scaling is a method used to normalize the range of independent variables or features of data.</p><p>But why do we need to normalize the range?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*X8SiJpbkOnO-czus.jpeg" /></figure><p>This picture is like the un-normalized data. We need to bring all features to the <strong>same level of magnitudes</strong>. This can be achieved by <strong>scaling</strong>. Or else, our outputs is not going to be realistic. That’s why I did the code below:</p><blockquote><strong>from sklearn.preprocessing import StandardScaler</strong></blockquote><blockquote><strong>sc=StandardScaler ()</strong></blockquote><blockquote><strong>x_train=sc.fit_transform (x_train)</strong></blockquote><blockquote><strong>x_test=sc.fit_transform (x_test)</strong></blockquote><h3>5. Training and Evaluating the Model:</h3><p>Now that I had workable data, I needed to determine a machine learning model that will determine the output after running it on the collected data.</p><p>I choose 3 different algorithms:</p><ul><li>random forest classifier</li></ul><p>It contains multiple decision trees takes the average to improve the predictive accuracy of that dataset.</p><ul><li>decision tree classifier</li></ul><p>It goes from observations about an item (represented in the nodes/branches) to conclusions about the item’s target value (represented in the leaves).</p><ul><li>logistic regression</li></ul><p>It’s a supervised learning model technique. It is used for predicting the categorical dependent variable using a given set of independent variable.</p><p>A machine learning model determines the output you get after running a machine learning algorithm on the collected data. It is important to choose a model which is relevant to the task at hand. Each model needs to be suited to my purpose.</p><p>I created a function “def models (x_train, y_train):” to include for all the models.</p><blockquote><strong>#logistic regression</strong></blockquote><blockquote><strong>from sklearn.linear_model import LogisticRegression</strong></blockquote><blockquote><strong>log=LogisticRegression(random_state=0)</strong></blockquote><blockquote><strong>log.fit(x_train, y_train)</strong></blockquote><blockquote><strong>#decision tree</strong></blockquote><blockquote><strong>from sklearn.tree import DecisionTreeClassifier</strong></blockquote><blockquote><strong>tree= DecisionTreeClassifier(criterion=’entropy’, random_state=0)</strong></blockquote><blockquote><strong>tree.fit(x_train, y_train)</strong></blockquote><blockquote><strong>#random forest classifier</strong></blockquote><blockquote><strong>from sklearn.ensemble import RandomForestClassifier</strong></blockquote><blockquote><strong>forest=RandomForestClassifier (n_estimators=10, criterion = ‘entropy’, random_state=0)</strong></blockquote><blockquote><strong>forest.fit(x_train, y_train)</strong></blockquote><p>Each of the models follows a similar structure. In the first second line we see each of the three algorithms imported from sklearn. In the second line we set the random state to be zero. In order to make the tests reproducible, you need a random split with the same output for each function call. This helps to verify the output. In both the Decision Tree Classifier and Random Forest Classifier, we need to set the <strong><em>criterion = entropy</em></strong>, which is used to calculate information gain within the nodes of the decision trees.</p><p>The last line helps train the model. There is a fit function in ML, that is used for training of model using data examples. Fit function adjusts weights according to data values so that better accuracy can be achieved.</p><p>To understand how accurate these models are with the training we need to see the accuracy. To do that I print and return the models’ accuracy on the training data.</p><blockquote><strong>print(‘[0]Logistic Regression Training accuracy:’ , log.score(x_train, y_train))</strong></blockquote><blockquote><strong>print(‘[1]Random Forest Classifier Training accuracy:’ , forest.score(x_train, y_train))</strong></blockquote><blockquote><strong>print(‘[2]Decision Tree Classifier Training accuracy:’ , tree.score(x_train, y_train))</strong></blockquote><blockquote><strong>return log, tree, forest</strong></blockquote><p>Now I create a model that contains all of the models, and look at the accuracy score on the training data for each model to classify if a patient has cancer or not.</p><blockquote><strong>model=models(x_train, y_train)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ec_690x8TksnSlW9omEBeQ.png" /></figure><p>As seen in the output, the Decision Tree Classifier performed with 100% accuracy, the Random Forest Classifier performed with about 99.5% accuracy, and the Logistic Regression Model performed with about 99% accuracy. It’s important to note this accuracy is going to drop with the testing data, because it’s a more accurate representation because it’s data the model hasn’t seen before!</p><p><strong>CONFUSION MATRIX</strong></p><p>Now, I test my model accuracy on a confusion matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E7uxGJLGmouc5nGb.png" /></figure><p>So in my case, the confusion matrix tells me how many patients each model misdiagnosed. It’s important to note this is being done on testing data — data the model has not seen before.</p><ul><li>number of patients with cancer that were misdiagnosed as not having cancer (false negative)</li><li>number of patients who did not have cancer that were misdiagnosed with having cancer a.k.a false positive)</li><li>number of correct diagnosis, the true positives and true negatives.</li></ul><blockquote><strong>from sklearn.metrics import confusion_matrix<br>for i in range(len(model)):<br> cm = confusion_matrix(Y_test, model[i].predict(X_test))<br> <br> TN = cm[0][0]<br> TP = cm[1][1]<br> FN = cm[1][0]<br> FP = cm[0][1]<br> <br> print(cm)<br> print(‘Model[{}] Testing Accuracy = “{}!”’.format(i, (TP + TN) / (TP + TN + FN + FP)))<br> print()<em># Print a new line</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPHPQ5NOw5ktZjsCg2Si7g.png" /></figure><p>Model 0, the Logistic Regression Classifier, has reached an accuracy of about<strong> 95%</strong> on the testing data.</p><p>Model 1, the Decision Tree Classifier has reached an accuracy of about<strong> 94%</strong> on the testing data.</p><p>Model 2, our Random Forest Classifier, has reached an accuracy of about<strong> 96.5% </strong>on our testing data.</p><p>We can also code a <strong>classification report</strong> for each of our models, which measures the quality of the predictions made by the models.</p><p>This is done through:</p><blockquote><strong># show another way to show metric of the models</strong></blockquote><blockquote><strong>from sklearn.metrics import classification_report</strong></blockquote><blockquote><strong>from sklearn.metrics import accuracy_score</strong></blockquote><blockquote><strong>for i in range ( len(model)):</strong></blockquote><blockquote><strong>print (‘Model’, i)</strong></blockquote><blockquote><strong>print(classification_report(y_test, model[i].predict(x_test)))</strong></blockquote><blockquote><strong>print(accuracy_score(y_test, model[i].predict(x_test)))</strong></blockquote><blockquote><strong>print()</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6OUkt8g6KKCkGxyQseLoA.png" /></figure><p>From the accuracy and metrics above, the model that performed the best on the test data was the Random Forest Classifier. It had an accuracy score of about <strong>96.5%.</strong></p><p>It’s important to note that we can increase this accuracy with more input data and tweaking the parameters!</p><p>Credits go for this project got to: <a href="https://www.youtube.com/channel/UCbmb5IoBtHZTpYZCDBOC1CA">Computer Scienc</a>e their <a href="https://youtu.be/NSSOyhJBmWY"><strong>YouTube video</strong></a><strong> </strong>and <a href="https://randerson112358.medium.com/breast-cancer-detection-using-machine-learning-38820fe98982">article</a>!</p><blockquote>If this article provided insight, clap it, share it, and connect with me on <a href="http://linkedin.com/in/pnbhavsar"><strong>Linkedin</strong></a>, and follow me on <a href="https://twitter.com/prishabhavsar"><strong>Twitter</strong></a>!!</blockquote><blockquote>If you have cool articles/things related to AI, post in the comments or connect with me and let’s chat!!!</blockquote><blockquote><strong>Feel free to subscribe to my monthly </strong><a href="https://landing.mailerlite.com/webforms/landing/n0j2z9"><strong>newsletter</strong></a><strong> to follow along with my journey!!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfcd2f941bf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Key to Non-Blood Cancer Detection]]></title>
            <link>https://medium.com/@prishabhavsar/key-to-non-blood-cancer-detection-3848d2df3f9c?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3848d2df3f9c</guid>
            <category><![CDATA[diagnosis]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[detection]]></category>
            <category><![CDATA[cancer]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 00:01:00 GMT</pubDate>
            <atom:updated>2021-12-01T04:41:27.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine Learning in Non-Blood Cancer Detection</h3><p>One hospital in Boston has 126 radiologists. Liberia has 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*2-5Vz4xX4dDxxFPy.jpg" /><figcaption>Women wait to be screened for breast cancer in Uganda.</figcaption></figure><p>The World Health Organization estimates that 2/3 of Earth’s population does <strong>NOT</strong> have access to basic radiology services. This means they don’t even have access to the simplest things like x-rays. Medical imaging is something that’s not even considered.</p><p>The global radiology gap is not very much discussed, BUT it should be.</p><p><strong><em>It’s urgent.</em></strong></p><p>“It affects the entire global health care system,” says Dan Mollura, a radiologist and the CEO of <a href="https://www.rad-aid.org/">RAD-AID International</a>, an organization that works to improve access to radiology.</p><p>There are not enough doctors that can go diagnose the entire population. Even in developed countries, there are many errors that occur when diagnosing patients.</p><p>Look at just America. A developed. A wealthy. A organized. Country.</p><ul><li><strong>In the United States, 12 million people are affected by medical diagnostic errors each year.</strong></li><li><strong>An estimated 40,000 to 80,000 people die annually from complications from these misdiagnoses — JUST IN USA!</strong></li><li><strong>Women and minorities are 20 to 30% more likely to be misdiagnosed.</strong></li></ul><p>This explains why even developing countries don’t have access to radiologists. Radiologists are important because they can diagnose cancer.</p><p>However in many cases, even when there is access to radiologists, they do not accurately detect cancer.</p><p>In a research experiment, J Healthc Risk Manag analyzed 2155 diagnostic error closed malpractice claims in outpatient general medicine. They created multivariate models to determine factors that predicted case outcomes.</p><p>They found missed cancer diagnosis represented 46% cases of primary care diagnostic errors. Most common cancers were lung, colorectal, prostate, or breast cancer.</p><p>The problems are :</p><p><strong>a) </strong>a lot of people don’t have access to the basic radiologists</p><p><strong>b) </strong>even when they do, a lot of them are inaccurate when it comes to detecting non-blood cancer.</p><p><strong><em>Cancer will NOT stop for ANYONE.</em></strong></p><p>Most cancers in stage one have a high chance of survival but, once it’s the later stages, it is very hard to treat.</p><p>For example …</p><p>31% of breast cancers are overdiagnosed, according to the <a href="https://www.nejm.org/doi/full/10.1056/NEJMoa1206809">New England Journal of Medicine</a>.</p><p>Mammograms miss about 16% of breast cancer cases, the <a href="https://ww5.komen.org/BreastCancer/AccuracyofMammograms.html">Susan G. Komen</a> organization reported.</p><p>Early stage <a href="https://www.webmd.com/breast-cancer/guide/breast-cancer-survival-rates">breast cancer has a survival rate</a> of nearly 100%. However, when breast cancer progresses to stage IV, just 28% of patients survive more than 5 years.</p><p><strong><em>The consequences can be deadly.</em></strong></p><p>Another example is lung cancer. At stage 0, your <a href="https://www.webmd.com/lung-cancer/guide/lung-cancer-survival-rates">lung cancer survival rate</a> is 73 to 90 percent, but that rate drops to less than 10% when the cancer advances to stage IV.</p><p><strong>That’s where artificial intelligence comes in.</strong> It can help in the area of:</p><p>a) diagnosing patients more accurately.</p><p>b) diagnosing patients where there aren’t a lot of radiologists available.</p><p>As a result, survival rates will be much higher as people can get treatment earlier.</p><h3>Artificial Intelligence</h3><p>Artificial Intelligence is the science of getting machines to think and make decisions like human beings do.</p><p>So in our case, it is the science of getting machines to think and make decision like humans, specifically in diagnosing whether someone has cancer.</p><p>The vast field of artificial intelligence is like a peach. Both of them have three layers and categories.</p><p>The skin of peach is like artificial intelligence. Both are high level groups that have smaller groups in them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*8kaA-Ig_fVmn7WB8.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/0*vGB5d_2uGcvU9n_E.jpg" /></figure><p>Machine learning is one specific way of Artificial Intelligence. It’s like the flesh. A peach has flesh that comes in many different tastes, textures, etc. Just like that, there many types of machine learning that can be used.</p><p>To diagnose cancer, we can use a machine learning algorithm that uses a supervised model.</p><h3>Supervised Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*ROJmzKzLH2nB8UCi.png" /></figure><p>These dots are like the inputs you give to an ML model. You are telling the model this is a “red” dot and this is a “blue” dot when you input the dot images. With enough input, the model can actually recognize what colour of dot you insert.</p><p>This is <strong><em>supervised learning.</em></strong> You map an input to an output based on example input-output pairs. It analyzes the training data and produces an predicated function, which can be used for mapping new examples.</p><p>BUT, on the left side all the dots are the same colour. This is basically showing how with an <strong><em>unsupervised learning</em></strong> model, you don’t tell the model this is a “red” dot and this is a “blue” dot.</p><p>The ML model in this case, <strong>identifies patterns in data sets containing data points</strong> that are not labelled.</p><p><strong>Supervised learning </strong>can be broadly classified into</p><p>a) Regression model</p><p>b) Classification model</p><p>In Regression, the target or the output is a continuous variable, whereas the output of a classification problem is categorical.</p><p>A classification model, which is a specific type of machine learning can be used to diagnosis non blood cancer.</p><ul><li>It’s based on a supervised learning algorithm.</li><li>The output is something that is sorted into a category.</li></ul><p><strong>To do so, it uses a logistic regression algorithm.</strong></p><p>BUTTT, how can we use it to detect cancer?</p><p>Well…</p><p>You are likely familiar with a linear regression algorithm.</p><p>Linear regression has an equation of the form Y = a + bX where a is an intercept, b is the slope of the line(a and b are parameters of the model) and X is the input variable. Y is a continuous output variable.</p><p>With the example below, as the experience increases, salary increases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-E9P0As5i5V8-kbiEjgW0w.png" /></figure><p>HOWEVER … logistic regression is when you have one variable (in this case it’s some sort of feature). And, you have a categorical variable. This is on the y axis for this example. The two categories are malignant and benign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzT8-0xI4JNh3aJu3v86Tw.png" /></figure><p>We can see some sort of correlation, which shows the more intense a feature, a higher chance is it malignant.</p><p>The problem with the graph above is that, it is not modelled correctly. Instead of trying to predict, the specific intensity of a feature and the specific intensity of how cancerous some body part is, instead, we can predict the probability of the person with a certain feature having cancer.</p><p>Now the line between the two categories (malignant and benign) tells us the more intensity of a feature, higher the probability of malignant tumor. However the linear regression can never be less than zero or more than one.</p><p>That means we would replace those lines with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2e66OY4oL7K1HyAF8YfsWg.png" /></figure><p>The scientific approach behind logistic regression is that it’s basically a combination of a linear regression equation and a sigmoid function. That’s what it is created in green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*dZ0Rt1NKb9QdZJSjSm5-hQ.png" /></figure><p>Breaking down the parts of the equation:</p><ul><li>ln is the natural logarithm, logexp, where exp=2.71828…</li><li>p is the probability that the event Y occurs, p(Y=1)</li><li>p/(1-p) is the “odds ratio”</li><li>ln[p/(1-p)] is the log odds ratio, or “logit”</li><li>all other components of the model are the same.</li></ul><p>This is why a logistic regression actually looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dweD_PjMEnKwi5sNTSF3bg.png" /></figure><p>The green line is the effect of a sigmoid function.</p><p>By using logistic regression in Python, you can classify between malignant vs benign tumors. This was a just a high level understanding about logistic regression.</p><p>THIS IS ALL GOOD, UNTIL WE LEARN ABOUT :</p><p><strong>Deep Learning.</strong></p><p>There’s another way to diagnose cancers. Both of these methods have their own limitations and advantages, but come from the same roots.</p><h3><strong>Another alternative?…Deep Learning</strong></h3><p>Machine learning has a sub-category called deep learning. Deep learning uses something called deep neural network. It based on how human brains work.</p><p><strong><em>BUT why do we need it?</em></strong></p><p>Well, with deep learning we can look at various features/dimensions of an image or textual data. It works better when you provide it more and more data. However, in contractary to that, after a certain period of time ML algorithms (like classification algorithm) reach their threshold. No matter how much data you provide to a machine learning algorithm, there won’t be any increase in the performance or accuracy of the model. However with deep learning, it gives us MORE accuracy as we provide more data.</p><p>Deep learning are inspired by human brains. They use a neural network.</p><p>There are three main parts to a simple neural network:</p><ol><li>Input layer; which is the first layer in this neural network. In this layer, variables are entered as inputs.</li><li>Hiddens layers; which are the two layers in the middle. They do calculations to sort or classify an output.</li><li>Output layer; where the output is stored. For example, it tells us an image of a cat should return the word “cat.”</li></ol><p>In our case, since we are detecting if someone has cancer based on images, we would use a specific type of deep learning neural network. It’s called a convolutional neural network (CNN).</p><p>In a simple, visual way, this is how a CNN works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/0*UAdmrGSWkvi7U8dR.png" /></figure><p>It can take in an input in the form of an image, does processing, and gives us an input which can classify an image.</p><p>BUT HOW CAN CNN’s DIAGNOSE CANCER?</p><p>Main steps a CNN takes:</p><p>● Convolution</p><p>● Non-linearity</p><p>● Pooling (subsampling)</p><p>● Classification (fully-connected layer)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*MN4fS14r7BwoqAbP.png" /></figure><h3>Data preparation</h3><p>An important to note is that you need a good amount of data to actual be able train the network. A rough rule of thumb is to train a CNN algorithm with a data set <strong>larger than 5,000 samples</strong> for effective generalization of the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*2kXUOft1s_X28fO5.png" /><figcaption>Malignant sample</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*AgQr5WU8zW9Ozk_J.png" /><figcaption>Benign sample</figcaption></figure><h3>Convolutional Layer</h3><p>Its purpose is to detect the presence of a set of features in the images received as input. It is a mathematical operation that takes two inputs such as image matrix.</p><p>The input is for an image is :</p><p>Image Dimensions = 5 (Height) x 5 (Breadth) x 1 (Number of channels, eg. RGB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*BxoE8OyDrVoODWNS3W9adQ.jpeg" /></figure><p>Imagine a flashlight that is shining over the top left of the image.</p><p>Let’s say that the light this flashlight shines covers a 5 x 5 area.</p><p>And now, let’s imagine this flashlight sliding across all the areas of the input image.</p><p>This flashlight is called a <strong>filter </strong>(also known as a <strong>neuron </strong>or a <strong>kernel</strong>) and the region that it is shining over is called the <strong>receptive field</strong>.</p><p>This filter is also an array of numbers (the numbers are called <strong>weights</strong> or <strong>parameters</strong>). Let’s say an image of a breast looks like the input below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wmSlv8q9P0G_4NYW-5twA.png" /></figure><p>Now, let’s take the first position the filter is in for example. It would be the top left corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*d8_bAIEYdUSDEPyXBRJz8g.gif" /></figure><p>It’s seen that the filter is sliding, or <strong>convolving</strong>, around the input image. It shows that the picture is multiplying the values in the filter with the original pixel values of the image.</p><p>The result of this, which we can see in the red, is called an <strong>activation map</strong> or <strong>feature map</strong>.</p><p>With detecting cancer, the inputs would go through this process.</p><h3>Pooling Layer</h3><p>Pooling layers are used for selecting two samples and discard the next one. It sends less data to the layers which helps the computation be focused on the most important parts.</p><p>Pooling is a down-sampling operation that reduces the dimensionality of the feature map. The rectified feature map now goes through a pooling layer to generate a pooled feature map.</p><p>There are many type of pooling layers:</p><ul><li>max pooling</li><li>average pooling</li></ul><p>Below is an example of a max pooling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*39LZNg2SdY41qTcs.png" /></figure><p>It took the largest number for each of the four sections. The pooling operation consists in <strong>reducing the size</strong> of the images while <strong>preserving their important characteristics</strong>.</p><p>To do this, we cut the image into regular cells, then we keep the maximum value within each cell. In practice, small square cells are often used to avoid losing too much information. The most common choices are <strong>2x2 adjacent cells</strong> that <strong>don’t overlap</strong>, or <strong>3x3 cells</strong>, separated from each other by a step of 2 pixels (thus <strong>overlapping</strong>).</p><p>There is another kind of pooling called <strong>average pooling</strong> where you take the average value instead of the max value. Max pooling helps reduce noise by discarding noisy activations and hence is better than average pooling.</p><p>We get in output the same number of feature maps as input, but these are much smaller.</p><p>With detecting cancer, the inputs would go through this process to make it the network for efficient and avoid over-learning.</p><h3>The ReLU correction layer</h3><p>ReLU correction layer is a type of activation function.</p><p>Activation functions are mathematical equations that help determine the output of a neural network.</p><p>Modern neural networks use a technique called backpropagation to train the model, which places an increased computational strain on the activation function, and its derivative function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*kCbYnhQSMx28C4de.png" /></figure><p>RelU function is a type of function that outputs the input directly if is positive i.e. &gt; 0, otherwise, it will output zero.</p><p><strong>ReLU(x)=max(0,x)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ACP8g_xPP1aw643M.png" /></figure><h3>Fully Connected Layer</h3><p>The fully connected layer (FC) operates on a flattened input where each input is connected to all neurons. If present, FC layers are usually found towards the end of CNN architectures. It passes the inputs to a fully connected network like a neural network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*QxdxaIiC9adHv3Fe.png" /></figure><p>With the fully connected layers, we combined these features together to create a model. This information is inputted into a neural network, which then gives us our output!</p><h3>What is happening right now:</h3><p>Artificial Intelligence has a great future in healthcare.</p><p>Many predict that medical AI will <a href="https://www.forbes.com/sites/reenitadas/2016/03/30/top-5-technologies-disrupting-healthcare-by-2020/#183882f26826">pervade 90% of hospitals</a> and replace as much as <a href="https://fortune.com/2012/12/04/technology-will-replace-80-of-what-doctors-do/">80% of what doctors currently do</a>.</p><p><strong>However for this to happen, we need to overcome patients’ distrust of AI.</strong></p><p>Harvard Business Review explored patients’ receptivity to medical AI in a series of experiments conducted with Andrea Bonezzi of New York University.</p><p>They found that when health care was provided by AI rather than by a human care provider, patients were less wanting to use the service.</p><p>They found that people feel that AI does not take into account of someone’s specific circumstances. People view themselves as <a href="https://journals.sagepub.com/doi/abs/10.1177/0146167291175001">unique</a>, and we find that this belief includes their health.</p><p>From their study, they found only 26% signed up when a computer was to perform the diagnosis.</p><p><strong><em>The good part is …</em></strong></p><p>Many things can be done so that patients’ feel more comfortable with AI.</p><p>For example, health care professionals can emphasize the information gathered about patients to generate their unique profile, including their lifestyle, family history, genetic and genomic profiles, and details about their environment. They can explain how all this info is being used to better treat patients.</p><h3>TL;DR</h3><p><strong>Problem</strong></p><ul><li>The problems are :</li></ul><p>a) a lot of people don’t have access to the basic radiologists</p><p>b) even when they do, a lot of them are inaccurate when it comes to detecting non-blood cancer.</p><ul><li>If cancer is not diagnosed early on, later stages are fatal. Chances of survival dramatically decrease.</li></ul><p><strong>Use of Classification Machine Learning</strong></p><ul><li>Use a logistic regression algorithm</li></ul><p><strong>Use of Convolutional Neural Networks</strong></p><p>How CNN’s Work</p><ul><li>Provide input image into convolution layer</li><li>Pooling layer reduces the amount of data and keeps it to the most important ones.</li><li>Activation functions like</li><li>Flatten the output and feed into a fully connected layer (FC Layer)</li><li>Output the class using an activation function (Logistic Regression with cost functions) and classifies images.</li></ul><p><strong>AI future in cancer diagnosis</strong></p><ul><li>Very productive + accurate</li><li>Need to overcome patient trust because they feel AI won’t be able to treat the need of the individual patient</li></ul><h3>Resources:</h3><ul><li><a href="https://www.weforum.org/agenda/2019/02/access-to-healthcare-is-not-enough-high-quality-care-has-to-be-the-target/">https://www.weforum.org/agenda/2019/02/access-to-healthcare-is-not-enough-high-quality-care-has-to-be-the-target/</a></li></ul><p><a href="https://pubmed.ncbi.nlm.nih.gov/31338938/">Missed diagnosis of cancer in primary care: Insights from malpractice claims data - PubMed</a></p><ul><li><a href="https://www.natlawreview.com/article/you-won-t-believe-how-often-doctors-misdiagnose-these-5-cancers">https://www.natlawreview.com/article/you-won-t-believe-how-often-doctors-misdiagnose-these-5-cancers</a></li><li><a href="https://www.youtube.com/watch?v=sgL7RrqhGKI">https://www.youtube.com/watch?v=sgL7RrqhGKI</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fnz-FrbAa8dY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dnz-FrbAa8dY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fnz-FrbAa8dY%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/24576ec5b7f318967484859823a6b683/href">https://medium.com/media/24576ec5b7f318967484859823a6b683/href</a></iframe><p>If this article provided insight, clap it, share it, and connect with me on <a href="http://linkedin.com/in/pnbhavsar"><strong>Linkedin</strong></a>!! If you have cool articles/things related to AI, post in the comments or connect with me and let’s chat!!!</p><p><strong>Feel free to subscribe to my monthly </strong><a href="https://landing.mailerlite.com/webforms/landing/n0j2z9"><strong>newsletter</strong></a><strong> to follow along with my journey!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3848d2df3f9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence = Riding A Bike]]></title>
            <link>https://medium.com/@prishabhavsar/an-introduction-to-artificial-intelligence-3b489efdc8d?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b489efdc8d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[myths]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Sun, 10 Oct 2021 03:08:16 GMT</pubDate>
            <atom:updated>2021-11-23T01:47:48.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kOesUzxeE91wlsc3.jpg" /></figure><p>Artificial Intelligence (AI) sometimes gets a really bad reputation for taking over Earth in the future! 🤖</p><p>If you’ve watched, The Terminator, then you may even have even stronger feelings about this! 🙃</p><p>BUT, AI has A LOT of uses that can positively change humanity. If there’s a 50/50% chance that it would be used for something good and 50/50% chance that it would be used for something bad, I say we still use it! 🦾</p><blockquote>This can be seen in Stephen Hawking’s quote :</blockquote><blockquote>“AI is likely the be either the best or worst thing to happen to humanity.”</blockquote><p>Although there is the ethics side, of AI, let’s get into what AI ACTUALLY is.</p><p>It’s DEFINITELY more than just a “buzzword.” 🐝🐝🐝</p><h3>AI is Like a Person Learning How to Ride a Bike 🚴‍♀️ 🚴‍♂️</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pZGH4BTeZ-RCj3u0.jpg" /></figure><p>Think back to when you first learned how to ride a bike. 🚲</p><p>Think back to feeling overwhelmed, hoping you didn’t fall or hurt yourself. 🚲</p><p>Think back to when you first fell or almost fell riding your bike. 🚲</p><p>In order to ride your bike you needed to know:</p><ul><li>How, when, &amp; what speed to pedal.</li><li>Where your body parts should be to keep balance.</li><li>To keep alert of your surroundings.</li><li>Know how to ride near cars.</li><li>AND SO MUCH MORE!</li></ul><p>There were many rules that came into riding your bike.</p><p>Where you aware of all of these?</p><p><strong><em>No</em></strong>.</p><p>That’s because your brain subconsciously knew that it needed to perform certain actions in certain circumstances.</p><p>If you had to teach someone how to ride a bike, would you tell them all these rules?</p><p><strong>NO!</strong></p><p>There’s <strong><em>TOO</em></strong> many rules and <strong><em>TOO</em></strong> obvious rules.</p><p>You learn how to ride a bike by experiences and by DOING!</p><h3><strong>Artificial Intelligence and A Bike? 😎</strong></h3><p>Below is a venn diagram that compares Artificial Intelligence (AI) to riding a bike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ch_t00DGFctrxQU28Lb7Ng.png" /></figure><p>AI can get really good a particular task through experience. In fact, AI defeated humankind in one of the most complicated board games in history!!! You can watch a video about this <a href="https://www.youtube.com/watch?v=_HCWBS6k8j0">here</a>.</p><h3>Types of Bikes V.S. Types of AI 🤯</h3><p>BUT, now going back to the bicycle analogy, there are so many types of bikes, like …</p><ul><li>Road Bike.</li><li>Mountain Bike.</li><li>Touring Bike.</li><li>Folding Bike.</li><li>AND MORE!!!</li></ul><p>All these bikes are used for different environments. Similarly, in the big category of AI there are different types of AI that helps with different situations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/0*m2BJjLqK-yut4PVV.png" /></figure><h3>How Do Machine Learning Algorithms Work? 💪</h3><p>We could give the machine some labelled pictures of a circle, square, and triangle. The program will then look at patterns in the numbers and then remember them. We could use these memories to look at unlabelled numbers and determine which is which.</p><p>BUT, how does it remember specific number?</p><p><strong>A Common Way Is Using Neural Networks.</strong></p><p>In a Neural Network, simple information can be transferred and simple tasks can be performed. Neural networks are read from left to right!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7GhqMFLGEgjgzk2f.png" /></figure><p>There are three main parts to a simple neural network:</p><ol><li>Input layer; which is the first layer in this neural network. In this layer, variables are entered as inputs. For example images that might be labelled.</li><li>Hiddens layers; which are the two layers in the middle. They do calculations to sort or classify an output.</li><li>Output layer; where the output is stored. For example, it tells us an image of a cat should return the word “cat.”</li></ol><p>All these layers are made of <strong>neurons</strong>, which are the core processing units of the network. They are the circles in the network.</p><p><strong>Neurons</strong> are connected through <strong>channels</strong> which are the arrows in this diagram.</p><p>Each of these channels signed a numerical value, known as <strong>weight, </strong>which is usually a number on top of each channel.</p><h3>Circle V.S. Square</h3><p>As humans, we know the picture below is a circle.</p><p>JUST PAUSE, and appreciate your brain for a second on how easily it recognizes that a circle is a circle. 😗✌️</p><p>Let’s see how a neural network can recognize a circle out of a square and triangle.</p><ol><li>The circle is composed of 28 by 28 pixels, which in total means 784 pixels. These pixels are fed into the input layer (as seen below) of each neuron of the first layer.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*5oICWQ9kyMzj-raWZXdiaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*wg-vGJmzKAyCr8sM5yZ2CQ.gif" /><figcaption>Source: <a href="https://www.youtube.com/channel/UCsvqVGtbbyHaMoevxPAq9Fg"><br>Simplilearn</a>’s Youtube Video</figcaption></figure><p>2. After being inputted into the first layer (first set of circles), the inputs are multiplied with the corresponding weights (numbers on the channels), and their products are sent as inputs to the neurons in the hidden layer (the second layer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*HwGxCrXCKY2Soihks8q8hg.gif" /></figure><p>3. Each of these neurons in the hidden layer is associated with a numerical value, called the <strong>bias</strong>. This is added to the input sum. This can also be seen in the GIF below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*eTvymrUXcl_nMDJVExcklg.gif" /></figure><p>4. This new value is passed through a threshold function called an activation function. It determines if the particular neuron will get activated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-ltFAi3Org4aH5izgZvEwQ.gif" /></figure><p>5. Only the activated neuron will be passed onto the next layer. This manner the data is propagated through the channel, and this is called “Forward Propagation.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*rSfekj5v4UNHopYm9d1j0g.gif" /></figure><p>6. In the output layer, the neuron with the highest value determines the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7F-mgBoMWByNCQ277AWTKA.gif" /></figure><p>These are the basic steps, BUT often times the algorithm won’t detect the circle and will make mistakes.</p><p><strong>That’s where training the network comes in.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPWU-s51uLL-LRmK8aJ1RA.png" /></figure><p>As seen the circle is actually thought of as a square in the network. That’s where we would compare the predicted output with the actual output.</p><p>There are arrows give an indication of the direction and the magnitude of change to reduce the error (seen beside the chart). This information is fed backwards, into the network, and it is called <strong>back propagation.</strong></p><p>Based on this information the weights are adjusted.</p><p>This may take days or even months to train! But it’s worth it in the end because of the scope and what the algorithm can do for us.</p><h3>3 Types of Machine Learning</h3><p>In this picture, in the supervised learning section, there is a distinct colour between the dots.</p><p>Red 🟥 and Blue 🟦</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*5ystvHsXL0_vQxW-.png" /></figure><p>These dots are like the inputs you give to an ML model. You are telling the model this is a “red” dot and this is a “blue” dot when you input the dot images. With enough input, the model can actually recognize what colour of dot you insert.</p><p>This is <strong><em>supervised learning.</em></strong> You map an input to an output based on example input-output pairs. It analyzes the training data and produces an predicated function, which can be used for mapping new examples.</p><p>BUT, on the left side all the dots are the same colour. This is basically showing how with an <strong><em>unsupervised learning</em></strong> model, you don’t tell the model this is a “red” dot and this is a “blue” dot.</p><p>The ML model in this case, <strong>identifies patterns in data sets containing data points</strong> that are not labelled.</p><h3>Pros and Cons</h3><h4>Supervised Learning</h4><p><strong><em>PROS</em></strong></p><ul><li>You can optimize the model using experience.</li></ul><p><strong><em>CONS</em></strong></p><ul><li>You need to select lots of good examples from each group while you are training the model. Or else if a unseen picture of one group is inputted, the model may not know how to categorize it or may categorize it wrong.</li><li>Training takes a WHILE!!!</li></ul><p><strong>Unsupervised Learning</strong></p><p><strong><em>PROS</em></strong></p><ul><li>It can see what human minds cannot visualize.</li><li>It is can be used to learn hidden patterns. This is important for industries as they can find patterns that they may not have thought of. This can help with things like user-experience.</li><li>Easier to categorize, non-labelled data.</li></ul><p><strong><em>CONS</em></strong></p><ul><li>It is costlier if the model frequently sorts it incorrectly as humans may need to understand the patterns.</li><li>Results may have less accuracy because there is no label or output measure for the inputs.</li></ul><h3>Ping Pong 🏓</h3><p>Let’s say we want to make a machine learning model to play a game of ping pong.</p><p>In a supervised setting, you would have a good human player for a couple of hours create a data set so that you can use it for your neural network.</p><p>We can then feed those frames to a neural network that as an output an produce two simple actions — up or down. Training the network based on human actions is really good, but ….</p><ul><li>You need a data set</li><li>It only imitates the human, and IT WILL NEVER BE BETTER THAN THAT HUMAN!!!</li></ul><h3>That’s where Reinforcement Learning Comes In:</h3><p>Going back to the biking example, when someone first learns to bike they don’t consider all the factors, like how, when, &amp; what speed to pedal, etc.</p><p>They learn to bike only by biking (action),</p><p>Through trials and errors (practice),</p><p>Through all the positive experiences like riding your bike (positive reward),</p><p>Through negative experiences, like falling down and getting hurt (negative rewards or punishments),</p><p>Before getting your balance and control right (maximum reward or best outcome).</p><p><strong>This is reinforcement learning. Another type of machine learning.</strong></p><p>In ping pong, we start with a random network (NO INPUTS!!), and feed that network a frame from the game engine, it produces a random output action, you send to the game engine. Then, the game engine produces the next frame. Instead of a neural network, we have a <strong>policy network.</strong> To train a policy network, we can use a <strong>policy gradient.</strong></p><p>The output of our network are two numbers.</p><ol><li>Probability of going up</li><li>Probability of going down</li></ol><p>When we are testing, we take different sample of these distributions so that our agent can explore.</p><p>For agent to learn, we need feedback which is a scoreboard. Everytime it scores a goal, it gets a point of +1 on the scoreboard. If the opponent scores a goal, then the agent gets -1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cj8SHQGyRngkfp-2rnh5AQ.png" /></figure><p>To train our model we <strong>COLLECT A LOT </strong>of experiences and run a lot of the game frames. We can compute the gradients that would make the actions our agents has chosen more likely in the future. Normal gradients increase probability.</p><h3>How To Decide Which Model is Most Useful?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P6dMErcL8Gck2Mek" /></figure><h3>Machine VS Deep Learning</h3><p>Deep learning is just a subset of machine learning. It just has more hidden layers, as seen in the diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CFH3Sjoo6h126Wk9.png" /></figure><h3>Turning the Light of Once in Bed</h3><p>Don’t you hate it when you are in bed, but then realize you have to get up and turn on the light?</p><p>Well, you can use a machine learning algorithm, to turn the light of when it recognizes the audible cue of someone saying the word <em>“dark.”</em></p><p>BUT, let’s say your younger brother <strong><em>hates</em></strong> the word “<strong>dark</strong>,” (WHO KNOWS WHY???), and needs to say something else, like <strong><em>“I can’t see.”</em></strong></p><p>What would you do?</p><p>Do you let him throw tantrum because the lights won’t turn off?</p><p><strong><em>No.</em></strong></p><p>You can use a Deep Learning Model. A Deep Learning Model could figure out that it should turn on with the cues <em>“I can’t see”</em> with more hidden layers.</p><h3><strong>AI Applications</strong></h3><p>Machine learning will replace humans in some fields, but as another hand for humans in others. Machine Learning is really just useful anytime we want to make predictions based on data!</p><p>These are just some fields that are using and preparing for the use of AI in the near future.</p><h4>Medicine</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /><figcaption>“A yellow box indicates where an artificial intelligence (AI) system found cancer hiding inside breast tissue, in an undated photo released by Northwestern University in Chicago on Jan. 1, 2020. (Northwestern University via Reuters)” — CBC News</figcaption></figure><p>According to CBC News, AI systems could identify cancers more efficiently than radiologists! Here’s a snippet from their full article which you can read <a href="https://www.cbc.ca/news/health/ai-mammograms-breast-cancer-1.5412679">here</a>:</p><blockquote>Radiologists miss about 20% of breast cancers in mammograms, the American Cancer Society says, and half of all women who get the screenings over a 10-year period have a false positive result.</blockquote><blockquote>The study showed the AI system could identify cancers with a similar degree of accuracy to expert radiologists, while reducing the number of false positive results by 5.7 per cent in the U.S.-based group and by 1.2 per cent in the British-based group.</blockquote><blockquote>It also cut the number of false negatives, where tests are wrongly classified as normal, by 9.4 per cent in the U.S. group, and by 2.7 per cent in the British group.</blockquote><h4>Education</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*EEvzunksTbPo7Uvr" /></figure><p>Personalization is key when it comes to education.</p><p><strong>NOT ALL STUDENTS LEARN AT THE SAME PACE!</strong></p><p>Although the passing mark is, “50%” some students may get 100% while some may get “55%.” Point being, just because a student passes, doesn’t mean they actually get the content.</p><p>That’s where AI can come in.</p><p>Students can have a personalized learning pace based on their own unique experiences and preferences. AI can adapt to each student’s level of knowledge, speed of learning and desired goals so they’re getting the most out of their education.</p><p>AI can analyze their history, and let them reach their full potential.</p><p>There is already personalized learning software like Khan Academy, that uses quizzes to see where you are at. However, this needs to be implemented in classroom in a daily basis.</p><h4>Climate Change</h4><p>This is becoming a hot topic lately (NO PUN INTENDED 🤣🤣🤣), but AI can help analyze patterns to stop the causes aconsequencesces of climate change.</p><p><strong>BCG CO2 AI</strong></p><p>This company helps corporations measure and their emission and enable 30–40% emission reductions for large corporations.</p><p>You can read a great article on <a href="https://www.forbes.com/sites/markminevich/2021/10/08/11-examples-of-ai-climate-change-solutions-for-zero-carbon/?sh=50cb905a2251">Forbes</a> here!</p><h3>TL; DR (Too Long Didn’t Read)</h3><ul><li>AI is like a child learning how to ride a bike. It’s a program that can learn, act, reason, and adapt.</li><li>Machine Learning is a type of AI.</li><li>Machine learning works by using Neural Networks.</li><li>Neural networks have three layers: input layer (data is inputted), hidden layers (calculations are made so that an output can be given), output layer (where output is stored).</li><li>3 kinds of machine learning: unsupervised (giving an algorithm unlabelled data), supervised (giving an algorithm labelled data), and reinforcement learning (agent learns to achieve a goal in an uncertain environment).</li><li>There are pros and cons for each. Which type of learning depends on what task you want to perform.</li><li>AI can replace many fields, but can act as extra hands for people working in other fields.</li></ul><p>You now have a pretty good introduction Artificial Intelligence. Hopefully, if I did my job correctly, you have learnt a lot, and are inspired to learn more!!!!</p><p>P.S. Here are some COOL applications of AI:</p><ul><li><a href="https://copilot.github.com/">https://copilot.github.com/</a></li><li><a href="https://www.youtube.com/watch?v=hObhjF-5olU">https://www.youtube.com/watch?v=hObhjF-5olU</a></li><li><a href="https://openai.com/">https://openai.com/</a></li><li><a href="https://www.youtube.com/watch?v=bfmFfD2RIcg">https://www.youtube.com/watch?v=bfmFfD2RIcg</a> (Used this video to learn about Neural Networks and thanks to it was able to write this article).</li><li><a href="https://www.youtube.com/watch?v=JgvyzIkgxF0&amp;t=331s">https://www.youtube.com/watch?v=JgvyzIkgxF0&amp;t=331s</a> (Got the Ping Pong example from this)</li></ul><p>If this article provided insight, clap it, share it, and connect with me on <a href="http://linkedin.com/in/pnbhavsar"><strong>Linkedin</strong></a>!! If you have cool articles/things related to AI, post in the comments or connect with me and let’s chat!!!</p><p><strong>Feel free to subscribe to my monthly </strong><a href="https://landing.mailerlite.com/webforms/landing/n0j2z9"><strong>newsletter</strong></a><strong> to follow along with my journey!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b489efdc8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1% Improvement / Day = 37.78% Improvement / Year]]></title>
            <link>https://medium.com/@prishabhavsar/1-improvement-day-37-78-improvement-year-724a883c3b3c?source=rss-6c63e20199dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/724a883c3b3c</guid>
            <category><![CDATA[success]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Prisha Bhavsar]]></dc:creator>
            <pubDate>Mon, 13 Sep 2021 11:42:12 GMT</pubDate>
            <atom:updated>2021-09-15T01:12:08.925Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine going to the gym, and working out for simply 5 minutes. Over time you add 2 more minutes to the amount you worked out from before. 🏋️‍♂️</p><p>First time when you go to gym you workout for 5 minutes, then 7 minutes, then 9 minutes, then 11 minutes, until you reach 45 minutes.</p><p><strong>Seems doable, right? 😌</strong></p><p>That’s exactly the <strong>Power Of Habits.</strong></p><p>You don’t have start off fancy or hard. This concept applies for any habit you are trying to create or any bad habit you are trying to stop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1WD4HFtuFIY1Cqqk" /><figcaption>Photo by <a href="https://unsplash.com/@nublson?utm_source=medium&amp;utm_medium=referral">Nubelson Fernandes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Honestly Reflect:</strong></p><p>How many times have you scrolled on social media, when you know you have work to do? How many times have you procsianted to exercise? How many times have you dealt with sleep procrastination?</p><p>It’s how obvious, attractive, easy, and satisfying is or is not that gets you in or in not doing the habit. Our brain develops habits with trial and error. Whenever you encounter a new situation in life, you brain is trying to answer, “<em>How do I respond to this?”</em></p><p>To learn how, you can either read Atom Habits or read this article on my key takeaways from the book instead! 🙃</p><h3><strong>Down to Counting</strong></h3><p>As the book does the math in the first chapter:</p><p>If you improve 1% every day, you’ll be 37.78x better in the long run!</p><p>Habits are the compound interest of self-improvement. The effects of our habits multiply as we repeat them.</p><p>Imagine saying you will study tomorrow for your test <strong>Every Single Day, </strong>until the day before, when you realize that the test is tomorrow. You would feel like crap, overwhelmed, and likely be sleep deprived the day of the test. That’s the compound interest of the poor study habit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rWJ7XpH8XS0Nz_nW" /><figcaption>Photo by <a href="https://unsplash.com/@antoine1003?utm_source=medium&amp;utm_medium=referral">Antoine Dautry</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sure, studying every single day won’t give you instant satisfaction, but when that test comes around, you will be prepared. Many times you don’t know the effect of the habit at the current day, but it’s the compound interest of the habit that will help you a lot! 😇</p><p>Reading a book, like Atomic Habits 😉, won’t give you instant results, but understanding and reflecting on your current habits <strong>and</strong> making necessary changes will.</p><h3><strong>But Why Is It Important To Change Some Habits?</strong></h3><p>Anything you do in life, always leads to a goal. Whether that be short term or long term, it’s ALWAYS a goal.</p><ul><li>Eating — goal to feel energized or a craving 🍽</li><li>Sleeping — Recharge yourself 🛌 💤</li><li>Watching TV — relax, distress 📺</li></ul><p>Whatever the goal is, achieving it will only give you a momentary change. If you always have to clean your room at the end of week, it doesn’t make sense because when next week rolls around, you will be stuck doing the same thing. Instead, if you focus on the system — the process.</p><p><strong>WHY is your room getting messy you will achieve a cleaner room more efficiently??</strong></p><p>As you think “OH once I finish cleaning my room, I will be happy and can relax,” you are restricting your happiness for the time your room is not clean. When you have a goal, you train for months towards that goal. However, once it is achieved, you may not spend time working towards to improvement your results.</p><p>Not only that, but by procrastinating (in this case for cleaning their room), they are feeling better in the short term, but in the long term, the task is going to pile up.</p><h3>How Do We Change Our Bad Habits 😎</h3><p>Having good habits can maximize happiness, productivity, and efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*mY1RYCSN3BWvBXC6xoXcew.png" /></figure><p>How many times have you seen, heard, taste, or smell, something, it reminded you to do a task? That’s exactly what a cue is.</p><p>A cue can be good or bad, and that depends on the craving it creates.</p><p>So let’s say you are procrastinating on going to bed at a reasonable time. That’s the bad habit you are trying to fix (this was a problem for me in the past too).</p><ol><li>The cue to staying up, was my environment. It was perfect, I had my desk right in my room, where I felt at ease and relaxed. The environment made me feel like it was okay to stay up late and keep working. 🖥</li><li>The environment made me crave to stay up late and do things like, read random articles, watch random videos, and do homework that wasn’t due until a long time. 👓</li><li>The response was that I didn’t sleep until 11 pm to 12 AM<strong> : E</strong>very<strong> S</strong>ingle <strong>N</strong>ight. 🥱</li><li>I did feel like I did something by staying up, but in reality it was a big mess. I still wanted wake up a 5 or 6 the next day, but usually it ended being around 8 AM. It made me feel bad, when I woke up, and then to make up for it, the reward became associated with the cue to stay up. 😌</li></ol><p>I knew I needed to break this habit, but procrastinated. This process to make a bad habit is quite simple — just fall into a habit loop.</p><p>In order to break this habit, I created a good cue. I slept 10 minutes earlier each night. Now, you might be thinking, this is easier said than done — it sure is! But, I created a reward system for myself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F1k71SsQqNxV1h1G" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Once I got into bed, I used an app called Sadhguru, and watched a interesting video — about 4–5 minutes long that taught me something new. It was something about life after death, different festivals and their true meanings, etc. It was something I LOOKED FORWARD TO each night, and wanted to sleep. Then used habit stacking, and after I was done that video, I did a 20 minute meditation, which in the middle of I automatically fell to sleep.</p><p>Now, I snore and dream latest by 11 PM and wake up at 6 AM (which I am slowly taking 10 minutes out of).</p><p>By dissecting each of these 4 steps : cue, craving, response, reward, you can bring good changes in your lives.</p><h3>Cue : Make Them Obvious</h3><p>To create good cues, you must make it obvious.</p><p>Let’s you want to create a more productive after school routine. Write down everything you do on an average day. Then put a + beside a good habit, — for a bad habit, = neutral habit. This used to be my schedule a Monday as each day is slightly different for me.</p><ol><li>Get back from school by 4pm. +</li><li>4–4:20 — change clothes, eat a snack, check my phone, relax — (going on the phone can be done at a later time)</li><li>4:20–6 — Finish all school homework +</li><li>6–6:25 — finish any school club work/outside of school club that still needs to be finished +</li><li>6:25–7 — help out with dinner, finish dinner, clean up +</li><li>7–7:45 — watch TV — can be reduced</li><li>7:45–9:45 work on TKS +</li><li>9:45–10:45 — any wiggle time for homework —</li><li>10:45–11 — read — sleeping time is not ideal if I want to wake up early the next morning + workout</li></ol><p>If I want to end my day earlier, I must take away some time for some unnecessary things.</p><p>The relax portion once I come home doesn’t need to be a full twenty minutes, as I am walking home, I already feel that sense relaxation. I can start my homework at 4:10pm, and finish my 5:50. This means I will finish work by 6:15. This means I can eat dinner/clean up 10 minutes earlier. 45 minutes for TV on a weekday is unnecessary, 25 minutes is better. This means I can start working on TKS at 7:15 to 9:15. And the time shift goes on.</p><p>Of course, things happen and I need to test this routine out, but time blocking and intentionally using time leads to better results. Change starts with awareness.</p><p>But now let’s say, I would like to add a new habit, exercising after school. A fantastic way to do that is, to :</p><ul><li>habit stack — do it after another habit, that will most likely be the right situation to exercise. 🥞 (not a pancake stack LOL)</li><li>be specific -what time, where, what kind of exercise will I do? 🤓</li><li>use effective time + location when performing it, so I am more likely to keep on doing it ⏰</li></ul><p>After I come home, I will straight away to exercise, because I will have had come home walking. This way this can be a more healthier version of relaxing. Now with these routines, I sleep by 10:30 the latest!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B01lBBtdYp0AtjmS" /><figcaption>Photo by <a href="https://unsplash.com/@laurachouette?utm_source=medium&amp;utm_medium=referral">Laura Chouette</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“Motivation is overrated; Environment Often Matters More”</blockquote><p>If you have the right environment, you are likely to perform a certain habit. I know something that I struggle with is remembering to take my iron pills. But recently, I put the pill beside my bed, I remember to take it!</p><p>Moreover, associating a habit with a particular context can help.</p><blockquote>In one study, scientists instructed insomniacs to get into bed only when they were tired. If they couldn’t fall asleep, they were told to sit in a different room until they became sleepy. Over time, subjects began to associate the context of their bed with the action of sleeping, and it became easier to quickly fall asleep when they climbed in bed. Their brains learned that sleeping — not browsing on their phones, not watching television, not staring at the clock — was the only action that happened in that room.</blockquote><p>It’s about the habit. So now if we think the opposite, and try to reverse a bad habit and stop it — we can do the opposite.</p><h3><strong>Craving: Make Them Attractive</strong></h3><p>We often have temptations — to eat junk food, scroll through social media, binge watch television, etc. You can use the temptations and bundle it with a habit you want to start. Let’s say you love listening to music, and it sometimes distract you from work. Let’s also say you don’t exercise often. In this case, you can exercise while listening to music. Bundle something you want to do with something you need to do.</p><p>Think about the feelings you get when you get to do something you love to do.</p><p>For example, listening to music: the upbeat vibes you get, you feel like dancing, and sometimes you feel like you are in a movie LOLL 😆</p><p>Now if you like these feelings and say you are going to exercises while listening to music, it will be much enjoyable.</p><blockquote>“Habits are a dopamine-driven feedback loop. When dopamine rises, so does our motivation to act. It is the anticipation of a reward — not the fulfillment of it — that gets us to take action. The greater the anticipation, the greater the dopamine spike.” — Atomic Habits</blockquote><h3>I wanna be like _______</h3><p>How many times have you thought and wanted to be like inspirational person? Or have many times have got into the same habits as the people you surround yourself with?</p><p>Use this to your advantage! Hang out with people and surround themselves with individuals that they want to be like.</p><h3><strong>Change One Word</strong></h3><p>Instead of saying, “UHHH, I gotta do finish up some homework,” say, “I get to finish up homework.” Instead of saying, “I got to exercise,” say “I get to exercise.”</p><p>One Word Change — <strong><em>“Got,” to “Get” </em>🙃</strong></p><p>Be happy you get to have an education, you get to boost your chances to a longer life by exercising, etc. One common, stress filled activity for students is to take exams. To help you destress, say “I am excited and I’m getting an adrenaline rush to help me concentrate.”</p><h3>Response: Make it Easy</h3><p>If you wanna keep continue to do a habit, you gotta make it easy for yourself. Doing 10 push ups in one day and then adding 2 more each day versus 100 push ups in one day — which is easier when starting off? <strong><em>The first one. 🥇</em></strong></p><p>Jerry Uelsmann, a professor at the University of Florida, divided his film photography students into two groups. One group was a “quantity” group that were graded by the amount of work they produced. With all the pictures they students took, they would be rated with an A, B, or C.</p><p>On the other hand, the other group would be graded by the “quality” of their work. They would only need to produce one photo during the semester, but to get an A, it had to be a <strong>AMAZINGGG</strong> image.</p><p>Before reading more, GUESS WHICH GROUP HAD THE BETTER PICTURES? (no scrolling down!!! 🤭🤭🤭)</p><p>Drumroll please……👐</p><p>It was the <em>quantity </em>group. These students practiced SO MANY TIMES, and the process allowed them to get better pictures. Meanwhile, the other group simply planned about the ✨ perfect photo ✨.</p><p>That just goes to show that <strong>PRACTICE MAKES PERFECT, &amp; NOT FINDING THE BEST PLAN FOR SOMETHING. </strong>Most of the time, you just gotta do it. <strong>Even Nike says that, “Just Do It.” 🤙</strong></p><p>That being said, the amount of time you practice is NOT important. It’s the amount of repetitions that matter.</p><p><strong><em>HOWEVER</em></strong><em>, ALL THIS MUST BE EASY!!! </em>🤏🤏🤏</p><ul><li>Start with only 5 minutes towards that habit (or a good amount of time you think works), than add 5 minutes each time you do it.</li><li>Don’t waste time trying to find the optimal plan for the response, just make a plan, and spend MORE TIME, acting!</li></ul><h3><strong>Reward: Make it Satisfying</strong></h3><p>So many times the problem isn’t the knowledge, it’s the consistency.</p><p>In Karachi, Pakistan, people didn’t like to wash their hands. This wasn’t because they didn’t know that washing hands is a necessary habit, but they didn’t want to.</p><p>It’s like saying you know not to play with your life, but you still are.</p><p>That was when Luby and his team partnered with Procter &amp; Gamble to supply the neighborhood with Safeguard soap. Safeguard was a more enjoyable experience as the scent was amazing, and it made one want to hand wash.</p><blockquote>“‘In Pakistan, Safeguard was a premium soap,’ Luby told me. ‘The study participants commonly mentioned how much they liked it. The soap foamed easily, and people were able to lather their hands with suds.”— Atomic Habits</blockquote><p>Within months, there was a fast shift in the health of children in the neighborhood. The rate of diarrhea fell by 52 %; pneumonia by 48 percent; and impetigo, a bacterial skin infection, by 35 %.</p><p>This story was outlined in Atomic Habits and teaches readers’ a lesson.</p><p>The short term effects when people do this action, seems greater than waiting and not doing this action in the long term. It’s about instant gratification. We always tend to act in a way that will give us bursts of satisfaction.</p><p><strong>The GOOD THING is that you can use instant gratification to your advantage!! 💪 🥳</strong></p><p>Let’s you have a habit of browsing through your phone, when you KNOW that you have a 5 page essay due in a week. Although it’s due in a week, it would be wise to start NOW! At the same time, you may not get instant gratification, and instead continue scrolling as it beats the negative feelings from writing.</p><p>A lot of the times, reward systems are VERY VERY helpful. Once you are done writing one paragraph, have a reward for yourself! Call your friend, take a bike ride, eat a healthy snack — anything that satisfies YOU!!!</p><p>Let’s say you want to save money. Everytime you crave to buy something, stop and put that money into you saving account for something you want to buy in the future. This was a tactic done by one of Atomic Habit’s reader.</p><p><strong>OK,</strong> after all this knowledge, HOW DO WE REPEAT THE HABIT?</p><ol><li>Track them! Have you ever done a snapchat streak, and couldn’t resist breaking the streak. Same logic here!! Track your habits and you won’t be able to stop doing it. Habit tracking is attractive + satisfying! I personally like to use an app called Notion, that helps me track my habits, create to-do lists, and ANYTHING productivity related. Habit tracking creates a cue that reminds you to act and motivates me.</li></ol><p>2. Have an accountability partner. Have a person that you will tell your goals for the day, and update back to them at the end. Personally, my mom is my accountability partner, and sometimes I even give her my phone until I am done all my goals for the day.</p><p>3. Surround myself with like minded people. Personally, starting a program called The Knowledge Society, and has really helped me grow my network. I’ve been having at least one “brain-date,” a week where I meet someone from the program.</p><p><strong><em>Habits are Atoms.</em></strong> They are the building blocks of our life — productivity, happiness, efficiency, EVERYTHING. I have bad habits, and I am in the process of changing them into good ones. Maybe you should try and change your life too. <strong>Read Atomic Habits — you will 110% NOT regret it!!</strong></p><p>All lessons from this article are from Atomic Habits.</p><p><strong>If you enjoyed this article, clap it and connect with me on </strong><a href="http://linkedin.com/in/pnbhavsar"><strong>Linkedin</strong></a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=724a883c3b3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>