<?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 Tanmay Mishra on Medium]]></title>
        <description><![CDATA[Stories by Tanmay Mishra on Medium]]></description>
        <link>https://medium.com/@tanmaymishra2013?source=rss-51086b7c8b02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1laEDqo1N24cOkzC_4Iyhg.jpeg</url>
            <title>Stories by Tanmay Mishra on Medium</title>
            <link>https://medium.com/@tanmaymishra2013?source=rss-51086b7c8b02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 30 May 2026 05:38:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanmaymishra2013/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[Cats vs Dogs Classification]]></title>
            <link>https://medium.com/ai-techsystems/cats-vs-dogs-classification-e05ef91c1764?source=rss-51086b7c8b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/e05ef91c1764</guid>
            <category><![CDATA[cats-and-dogs]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[tinyml]]></category>
            <dc:creator><![CDATA[Tanmay Mishra]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 10:33:31 GMT</pubDate>
            <atom:updated>2021-09-22T20:58:44.054Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*M0IPHFtc75FEKA17wk_5Mg.jpeg" /></figure><p>This Model Predicts whether the image is of a cat or a dog by using Convolution Neural Network.</p><h3>About the Data</h3><p>The Data Contains 24960 images of both Cats and Dogs.</p><h3>About the Model</h3><p>This Model differentiates whether an image is of a cat or dog using Convolutional Neural Networks. This model is ready to be used in IOT devices with the help of deepCC framework which converts this model in an executable file which can then be used in embedded devices such as Arduino, MCU’s,etc. Here is one of the many ways to approach this problem.</p><h3>Importing Libraries</h3><p>Importing necessary dependencies which will help us to do various operation on the data and reach our goal i.e. to predict whether the image is of a cat or a dog.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75d19656d97fa476306b42a9502cde8b/href">https://medium.com/media/75d19656d97fa476306b42a9502cde8b/href</a></iframe><h3>Loading the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df6efeae396b97a166ba57cfff9cc504/href">https://medium.com/media/df6efeae396b97a166ba57cfff9cc504/href</a></iframe><h3>Data Pre-processing</h3><p>we use ImageDataGenerator to scale the pixel size, change the color of the image from BGR to Gray and also to split the Data in Training and Validation set.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/957598db9170f6a2e7a32c09b599356f/href">https://medium.com/media/957598db9170f6a2e7a32c09b599356f/href</a></iframe><h3>Building the Model</h3><p>Since the Data is in image form I’m using Convolutional Neural Network in order to find different patterns in the image which will help in differentiating the labels(cats&amp;dogs).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b2167d04a871ffdb54bc0253bc2d42d/href">https://medium.com/media/0b2167d04a871ffdb54bc0253bc2d42d/href</a></iframe><h3>Compiling and Fitting the Model</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a25971d0e8d2a3f0f048d3c3980e3dc/href">https://medium.com/media/4a25971d0e8d2a3f0f048d3c3980e3dc/href</a></iframe><h3>Plotting Accuracy</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e93e0766f43cdf34d01f8e2efb9f0b7/href">https://medium.com/media/5e93e0766f43cdf34d01f8e2efb9f0b7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*dA9m1noiL1cmPV5i4wHvOQ.png" /></figure><h3>Plotting Loss</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5da63716288a60f52b042b830909d6c8/href">https://medium.com/media/5da63716288a60f52b042b830909d6c8/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*kUMx_-3v4dm_szYWJyBYZQ.png" /></figure><h3>Model Predictions</h3><p>Here are some predictions made on the Test Images.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf3f600cd0f4dbcd393bd225233fc452/href">https://medium.com/media/cf3f600cd0f4dbcd393bd225233fc452/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*0gQ4I-9bQrhJ63V0rW0zuQ.png" /><figcaption>cat</figcaption></figure><p>The Images in Test Images look like this because the Images are resized to size 50 x 50 but still our model can find pattern in the images which can differentiate between the labels.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef154aa35b02aab0eca5e8023b83343f/href">https://medium.com/media/ef154aa35b02aab0eca5e8023b83343f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*wysywUPMNqX5bRol8iL5RA.png" /><figcaption>dog</figcaption></figure><h3>Saving the Model and deepCC</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f10f12e671ee058823666b7cc9f37f3/href">https://medium.com/media/5f10f12e671ee058823666b7cc9f37f3/href</a></iframe><h3>Conclusion</h3><p>Through this Model we can determine whether the image is of a cat or a dog using Deep Learning.</p><p>deepCC framework converts this model to an executable file through which this file can run in Embeded Devices like Arduino, Raspberry.pi, etc</p><h4>Link to Notebook- <a href="https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/catsvsdogs.ipynb">https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/catsvsdogs.ipynb</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e05ef91c1764" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-techsystems/cats-vs-dogs-classification-e05ef91c1764">Cats vs Dogs Classification</a> was originally published in <a href="https://medium.com/ai-techsystems">AITS Journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cardio- Vascular Disease Prediction]]></title>
            <link>https://medium.com/ai-techsystems/cardio-vascular-disease-prediction-88bc345f44ac?source=rss-51086b7c8b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/88bc345f44ac</guid>
            <category><![CDATA[tinyml]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cardiovascular-disease]]></category>
            <dc:creator><![CDATA[Tanmay Mishra]]></dc:creator>
            <pubDate>Fri, 03 Sep 2021 16:24:27 GMT</pubDate>
            <atom:updated>2021-09-03T16:24:27.644Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjL4AIY2jmnAuyXA1YkTjg.png" /></figure><p>The dataset consists of 70 000 records of patients data in 12 features, such as age, gender, systolic blood pressure, diastolic blood pressure, and etc. The target class “cardio” equals to 1, when patient has cardiovascular disease, and it’s 0, if patient is healthy.</p><h4>Data description</h4><p>There are 3 types of input features:</p><ul><li><em>Objective</em>: factual information;</li><li><em>Examination</em>: results of medical examination;</li><li><em>Subjective</em>: information given by the patient.</li></ul><p>Features:</p><ol><li>Age | Objective Feature | age | int (days)</li><li>Height | Objective Feature | height | int (cm) |</li><li>Weight | Objective Feature | weight | float (kg) |</li><li>Gender | Objective Feature | gender | categorical code |</li><li>Systolic blood pressure | Examination Feature | ap_hi | int |</li><li>Diastolic blood pressure | Examination Feature | ap_lo | int |</li><li>Cholesterol | Examination Feature | cholesterol | 1: normal, 2: above normal, 3: well above normal |</li><li>Glucose | Examination Feature | gluc | 1: normal, 2: above normal, 3: well above normal |</li><li>Smoking | Subjective Feature | smoke | binary |</li><li>Alcohol intake | Subjective Feature | alco | binary |</li><li>Physical activity | Subjective Feature | active | binary |</li><li>Presence or absence of cardiovascular disease | Target Variable | cardio | binary |</li></ol><h3>Importing Libraries</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a732a1a17403ea2fd081773b6a5d757e/href">https://medium.com/media/a732a1a17403ea2fd081773b6a5d757e/href</a></iframe><h3>Loading the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce3e4a6d9d5bc81570d4aad453a17736/href">https://medium.com/media/ce3e4a6d9d5bc81570d4aad453a17736/href</a></iframe><h3>Scaling the Data(to avoid outliers)</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e31e380e521be54e7b20562b38443799/href">https://medium.com/media/e31e380e521be54e7b20562b38443799/href</a></iframe><h3>Splitting the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/536a4c227153f9426a7bf4c8dd7dcb2f/href">https://medium.com/media/536a4c227153f9426a7bf4c8dd7dcb2f/href</a></iframe><h3>Building the Model</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c86fe6917f40023435cf6c758f8b7cce/href">https://medium.com/media/c86fe6917f40023435cf6c758f8b7cce/href</a></iframe><h3>Fitting the Model</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e798033f2d12b9ae00b96bb67620829a/href">https://medium.com/media/e798033f2d12b9ae00b96bb67620829a/href</a></iframe><h3>Plotting Accuracy and Loss</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc8e30a7f41abdaf47d3dc83db615066/href">https://medium.com/media/cc8e30a7f41abdaf47d3dc83db615066/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*J836vkour7hiCfY-YUfklw.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0115ba312956214f625ca0b6ca64d17f/href">https://medium.com/media/0115ba312956214f625ca0b6ca64d17f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*kRO0ai5KyCN8XMr6hBvWLA.png" /></figure><h3>Saving and deepCC</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5617eb1251e92183b43cf67596493731/href">https://medium.com/media/5617eb1251e92183b43cf67596493731/href</a></iframe><h3>Conclusion</h3><p>This Model predicts whether the patient has any Cardio- Vascular Disease or not using Deep Neural Networks.</p><h3>Link to the Notebook</h3><p><a href="https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/cardio_vascular.ipynb">https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/cardio_vascular.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88bc345f44ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-techsystems/cardio-vascular-disease-prediction-88bc345f44ac">Cardio- Vascular Disease Prediction</a> was originally published in <a href="https://medium.com/ai-techsystems">AITS Journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Water Potability Test]]></title>
            <link>https://medium.com/ai-techsystems/water-potability-test-1ee279746b3a?source=rss-51086b7c8b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ee279746b3a</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[water-potability-test]]></category>
            <category><![CDATA[data-sciecne]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Tanmay Mishra]]></dc:creator>
            <pubDate>Sat, 21 Aug 2021 20:38:16 GMT</pubDate>
            <atom:updated>2021-08-31T12:04:12.097Z</atom:updated>
            <content:encoded><![CDATA[<h3>Water Potability Test using Deep Neural Networks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhRostGqKdEVdufNUBvi3w.jpeg" /></figure><h3>Context</h3><p>Access to safe drinking-water is essential to health, a basic human right and a component of effective policy for health protection. This is important as a health and development issue at a national, regional and local level. In some regions, it has been shown that investments in water supply and sanitation can yield a net economic benefit, since the reductions in adverse health effects and health care costs outweigh the costs of undertaking the interventions.</p><h3>Content</h3><p>The water_potability.csv file contains water quality metrics for 3276 different water bodies.</p><h3>1. pH value:</h3><p>PH is an important parameter in evaluating the acid–base balance of water. It is also the indicator of acidic or alkaline condition of water status. WHO has recommended maximum permissible limit of pH from 6.5 to 8.5. The current investigation ranges were 6.52–6.83 which are in the range of WHO standards.</p><h3>2. Hardness:</h3><p>Hardness is mainly caused by calcium and magnesium salts. These salts are dissolved from geologic deposits through which water travels. The length of time water is in contact with hardness producing material helps determine how much hardness there is in raw water. Hardness was originally defined as the capacity of water to precipitate soap caused by Calcium and Magnesium.</p><h3>3. Solids (Total dissolved solids — TDS):</h3><p>Water has the ability to dissolve a wide range of inorganic and some organic minerals or salts such as potassium, calcium, sodium, bicarbonates, chlorides, magnesium, sulfates etc. These minerals produced un-wanted taste and diluted color in appearance of water. This is the important parameter for the use of water. The water with high TDS value indicates that water is highly mineralized. Desirable limit for TDS is 500 mg/l and maximum limit is 1000 mg/l which prescribed for drinking purpose.</p><h3>4. Chloramines:</h3><p>Chlorine and chloramine are the major disinfectants used in public water systems. Chloramines are most commonly formed when ammonia is added to chlorine to treat drinking water. Chlorine levels up to 4 milligrams per liter (mg/L or 4 parts per million (ppm)) are considered safe in drinking water.</p><h3>5. Sulfate:</h3><p>Sulfates are naturally occurring substances that are found in minerals, soil, and rocks. They are present in ambient air, groundwater, plants, and food. The principal commercial use of sulfate is in the chemical industry. Sulfate concentration in seawater is about 2,700 milligrams per liter (mg/L). It ranges from 3 to 30 mg/L in most freshwater supplies, although much higher concentrations (1000 mg/L) are found in some geographic locations.</p><h3>6. Conductivity:</h3><p>Pure water is not a good conductor of electric current rather’s a good insulator. Increase in ions concentration enhances the electrical conductivity of water. Generally, the amount of dissolved solids in water determines the electrical conductivity. Electrical conductivity (EC) actually measures the ionic process of a solution that enables it to transmit current. According to WHO standards, EC value should not exceeded 400 μS/cm.</p><h3>7. Organic_carbon:</h3><p>Total Organic Carbon (TOC) in source waters comes from decaying natural organic matter (NOM) as well as synthetic sources. TOC is a measure of the total amount of carbon in organic compounds in pure water. According to US EPA &lt; 2 mg/L as TOC in treated / drinking water, and &lt; 4 mg/Lit in source water which is use for treatment.</p><h3>8. Trihalomethanes:</h3><p>THMs are chemicals which may be found in water treated with chlorine. The concentration of THMs in drinking water varies according to the level of organic material in the water, the amount of chlorine required to treat the water, and the temperature of the water that is being treated. THM levels up to 80 ppm is considered safe in drinking water.</p><h3>9. Turbidity:</h3><p>The turbidity of water depends on the quantity of solid matter present in the suspended state. It is a measure of light emitting properties of water and the test is used to indicate the quality of waste discharge with respect to colloidal matter. The mean turbidity value obtained for Wondo Genet Campus (0.98 NTU) is lower than the WHO recommended value of 5.00 NTU.</p><h3>10. Potability:</h3><p>Indicates if water is safe for human consumption where 1 means Potable and 0 means Not potable.</p><h3>Importing Libraries</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3a7b1aa68dbb45b3a80178a905d7a9a/href">https://medium.com/media/c3a7b1aa68dbb45b3a80178a905d7a9a/href</a></iframe><h3>Loading the Dataset</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4cc78b62e619bfa6a0fdb0d91ab3b99f/href">https://medium.com/media/4cc78b62e619bfa6a0fdb0d91ab3b99f/href</a></iframe><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*iuUJYIIfrtxcQrx5KTeD2g.png" /></figure><h3>Resampling the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a11c1c9c6744e0535e13a76a6fa2140/href">https://medium.com/media/1a11c1c9c6744e0535e13a76a6fa2140/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60f570001363c91ea4e7288c095336b0/href">https://medium.com/media/60f570001363c91ea4e7288c095336b0/href</a></iframe><h3>Dealing with Null Values</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd62d82d8afea59f2d79674b006db4a8/href">https://medium.com/media/dd62d82d8afea59f2d79674b006db4a8/href</a></iframe><p>Since there are many null values and approx. 3000 input values only, so removing null values would not be beneficial for us, instead I replaced the null values with the mean.</p><h3>Correlation in Data using Heatmap</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e41d35e461ac6421b0ca1107037e76af/href">https://medium.com/media/e41d35e461ac6421b0ca1107037e76af/href</a></iframe><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*6vYxfwJo1fXlV8tVOROrHw.png" /></figure><p>Data is not correlated with each other as we can see in the Heatmap</p><h3>Normalising the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2d930b3c2b8e4217ea48fec113b0eae/href">https://medium.com/media/a2d930b3c2b8e4217ea48fec113b0eae/href</a></iframe><h3>Splitting the Data</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc83a1d965870b00a7bb84fc2c6c6141/href">https://medium.com/media/cc83a1d965870b00a7bb84fc2c6c6141/href</a></iframe><h3>Building and Fitting the Model</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52cfe8511671613531e9b1fd91d77991/href">https://medium.com/media/52cfe8511671613531e9b1fd91d77991/href</a></iframe><h3>Plotting Accuracy and Loss</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/676cea8dd9f0e9b334e3b0ce8d2e4cad/href">https://medium.com/media/676cea8dd9f0e9b334e3b0ce8d2e4cad/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*PNPDPPUpZYLih2wm6h9hdg.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd378912b1496a6db3edf5e836da2f11/href">https://medium.com/media/cd378912b1496a6db3edf5e836da2f11/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*XlBzHCULlydIq12ctLgRDQ.png" /></figure><h3>Saving the Model and deepCC</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f66d9f721079f4d6ad29cd9ac075b647/href">https://medium.com/media/f66d9f721079f4d6ad29cd9ac075b647/href</a></iframe><h3>Conclusion</h3><p>This is one of the many ways to predict whether the water is potable(drinkable) or not.</p><p>Link to Notebook —<a href="https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/water_potability_test.ipynb"> https://cainvas.ai-tech.systems/notebooks/details/?path=tanmay/water_potability_test.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ee279746b3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-techsystems/water-potability-test-1ee279746b3a">Water Potability Test</a> was originally published in <a href="https://medium.com/ai-techsystems">AITS Journal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>