<?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 Param Raval on Medium]]></title>
        <description><![CDATA[Stories by Param Raval on Medium]]></description>
        <link>https://medium.com/@param005raval?source=rss-21c4fe422a47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eccr5DFf7bidQW2JANOxYg.jpeg</url>
            <title>Stories by Param Raval on Medium</title>
            <link>https://medium.com/@param005raval?source=rss-21c4fe422a47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:27:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@param005raval/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Most Promising Open-source Document OCR Tools | 2023]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@param005raval/the-most-promising-open-source-document-ocr-tools-2023-343132c277c5?source=rss-21c4fe422a47------2"><img src="https://cdn-images-1.medium.com/max/2600/1*VtOI9iyllqS56j7OJep9hg.jpeg" width="3583"></a></p><p class="medium-feed-snippet">Comparing a few of the most popular or upcoming Python-based projects to OCR scanned documents.</p><p class="medium-feed-link"><a href="https://medium.com/@param005raval/the-most-promising-open-source-document-ocr-tools-2023-343132c277c5?source=rss-21c4fe422a47------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@param005raval/the-most-promising-open-source-document-ocr-tools-2023-343132c277c5?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/343132c277c5</guid>
            <category><![CDATA[tesseract]]></category>
            <category><![CDATA[document-ocr]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ocr]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 20:00:25 GMT</pubDate>
            <atom:updated>2024-12-10T12:22:12.200Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Splunk: Creating Analytical Dashboards with Splunk Enterprise]]></title>
            <link>https://medium.com/codex/splunk-creating-analytical-dashboards-with-splunk-enterprise-7b2f14ce1ed7?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b2f14ce1ed7</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Wed, 04 May 2022 11:16:21 GMT</pubDate>
            <atom:updated>2022-05-12T16:47:57.473Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner’s guide to performing quick EDA and building elegant dashboards in Splunk using data from CSVs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2hUOuAiPXZE5Xa7G" /><figcaption>Photo by <a href="https://unsplash.com/@jessbaileydesigns?utm_source=medium&amp;utm_medium=referral">Jess Bailey</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is the heyday for analytical dashboards in the business world and every formal or informal presentation greatly benefits from pleasing visuals. However, it can be time-consuming and cumbersome to handle huge amounts of data and to even explore it statistically — let alone create visualisations from it. Despite there being other more popular alternatives, Splunk gives a decent and simple enough tool for people who do not wish to waste time learning a new framework or programming language when they can be making beautiful dashboards and gaining impressive insights.</p><p>Splunk is not something that many people are familiar with in regular use. However, after using it, it is easy to see how its data connectivity, easy-going UI, and fundamental analytical utilities can be useful for some quick data analysis.</p><h4>Why Splunk?</h4><p>Python and Tableau are certainly more popular when it comes to creating formal reports or having more flexibility in data analysis and visualisation. Tableau provides rapid data handling and interactive UIs while libraries like Seaborn or Plotly in Python give more flexibility in the graphical utilities. Plus the latter can be easily integrated with a Python-based web application.</p><p>However, for many people, both of those tools require a lot of trial and error if you haven’t already worked with them for several projects. Moreover, Splunk is ideal for businesses that want more options to load their datasets directly from TCP/UDP ports, Cloud platforms, local databases, or APIs. In addition to that, it supports a large number of file formats for direct uploads. These functionalities help smoothen the data management process without utilising expensive memory resources.</p><h3>Splunk Enterprise</h3><p>One of the simplest ways to start with Splunk would be with Splunk Enterprise. Splunk Enterprise is one of the products given by Splunk to load, search, analyze, and visualize one’s data. A major advantage of using Enterprise is how it supports loading data from a large variety of resources and is simple for some amateur analysis and dashboard generation.</p><p><a href="https://www.splunk.com/en_us/download/splunk-enterprise.html">Install Splunk Enterprise from this link</a>. On this page you’ll have to:</p><ol><li>Create a Splunk Account</li><li>Download the package based on your OS</li></ol><p>For this tutorial, we use <strong>Splunk 8.2.6</strong>. on a Windows 10 OS.</p><p>It is worth noting that Splunk Enterprise is a paid service. While it’s not recommended to pay for such services unless absolutely necessary for your organization, it’s worth going through the trial period to get through your short-term projects. The free trial option is activated by default during activation but you can change it to the free tier once Splunk has been installed.</p><p>Next, the default installation might ask you to create login credentials for the webserver. For Splunk Enterprise (not Splunk Free), you will use this to log in to the Splunk local server each time you open Splunk Enterprise. As mentioned on the Splunk Free webpage, Splunk Free does not create different users so it won’t need personalised credentials to access the local server.</p><p>Once the installation is complete, you can directly launch the Splunk web server. Alternatively, for Windows, you can go to “Services” from the Start Menu, look for “Splunkd Service” and start it from there. The service will most commonly run at <em>localhost:8000</em>.</p><h3>Using Splunk Enterprise</h3><p>The home page would look something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LI_Kl-gNDwzxWywDm2FIkw.png" /><figcaption>Image by author</figcaption></figure><p>The first step for any data analysis project would always be loading and exploring the data.</p><p>For the sake of simplicity, we’ll only explore the option to upload data files from your computer. Alternatively, to just get familiar with Splunk, you can also use one of the many default datasets that Splunk provides.</p><h4>Using default dataset</h4><p>Head over to the “Search &amp; Reporting” window from the landing page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*Pn8BtBNhgl8oqKA_ZUheuQ.png" /><figcaption>Image by author</figcaption></figure><p>Switch to the <em>Datasets </em>tab to see the available datasets. This version of Splunk has 33 datasets from which we’ll choose the Chicago Crime dataset (<em>chicago-crime.csv</em>). Selecting it will load a preview of the dataset as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMFzBmK1JncjpQmLaqme1g.png" /><figcaption>Image by author</figcaption></figure><p>From the top right, go to Explore-&gt;Investigate in Search to begin the analysis process.</p><h4>Loading Dataset from your computer</h4><p>You can access this option from the “Add Data” section of the landing page.</p><p>To keep things consistent for this blog, I downloaded the larger Chicago Crimes dataset from the official website: <a href="https://data.cityofchicago.org/Public-Safety/Crimes-2001-to-Present/ijzp-q8t2">Crimes — 2001 to Present</a>. You can head over to <a href="https://data.cityofchicago.org/">data.cityofchicago.org</a> and find the crimes datasets under “Public and Safety” as well. The CSV file of the former dataset will be around 39MB in size. Based on the data you choose, I’d recommend removing spaces from the column headers to make the querying easier.</p><ol><li>Upload the file and go “Next”.</li><li>In the “Set Source Type” section, set source type as “csv” if not already set and under “Timestamp” set Extraction as “Current”. Be sure to “Save As” and set any arbitrary name.</li><li>In the next section, create a new index by setting a simple index name like “chicagocrime”.</li><li>Review and Submit.</li></ol><h3>Querying the dataset</h3><p>From this point on, we will work with the default <em>chicago-crime</em> dataset given in Splunk. After selecting “Investigate in Search”, we see the Search &amp; Reporting screen as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jndnN2YkGvQ4KwqOrOhzcQ.png" /><figcaption>Image by author</figcaption></figure><p>On this screen, there is a search bar to write queries and the set of panes below display the results. For search queries like aggregation, selection, filtering, etc. the results will be shown on the Statistics pane. For simplicity, let’s not explore the Events or Patterns panes.</p><p>For a quick guide on the querying keywords refer to the <a href="https://docs.splunk.com/Documentation/SplunkLight/7.3.6/References/Listofsearchcommands">documentation page here</a>. We’ll explore some elementary queries now.</p><p><strong>Displaying the entire data table</strong></p><p>For the default dataset (note the pipe “|” in the beginning):</p><pre>| from inputlookup:”chicago-crime.csv”</pre><p>For the uploaded dataset, just mention the name of the index you set during the data loading stage:</p><pre>index=&quot;chicagocrime&quot;</pre><p>Both of these queries will display the entire data as a table:</p><p><strong>Selecting a subset</strong></p><pre>| from inputlookup:&quot;chicago-crime.csv&quot; | table description, primary_type | head 500</pre><p>The <strong>table</strong> keyword will take a list of column names and select those columns from the entire set. Similarly, using <strong>head n </strong>will select the first n rows in the set. Every new command or utility needs to be appended after adding a pipe “|”.</p><p><strong>Get Stats</strong></p><p>Let’s see a few basic queries to explore the dataset and also get an idea of how to write them.</p><p>Before writing the query, we must be clear on the results which we want to produce. For instance, if we want to see how many crimes have been reported in each unique location, we can simply count the occurrences of every unique value in the <em>location_description </em>column.</p><p>For aggregation operations like sum, count, mean, <em>first</em>, or range, we use the <strong>stats</strong> keyword in Splunk querying. <strong>stats</strong> followed by the keyword for the operation (in our case, <strong><em>count by</em></strong>) and the column name will create a column named “count” that will correspond to each unique value in the location_description column.</p><p>Moreover, we will <em>sort</em> the results in descending order of count and display the first 10 values using <strong><em>head</em></strong>. This is what the query looks like:</p><pre>| from inputlookup:&quot;chicago-crime.csv&quot; | stats count by location_description | sort - count | head 10</pre><p>And this is the resultant table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*6lA8jh_gFPwDXYB9c0ALng.png" /><figcaption>Image by author</figcaption></figure><p>The location “STREET” has the most reported number of crimes in this dataset.</p><p>Since we have performed an aggregation operation and have two correlated columns (location description corresponding to a numeric value indicating the count), we can take a look at the Visualisation pane next to the current Statistics pane. It will generate a quick chart based on the current results.</p><p>For example, a pie chart</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*1faGjJ5PEC4XAoR0PD9L8A.png" /><figcaption>Image by author</figcaption></figure><p>You can also change the chart type to something else like a horizontal bar chart, or a line chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*Vyo-HXaQFMGJH0kgI-25IA.png" /><figcaption>Image by author</figcaption></figure><p>Next, let’s look deeper into the location “STREET” and see what types of crimes are most common there. For that, we need to select the rows that have STREET under location_description and then count the occurrences of unique values of the primary_type column.</p><p>So all we need to change structurally from the previous query is to add the filtering operation using the <strong>search</strong> keyword.</p><pre>| from inputlookup:&quot;chicago-crime.csv&quot; | search location_description=&quot;STREET&quot; |stats count by primary_type | sort - count | head 10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*bwq38geXf5zEk4wAy1LIdA.png" /><figcaption>Image by author</figcaption></figure><p>THEFT is the most commonly occurring crime on the street.</p><p>Again we can plot the results since we have correlated columns</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*bN5fn2riu19rzPi4iflGBw.png" /></figure><p>These will be the type of charts we will include in our dashboard.</p><p>In this manner, you need to look at the dataset and explore features in the table view stage to figure out what kinds of information you can extract from its columns.</p><p>Another intuitive question would be to ask what kind of places a particular crime mostly occurs? Consider the crime description “DOMESTIC BATTERY SIMPLE”. Based on the description we should expect the most common locations to include households or indoor spaces.</p><pre>| from inputlookup:&quot;chicago-crime.csv&quot; | search description=&quot;DOMESTIC BATTERY SIMPLE&quot; | stats count by location_description | sort - count | head 10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*lL9fqSrN4b5kTEOc8zsg7A.png" /></figure><p>Yes, our assumption was true and the data backs it. You can answer similar questions and support or refute your assumptions using data analysis.</p><h3>Creating Maps</h3><p>Two of the columns in our dataset have location coordinates of these crimes, these values as numbers cannot be used for data analysis readily but Splunk provides add-on Apps to plot these coordinates on the Map!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OfGlVB1i9romVuehxuajJA.png" /></figure><p>The Maps+ for Splunk app clusters the location coordinates and shows the number of instances in that cluster. Basically, we get to see the regions of Chicago where most crime takes place. Zooming into this map, the clusters get more granular and divide into multiples as we zoom closer.</p><p>To install Maps+ for Splunk, head over to Apps-&gt;Find More Apps and search for this add-on tool. Enter the credentials you created for <strong>splunk.com </strong>(not the localhost login) and install it.</p><p>After installation, head back to Search and enter the following query. The <strong>table</strong> keyword creates a sub-table out of the current one.</p><pre>| from inputlookup:&quot;chicago-crime.csv&quot; | table latitude, longitude</pre><p>Maps+ only needs the table to have two columns named latitude and longitude respectively. Our table only has these two columns so Maps+ will simply display the count as its clusters.</p><p>Go to the Visualisation pane and select the Maps+ option from the select visualisation menu, and a map will show up!</p><h3>Creating the Dashboard</h3><p>Once you have formed and tested all the queries and previewed their visualisations, go to the Dashboards bar from the menu bar above the search.</p><p>Select <em>Create New Dashboard</em>, set a title, and continue with the classic dashboard option.</p><p>Now you can add panels, select charts to display in that panel, and add the query that the Dashboard will execute to generate the required charts. For instance, entering the first query we created in the Pie Chart option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKoHBL0uQbIjDG7LLklkqQ.png" /><figcaption>Image by author</figcaption></figure><p>Click <em>Add to Dashboard </em>and you’ll see that the chart is added once the query execution is complete.</p><p>Similarly, you can add all the queries we discussed here and more and generate the respective charts.</p><p>You can also drag and shift the charts to put them side-by-side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEXxHlsB5bjEXcjebWlcUQ.png" /><figcaption>Image by author</figcaption></figure><p>So now you can finally rapidly make aesthetically pleasing dashboards with Splunk! Once the dashboard is saved, you can export it as a PDF to share with your colleagues.</p><p>However, to share this interactive dashboard as a Splunk source, you can switch to “Source” instead of “UI” on the dashboard screen. Here you will see the HTML source code of this dashboard. Sharing this code along with the dataset (not required for default) will let other people reproduce the charts in their Splunk Enterprise app. Here is the code for the charts we created today.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85541efacfee624d175b7df878a0e694/href">https://medium.com/media/85541efacfee624d175b7df878a0e694/href</a></iframe><h4>Conclusion</h4><p>In this article, we looked at how Splunk can be used to perform rudimentary data analysis using a basic querying language and other stats generated automatically by Splunk. We also learned how to quickly create dashboards from the results of these queries to generate insights from a large quantity of data.</p><p>Thank you so much for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b2f14ce1ed7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/splunk-creating-analytical-dashboards-with-splunk-enterprise-7b2f14ce1ed7">Splunk: Creating Analytical Dashboards with Splunk Enterprise</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Deep Learning by Building 15 Neural Network Projects in 2022]]></title>
            <link>https://medium.com/projectpro/learn-deep-learning-by-building-15-neural-network-projects-in-2022-156c9b1aefc6?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/156c9b1aefc6</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 17:52:28 GMT</pubDate>
            <atom:updated>2021-12-17T17:29:38.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tImXx2Ron8hiT461" /><figcaption>Photo by <a href="https://unsplash.com/@possessedphotography?utm_source=medium&amp;utm_medium=referral">Possessed Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>With the invention of computers, many people talked about the fact that computers will never surpass human performance, whether it is beating a champion at chess or solving a Rubik Cube. Well, computers today can do all of those things. All thanks to Neural Networks for changing the world and the nay-sayers! Neural Networks have been around since the 1950s, but it was only in the last two decades that people have been able to realize their true power. Deep learning and neural networks have found their way into our daily lives since 2012. Since then, neural nets have contributed to drug discovery and medical diagnosis to Netflix recommendations. And the growth is not faltering anytime soon; the number of neural net parameters has risen from a few hundred thousand to <a href="https://venturebeat.com/2021/01/12/google-trained-a-trillion-parameter-ai-language-model/">1 trillion</a> within ten years. There are countless deep learning applications that we can build with neural networks, but here are 15 that are on my list to build in 2022. Building these neural network projects will give the machine learning skills and knowledge required to build diverse deep learning applications.</p><p>If you want to learn and try your hands-on how to build each of these neural network projects, check out these <a href="https://bit.ly/30GP3gk">solved Deep Learning and Neural Network Projects</a>, where you’ll learn to create impressive beginner to advanced level deep learning applications.</p><h3>15 Neural Network Projects You Should Build in 2022</h3><h3>Neural Network Project Ideas Using Convolutional Neural Networks (CNNs)</h3><p>A CNN is a neural network that relies on the convolution operation to extract features from a given input (typically an image). Convolutions are performed sequentially by filters of varying sizes along with other transformations such as pooling and normalization to extract and learn patterns from the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*w8Fo04zcRH4btjI9" /><figcaption><a href="https://www.researchgate.net/figure/A-vanilla-Convolutional-Neural-Network-CNN-representation_fig2_339447623">Image Source</a></figcaption></figure><h3><strong>1) Optical Character Recognition (OCR) for Handwritten Text</strong></h3><p>The work on Optical character recognition (OCR) for printed text has been in progress for several decades. With the rise in deep convolutional neural networks, even mangily handwritten text is now (somewhat) legible to the machines. OCR is being used widely today with license plate recognition for arresting speeders, automatically reporting and filtering offensive and inappropriate posts from social media websites, and processing identification online simply by scanning personal documents like passports and driving licenses. Handwriting is more difficult to process both for humans and machines alike. But automating it with handwritten OCR has applications in digitizing millions of antique documents and newspaper clippings, processing scanned hand-filled application forms and even online learning with digital scribble pads.</p><p>Several state-of-the-art OCR models prove their benchmarks on the <a href="https://fki.tic.heia-fr.ch/databases/iam-handwriting-database">IAM handwritten dataset</a>, and you can use it for free to test your model. Using empirical analysis, you can build a CNN architecture for your dataset simply using Conv2D and MaxPooling2D layers. A sample below defines the second layer taking input from the first layer, “pool_1”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/0*qIuGkS8mHFdyct0Z" /></figure><p>Adding an RNN or Bi-LSTM layer at the very end can help improve the recognition significantly. Why? Well, handwriting in the same document tends to have some consistency. Learnings from that consistency would help improve predictions as we move further ahead in a sentence or document. This added component can even help the model converge with fewer data than a simple CNN. You can use the <em>keras.layers.recurrent.GRU</em> module for RNN and <em>keras.layers.Bidirectional</em> for a Bi-LSTM unit.</p><p>Datasets To Try Your Hands-On: <a href="https://www.kaggle.com/tejasreddy/iam-handwriting-top50">IAM Handwriting Top50</a>, <a href="https://www.kaggle.com/ssarkar445/handwriting-recognitionocr">Handwriting Recognition(OCR)</a>, <a href="https://ieee-dataport.org/documents/dataset-classification-handwritten-and-printed-text-doctors-prescription">Dataset Doctor’s prescription</a>, <a href="https://www.kaggle.com/landlord/handwriting-recognition">Kaggle Handwriting Recognition</a></p><h3><strong>2) Disease Diagnosis from Medical Reports</strong></h3><p>Automating the reading of chest X-rays and blood cell images can hasten the diagnosis of chronic diseases like tuberculosis and cancer and potentially save lives with the precision achieved by neutral networks in detecting these ailments from the onset. During the latest pandemic, this application found a real-time use case in alleviating the workload of several healthcare facilities.</p><p>By training a deep CNN with annotated images of chest XRays, one can reliably predict the onset of a particular disease, especially COVID-19. You can find a preliminary dataset <a href="https://github.com/ieee8023/covid-chestxray-dataset">here</a>. This neural network project idea is an excellent opportunity to exploit transfer learning to achieve good performance and rapid convergence with a small dataset. Using pre-trained weights of state-of-the-art CNN architectures like <a href="https://keras.io/api/applications/resnet/">ResNet50</a> and <a href="https://keras.io/api/applications/xception/">Xception</a> on the popular ImageNet dataset, you can easily fine-tune these complex models for your use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*jKRY5-KqPCbpLIVi" /><figcaption><a href="https://www.sciencedirect.com/science/article/pii/S1361841520301584">Image Source</a></figcaption></figure><p>Using the available chest XRay datasets, one can load these models from Keras with the include_top flag set to False (this means that the final layer will be omitted while loading). You can then define your dense layer, which will be trained based on the classes and images of your dataset.</p><p>Datasets To Try Your Hands-On: <a href="https://cloud.google.com/healthcare-api/docs/resources/public-datasets/nih-chest">NIH Dataset</a>, <a href="https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia">Chest X-Ray Images (Pneumonia)</a>, <a href="https://bimcv.cipf.es/bimcv-projects/padchest/">PADCHEST — BIMCV</a>, <a href="https://data.mendeley.com/datasets/8h65ywd2jr/3">Extensive COVID-19 X-Ray, and CT Chest Images Dataset</a>, <a href="https://www.kaggle.com/paultimothymooney/blood-cells">Blood Cell Images</a></p><h3><strong>3) Document Classification</strong></h3><p>Several industries such as insurance, accounting, and judicial employ services to sort out the thousands of documents they receive daily into several predefined categories. This categorization is done either using the content of those documents (text/images) or the visual layout (forms, tables, charts). And often, both of these modes are useful for classification. Using deep models, one can make this manually tedious task faster by automating it using trained CNNs or language models.</p><p>For visual, image-based classification, one can look at the <a href="https://lampsrv02.umiacs.umd.edu/projdb/project.php?">Tobacco3482 </a>dataset containing images of 10 document types, including forms, memos, reports, ads, and charts. A multi-layer CNN using Conv2D+MaxPooling2D should suffice for a decent classification rate of &gt;85%. Other datasets include <a href="https://www.cs.cmu.edu/~aharley/rvl-cdip/">RVL-CDIP Dataset</a>.</p><p>For a text-based approach, one can use open-source OCR tools like Tesseract or EasyOCR to extract text from their documents and construct a dataset for a text-based approach. Or a very preliminary IMDb movie reviews dataset can be accessed from <em>keras.datasets.imdb</em>. Using a series of Bi-LSTMs (Bidirectional in Keras) with dropout strategies is an excellent way to start. An interesting approach would be to use a Conv1D+MaxPooling1D unit to extract features from an input sentence embedding and train an LSTM on those spatial features.</p><p>Datasets To Try Your Hands-On: <a href="https://www.cs.cornell.edu/people/pabo/movie-review-data/review_polarity.tar.gz">Cornell Review Polarity</a>, <a href="http://qwone.com/~jason/20Newsgroups/">Newsgroups Data Set</a>, <a href="https://github.com/mhjabreel/CharCnn_Keras/tree/master/data/ag_news_csv">AG News</a>, <a href="http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html">Reuters-21578 Text</a>, <a href="https://www.kaggle.com/shivamkushwaha/bbc-full-text-document-classification">BBC Full Text</a></p><h3><strong>4) Content-Based Recommender Systems</strong></h3><p>Recommendation systems are ubiquitous in online retail and content-centric media platforms; even blog pages on a business website have recommendations tailored for every customer. Techniques like collaborative filtering are already famous and widely used, but clubbing and recommending similar content would be the more intelligent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*1gVMNUYOubrB7oun" /><figcaption><a href="https://www.kaggle.com/marlesson/building-a-recommendation-system-using-cnn-v2">Image Source</a></figcaption></figure><p>You can begin with the <a href="https://www.kaggle.com/paramaggarwal/fashion-product-images-dataset">Fashion Dataset on Kaggle</a> and work your convolutional model towards learning the representations of these images. One way would be to use transfer learning. Use Keras’ pre-trained <a href="https://keras.io/api/applications/resnet/">ResNet50</a> model and add a final Pooling layer to learn representations specific to your data. This model will generate an embedding for each fashion item in the dataset. You can now input a particular image to this model, create an embedding, and use cosine similarity to find things that are spatially close to the given item. Thus, you can recommend them reliably to the user.</p><p>Datasets To Try Your Hands-On: <a href="https://www.kaggle.com/cclark/simple-content-based-recommendation-engine/data">E-commerce recommendation data</a>, <a href="https://www.kaggle.com/olgabelitskaya/style-color-images">Style Color Images</a>, <a href="https://www.kaggle.com/vikashrajluhaniwal/fashion-images">E-commerce Product Images</a>.</p><h3><strong>5) Human Activity Detection</strong></h3><p>While frowned upon by several privacy advocates, surveillance is necessary for some use-cases in a controlled manner. Detecting human activity from CCTV footage for security or as a signal for an automatic door is achievable with deep neural networks in real-time.</p><p>For starters, you can head over to the <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md">TensorFlow 2 Object Detection API</a> and check the off-the-shelf object detection models they provide. They also provide steps to perform inference on your own image in <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/colab_tutorials/inference_tf2_colab.ipynb">this notebook</a>. After seeing this, you’ll know what to expect from a human detection system. However, these ready-to-use models work best with a GPU. For now, you can use the free limited GPU on Google Colab.</p><p>To work from scratch, you can implement object detection models such as <a href="https://paperswithcode.com/method/faster-r-cnn">Faster R-CNN</a> using Keras or PyTorch and try your hands-on human detection datasets like Kaggle’s <a href="https://www.kaggle.com/constantinwerner/human-detection-dataset">Human Detection Dataset</a>, <a href="https://www.crowdhuman.org/">CrowdHuman Dataset</a>, and <a href="https://www.cis.upenn.edu/~jshi/ped_html/">Pedestrian Detection Database</a>.</p><h3><strong>6) Semantic Segmentation of Road Objects</strong></h3><p>Semantic segmentation involves classifying every pixel in an image to a predefined object class; it creates masks around an object of a particular category. Segmentation, one of the most practical applications of CNN is used by self-driving cars in locating and tracking objects on the road, including the road itself, by satellite cameras to detect natural resources or migrating patterns or terrorist settlements from aerial images, and digital tracking maps to segment roads and buildings to draw a guided path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P7kYRZ5xCJ06iI6W" /><figcaption><a href="https://github.com/CSAILVision/semantic-segmentation-pytorch">Image Source</a></figcaption></figure><p>While several heavy-weight architectures have achieved results close to the one shown above, we can start with a reasonably decent architecture, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*WyVpvgdDwxUV2wEQ" /><figcaption><a href="https://www.researchgate.net/figure/The-architecture-of-Unet_fig2_334287825">Image Source</a></figcaption></figure><p>As shown on the <a href="https://keras.io/examples/vision/oxford_pets_image_segmentation/#:~:text=1%0A%20%20%20%20%20%20%20%20return%20x%2C%20y-,Prepare%20U%2DNet%20Xception%2Dstyle%20model,-from%20tensorflow.keras">Keras website</a>, this architecture works on the concept of downsampling an image to learn its basic representations and then learning to upsample it, finally generating a mask-like image. For now, some of the best-performing semantic segmentation models include <a href="https://arxiv.org/abs/1904.04514">HRNet</a>, <a href="https://github.com/tensorflow/models/tree/master/research/deeplab">DeepLab</a>, and <a href="https://github.com/DeepMotionAIResearch/DenseASPP">ASPP</a>.</p><p>Datasets To Try Your Hands-On: <a href="http://groups.csail.mit.edu/vision/datasets/ADE20K/">ADE20K dataset</a>, <a href="http://sceneparsing.csail.mit.edu/">MIT Scene Parsing Benchmark</a>, <a href="http://www.lapix.ufsc.br/pesquisas/projeto-veiculo-autonomo/datasets/?lang=en">RTK Dataset</a>, <a href="https://www.robots.ox.ac.uk/~vgg/data/pets/">Visual Geometry Group: Pet Dataset</a>, <a href="https://www.robots.ox.ac.uk/~vgg/data/parissculpt360/">parissculpt360</a></p><h3>Neural Network Project Ideas Using Long Short-Term Memory (LSTM)</h3><p>LSTM is a type of Recurrent Neural Network that works on sequences of data and retains information learned over time. At each step, the new information learned by the network is added to a “memory” that gets updated based on how important the new knowledge seems to the network. This network has revolutionized speech and handwriting recognition, language understanding, forecasting, and several more normal applications that are normal today.</p><h3><strong>7) Next Word Prediction</strong></h3><p>One of the significant challenges in natural language processing and language modeling is learning representations that capture the context of each sentence. While reading, humans can usually track context from words encountered a few words earlier. Similarly, a neural network can also be designed to remember the learnings from the words it encountered for some time to learn better from the following several words or sentences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*y7V-2dRiUfI0EEbh" /><figcaption><a href="https://devopedia.org/language-modelling">Image Source</a></figcaption></figure><p>Next word prediction or generation is the benchmark task to test a language model’s ability to realize and remember past content like a human would. In daily life, we use word predictions while texting or writing emails. More advanced applications include tools that rectify grammar and suggest writing edits or even generate entire essays from a given prompt.</p><p>Long Short-term Memory (LSTM) is a neural model that improves the architecture and intuition of previous methods to remember contexts, such as a standard ANN or Recurrent Neural Networks (RNN). A standard LSTM comprises three gates, the input, output, and forget gates. These units learn their own parameters to determine if and how much of the current word should be remembered and how much of the past content should be forgotten.</p><p>You can start building your own LSTM using the LSTM module from keras.layers. The text data required for training can be any set of sentences that suit your use case. However, you can use the classics like Shakespeare and <a href="https://www.kaggle.com/carlosaguayo/predicting-the-next-word-using-lstm/data">Plato</a> as your starting point. It should be noted that mathematical models, including LSTMs, cannot read words/sentences and, thus, need vector representations as input. The Tokenizer module from <a href="https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/text/Tokenizer">keras.preprocessing.text</a> is just one of the many ways to achieve these representations. Others include using pretrained word or sentence embeddings like <a href="https://jonathan-hui.medium.com/nlp-word-embedding-glove-5e7f523999f6">GloVe</a> or <a href="https://fasttext.cc/docs/en/unsupervised-tutorial.html">FastText</a>.</p><p>Datasets To Try Your Hands-On: <a href="https://www.gutenberg.org/">Project Gutenberg</a>, <a href="https://www.kaggle.com/dorianlazar/medium-articles-dataset">Medium articles dataset</a></p><h3><strong>8) Time Series Prediction using LSTMs</strong></h3><p>The concept of retaining memory and past content, as demonstrated by LSTMs, is also helpful in cases where the past data is the only way of predicting the present. Weather forecasting, stock price prediction, or even the timeline prediction of diseases like COVID-19 can be made using time series prediction.</p><p>Looking at all the data from the beginning of time might be misleading as many of the important factors then are obsolete now. Thus, defining a “window size” or “timesteps” is essential to look at the past while predicting the present/future. Therefore, your data can cluster <em>n</em> timesteps of data together to train an LSTM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_9L4pTMLKkuTwnpq" /><figcaption><a href="https://www.sciencedirect.com/science/article/pii/S2211379721005775">Image Source</a></figcaption></figure><p>You can again use the LSTM module from Keras to achieve this. To make things more challenging, you can use a Sequential model from Keras and build a series of LSTMs followed by a Dense layer to learn more complex relations and improve performance. The <a href="https://www.kaggle.com/sudalairajkumar/covid19-in-india?select=covid_19_india.csv">COVID-19 India dataset on Kaggle </a>is frequently used for time-series analysis, and now that most of the data have been collected, you can use a portion of the data and confirm the predictions yourself.</p><p>Datasets To Try Your Hands-On : <a href="https://data.world/datasets/time-series">Time-series data on data.world</a>, <a href="https://data.world/shad/covid-19-time-series-data">COVID-19 Time Series Data</a>, <a href="https://www.kaggle.com/sudalairajkumar/novel-corona-virus-2019-dataset">Novel Corona Virus 2019 Dataset</a>.</p><h3><strong>9) Conversational Chatbot</strong></h3><p>Almost every company has an “intelligent” chatbot on its website, but the user experience is certainly not great with all of them. There can be two ways in which a conversational chatbot can reply to a given message: fetch from a set of predefined responses based on the closest match or generate a response of its own. The previous method often yields annoyingly redundant results, and now with advances in conversational AI, the latter is within your reach.</p><p>While there are several advanced methods of creating robust chatbots, the best way to start with would be an encoder-decoder architecture using stacked LSTMs. This type of architecture in the context of text generation of any sort is called a sequence-to-sequence (seq2seq) model. It can be achieved using the standard Keras modules of Bidirectional, or LSTM.</p><p>Datasets To Try Your Hands-On: For Conversational Chatbot Implementation: <a href="http://faculty.nps.edu/cmartell/NPSChat.htm">The NPS Chat Corpus</a>, <a href="http://convai.io/data/">ConvAI2</a>, and <a href="https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html">Cornell Movie-Dialogs Corpus</a>. For Q&amp;A-type chatbots: <a href="https://trec.nist.gov/data/qa.html">TREC QA Collection</a>, <a href="https://www.microsoft.com/en-us/download/details.aspx?id=52419&amp;from=http%3A%2F%2Fresearch.microsoft.com%2Fapps%2Fmobile%2Fdownload.aspx%3Fp%3D4495da01-db8c-4041-a7f6-7984a4f6a905">The WikiQA Corpus</a>, and <a href="https://www.cs.cmu.edu/~ark/QA-data/">Question-Answer Database</a>.</p><h3><strong>10) Text Summarization — Summarization of Large Documents</strong></h3><p>Another application of seq2seq models is summarizing long-form text into a collection of sentences. This high-level task requires the model to understand the document in its entirety, extract its most important details, and generate coherent sentences that convey that information in the shortest way possible. Researchers can use this tool to summarize dozens of papers and filter out the ones they actually want to spend time reading. Similarly, voice-assistant devices and search engines can also provide quick snippets to the user for a given search query.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*y44zau7ZXSYkoz1y" /></figure><p>Same as before, you can create a seq2seq model with an encore-decoder structure based on stacked LSTMs followed by a Dense layer. Moreover, we can again use transfer learning here by employing GloVe embeddings in the encoder and/or decoder unit to get a headstart on learning sentence representations. You can find GloVe at the <a href="https://nlp.stanford.edu/projects/glove/">Stanford NLP website</a>.</p><p>Datasets To Try Your Hands-On: <a href="https://github.com/m3hrdadfi/wiki-summary">Wiki-summary</a>, <a href="https://github.com/yaolu/Multi-XScience">yaolu/Multi-XScience</a>, <a href="https://catalog.ldc.upenn.edu/LDC2008T19">The New York Times Annotated Corpus — Linguistic Data Consortium</a></p><h3><strong>11) Text Generation from Prompt</strong></h3><p>Neural networks have progressed enough to comprehend large amounts of text and generate entire sequences in continuation to a short input prompt. This notion has found immense use in generating product descriptions, promotional emails and also to generate training data to create models that can detect whether a given text was generated by AI.</p><p>While models like GPT-3 have achieved the benchmark in this task, we can start from scratch using LSTMs. You can use text from the free ebooks available on <a href="https://www.gutenberg.org/ebooks/search/%3Fsort_order%3Ddownloads">Project Gutenberg</a>. After cleaning and vectorizing the data, we can train a Sequential LSTM model on several batches of sentences. Once that is done, you can give the model a test sequence from the ebook and map the output vectors with the character set. You will see that the model was able to continue your input prompt and generate (hopefully) meaningful and relevant sentences.</p><p>Datasets To Try Your Hands-On: <a href="https://storage.googleapis.com/download.tensorflow.org/data/shakespeare.txt">Shakespeare</a>, <a href="https://paperswithcode.com/dataset/dailydialog">DailyDialog Dataset</a>, <a href="https://www.kaggle.com/pankrzysiu/nietzsche-texts">Nietzsche Texts</a></p><h3><strong>12) Neural Machine Translation</strong></h3><p>Language translation used to be an entire profession before Google Translate and the several powerful language models like GPT. Several multinational businesses would require their documents and web content to be accessible to people across the globe. And while Google Translate might do it for free, not all context is realized by the free tool. To make it specific to one’s use case, one should train the machine translation model by themselves.</p><p>Using the previously mentioned seq2seq style architecture, one can easily train such a model with impressive results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/0*ZaOVvRN4qZbW-uBs" /></figure><p>Like previous generational models, translation involves encoding the sentence embeddings into a feature space and using the learnings from that space to decode them into the translated domain. Thus, we can use two LSTM units in Keras with the “return_state” parameter set to True, with one acting as an encoder and the other the decoder.</p><p>Datasets To Try Your Hands-On: <a href="http://www.manythings.org/anki/">ANKI</a>, <a href="https://metatext.io/redirect/jw300">JW300</a>, <a href="https://www.kaggle.com/aiswaryaramachandran/english-to-hindi-neural-machine-translation">English to Hindi</a>, <a href="https://www.kaggle.com/hgultekin/paralel-translation-corpus-in-22-languages">Parallel Translation Corpus in 24 languages! (~5M)</a></p><h3><strong>13) Fake News Detection</strong></h3><p>In the past few years, individuals have gotten their news and daily updates from social media or news applications. Not everyone has the time to verify the facts of the stories they read or the headlines that float on social media. And thus, for any organization, it is vital to filter harmful and rumorous news items about themselves. And the same goes for the sites that host these posts. Despite recent language models capable of comprehending large chunks of text and even generating similarly vast amounts of indiscernible content, working on short sentences such as headlines is a challenge.</p><p>One method is to train a Bi-LSTM on the headline as well as the content of such news clippings aiming to classify them into real or fake. Another way is to use GloVe embeddings and train deep CNNs using Conv1D+MaxPooling1D. Since this problem is challenging, changing various hyperparameters might lead to drastic improvements in the results. GridSearch is a popular method to find the best set of hyperparameters for your model, and the Python package <a href="https://github.com/autonomio/talos">Talos</a> automates this process for you for your Keras model.</p><p>Datasets To Try Your Hands-On — <a href="https://github.com/several27/FakeNewsCorpus">FakeNewsCorpus</a>, <a href="https://www.kaggle.com/mrisdal/fake-news">Kaggle Fake News</a>, <a href="https://www.kaggle.com/jruvika/fake-news-detection">Kaggle Fake News Detection</a>, <a href="https://arxiv.org/abs/1806.00749">TI-CNN</a> news dataset.</p><h3><strong>14) Information Extraction from Unstructured Text</strong></h3><p>As language models claim to understand large texts, there can be applications where models replace the need for repetitive reading and comprehension by a human. Such applications may be useful in analyzing and processing a huge number of CVs or applications, sorting news articles based on relevance for each user, and processing scanned documents or forms, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/0*8ZtTFUzrriqwX2TS" /><figcaption><a href="https://paperswithcode.com/task/relation-extraction">Image Source</a></figcaption></figure><p>This task can be divided into several sub-tasks in standard ML, including named entity recognition (NER), part-of-speech (POS) tagging, and relation extraction. Most of these can be achieved through the <a href="https://github.com/explosion/spaCy">SpaCy</a> package in Python. However, this task as a whole can be done effectively by training several stacked LSTMs on unstructured text matched with the targeted information to be extracted from each.</p><p>For instance, using the <a href="https://github.com/zzzDavid/ICDAR-2019-SROIE">SROIE dataset</a>, you can pick certain fields present in all the documents (date, invoice number, total amount, etc.) and train a model to locate those features in a test document. Other datasets include <a href="https://www.uni-mannheim.de/dws/research/resources/opiec/">OPIEC</a>, <a href="https://arxiv.org/abs/1905.13538">FUNSD</a>, <a href="https://www.kaggle.com/dataturks/resume-entities-for-ner">Resume Entities for NER</a>.</p><h3>Neural Network Projects Using Convolutional Autoencoders</h3><p>An Autoencoder is a type of Artificial Neural Network that encodes or downsamples the input into a different feature space, learns from the representations, and attempts to regenerate or decode the features into the target output. Typically, an autoencoder is used to learn mappings or representations by itself between the input and the target making it useful for several tasks like anomaly detection, image translation, and even image generation.</p><h3><strong>15) Noise Removal using Convolutional Autoencoders</strong></h3><p>Noisy or blurry images can prove to be devastating to the performance of deep learning-based systems such as face recognition, object detection, or optical character recognition. Different types of noises such as salt-and-pepper, Gaussian, speckle noise may be insignificant to the human eye, but on a pixel level, they are a hurdle for deep learning models, both for training and inference. Moreover, captured images can be blurry for many reasons, including environmental factors or camera lenses. If such unpredictable factors are expected to affect your deployed model, it would be only wise to handle them beforehand.</p><p>Autoencoders are a type of artificial neural network composed of an encoder (which compresses the data and thus removes any minor noisy factors) followed by a decoder (which tries to reconstruct the clean image by decompressing the encoded data). Data to train an autoencoder is created by using noisy or blurry images as the features and the clean images as the target. The encoding-decoding architecture of this ANN tries to learn the mapping between the noisy image and the clean image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*eub77knQDMhX1tUz" /><figcaption><a href="https://blog.keras.io/building-autoencoders-in-keras.html">Image source</a></figcaption></figure><p>You can build and train an autoencoder using standard Python libraries for deep learning, such as Keras. The encoder usually comprises stacked convolutional and pooling layers (using Dense, Conv2D, and MaxPooling2D functions) like in a standard CNN but in reducing the number of filters as we go deeper. The decoder is usually a mirrored encoder with an increasing number of filters as we move towards the output, with each followed by UpSampling2D to bring back the original input size. The final intuition of the architecture for a 400x400 RGB image should look something like the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*r5-dOy0P_cVyHkhP" /><figcaption><a href="https://www.semanticscholar.org/paper/Feature-discovery-and-visualization-of-robot-data-Flaspohler-Roy/514a2f7461edd3e4c2d56d57f9002e1dc445eb58">Image Source</a></figcaption></figure><p>However, you can use the <a href="https://www.tensorflow.org/api_docs/python/tf/keras/datasets/mnist">MNIST data for starters and</a> add the Gaussian noise generated from <a href="https://numpy.org/doc/stable/reference/random/generated/numpy.random.normal.html">numpy.random.normal</a> to images to generate a noisy dataset. You can use OpenCV to generate other types of noisy and blurred images.</p><p>Dataset To Try Your Hands-On: <a href="https://image-net.org/">ImageNet</a>, <a href="https://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10, and CIFAR-100 datasets</a>, <a href="https://github.com/fastai/imagenette">fastai/imagenette</a>.</p><p>Organizations have realized the power of neural networks and use them heavily in their business. The best way to witness this and get a true idea of how they work is to build something of your own. We saw 15 unique ways to incorporate neural networks into your <a href="https://www.projectpro.io/projects/data-science-projects/machine-learning-projects-in-python">machine learning project</a>. With these projects, you can observe the relevance of deep learning in the modern world but also be a part of the community through hands-on learning. Thank You for reading, and let’s get doing!</p><p>In this article, we have referred to several modules found in <a href="https://keras.io/about/">Tensorflow-Keras</a> to give an idea of the implementation of each of these projects -</p><ul><li><a href="https://keras.io/api/layers/core_layers/input/">Input object — Layers API</a></li><li><a href="https://keras.io/api/layers/core_layers/dense/">Dense layer</a></li><li><a href="https://keras.io/api/layers/core_layers/embedding/">Embedding layer</a></li><li><a href="https://keras.io/api/layers/convolution_layers/convolution1d/">Conv1D layer</a></li><li><a href="https://keras.io/api/layers/convolution_layers/convolution2d/">Conv2D layer</a></li><li><a href="https://keras.io/api/layers/pooling_layers/max_pooling1d/">MaxPooling1D layer</a></li><li><a href="https://keras.io/api/layers/pooling_layers/max_pooling2d/">MaxPooling2D layer</a></li><li><a href="https://keras.io/api/layers/recurrent_layers/lstm/">LSTM layer</a></li><li><a href="https://keras.io/api/layers/recurrent_layers/bidirectional/">Bidirectional layer</a></li><li><a href="https://keras.io/api/layers/regularization_layers/dropout/">Dropout layer</a></li><li><a href="https://keras.io/api/models/sequential/">The Sequential class</a></li><li><a href="https://keras.io/api/datasets/">Keras ready-to-use in-built datasets</a></li><li><a href="https://keras.io/api/applications/">Keras Pre-trained Deep Learning models | Applications</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=156c9b1aefc6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/learn-deep-learning-by-building-15-neural-network-projects-in-2022-156c9b1aefc6">Learn Deep Learning by Building 15 Neural Network Projects in 2022</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating adversarial examples with similarity metrics in Python]]></title>
            <link>https://medium.com/data-science/evaluating-adversarial-examples-with-similarity-metrics-in-python-13acb9b5fa9f?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/13acb9b5fa9f</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[adversarial-attack]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 14:05:15 GMT</pubDate>
            <atom:updated>2021-08-26T14:05:15.122Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using similarity metrics to see which attacks change the images the most</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gq3LR0UFUj0FQtjh" /><figcaption>Photo by <a href="https://unsplash.com/@jontyson?utm_source=medium&amp;utm_medium=referral">Jon Tyson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For classification neural network, an adversarial example is an input image that is perturbed (or strategically modified) in such a way that it is classified incorrectly on purpose. There are various algorithms that exploit the inner working — gradients and feature maps — of a given classification model and modify the input image such that it is either only misclassified (untargeted attack) or always misclassified into a specific class (targeted attack).</p><p>In this article, we will look at a few white-box attacks (algorithms that generate attacks after knowing the inner working of a model) and use similarity metrics to point out the increased robustness of some of them.</p><p>The attacks:</p><ul><li><a href="https://arxiv.org/abs/1412.6572"><em>Fast Gradient Sign Method</em></a><em> (FGSM)</em></li><li><a href="https://arxiv.org/abs/1706.06083"><em>Projected Gradient Descent </em></a><em>(PGD)</em></li><li><a href="https://arxiv.org/pdf/1511.04599.pdf"><em>DeepFool</em></a></li><li><a href="https://arxiv.org/abs/1608.04644"><em>Carlini &amp; Wagner</em></a><em> (C&amp;W)</em></li></ul><p><strong>Generating the attacks</strong></p><p>There are a few Python libraries that have implemented these (and other) attack algorithms and also provide ready-to-use modules to generate them for our use case. <a href="https://github.com/cleverhans-lab/cleverhans">Cleverhans</a>, <a href="https://github.com/bethgelab/foolbox">FoolBox</a>, and <a href="https://adversarial-robustness-toolbox.readthedocs.io/en/latest/">ART</a> are three popularly used and regularly maintained open-source libraries for adversarial example (AE ) generation. For now, we use ART.</p><p>Install the Adversarial Robustness Toolbox as below:</p><p>pip install adversarial-robustness-toolbox</p><p>Or refer to the <a href="https://github.com/Trusted-AI/adversarial-robustness-toolbox">official repository</a> for further guidance.</p><p>Next, we can generate attacks as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/126adb284b47ad9d7eefbc08b963e861/href">https://medium.com/media/126adb284b47ad9d7eefbc08b963e861/href</a></iframe><p>To generate attacks we use the InceptionNet V3 model as the base using which the algorithms generate their attacks. We use real-world images as found in the ImageNet dataset and, thus , also the PyTorch model of InceptionNet V3 pretrained on ImageNet.</p><p>The output of the <em>attack.generate()</em> method is a List containing the perturbed image in the same format as the input (in <em>(channel, width, height)</em> format and with pixel values in range [0,1]).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QPDq2F90KbVnqiIwg5uKoA.png" /><figcaption>Sample image for each attack. Image by author</figcaption></figure><p>Visually, in the above images, we can see that the FGSM attack makes perturbations that are visible to the human eye. It is said to be a comparatively weaker attack than the rest. However, CW shows the ideal case! No perturbations are visible and the attack is proven to be more robust against classifiers than the rest.</p><p>Next, we can go about measuring similarity of each of these attacked images with the original image.</p><p>For the human eye it is easy to tell how similar in quality two given images are. However, if one wanted to quantify this difference we’ll need mathematical expressions. From cosine similarity to ERGAS, there are several such metrics available to test the “quality” of an image compared to its original version.</p><p>Typically, when new images are generated from existing images (after denoising, deblurring, or any such operation) it would be good to quantify how dissimilar the regeneration is.</p><p>We can take this application and think of it for our use case as well.</p><p>We know from existing literature that DeepFool and CW are robust attacks that have a higher success rate of fooling the classifier. They are also difficult to detect because of the minimal perturbation (or noise) that they add to the target image. These points have been evaluated using the reduction in the model’s classification accuracy and how the image looks visually, respectively.</p><p>But let’s try to quantify the latter part using this quality indices.</p><p><a href="https://towardsdatascience.com/measuring-similarity-in-two-images-using-python-b72233eb53c6">Read more about implementing these image similarity metrics in Python.</a></p><h4>Similarity Metrics in Python</h4><p>We’ll use the <a href="https://pypi.org/project/sewar/"><em>sewar </em></a>library in Python to implement a few of the available metrics.</p><p>Start with pip install sewar and import the required modules as below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db98ce99b7afa9bcc979979f6e5b295d/href">https://medium.com/media/db98ce99b7afa9bcc979979f6e5b295d/href</a></iframe><p>Out of these we’ll only be using <a href="https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio#:~:text=Peak%20signal%2Dto%2Dnoise%20ratio%20(PSNR)%20is%20an,the%20fidelity%20of%20its%20representation.">PSNR</a>, <a href="https://www.mdpi.com/2072-4292/8/10/797/pdf/1">ERGAS</a>, <a href="https://en.wikipedia.org/wiki/Structural_similarity">SSIM</a>, and <a href="https://www.l3harrisgeospatial.com/docs/spectralanglemapper.html">SAM</a>. I have chosen only these few because in case of robust attacks like CW and DeepFool, out of all those listed above, only these few are able to capture and amplify the differences in a noticeable fashion.</p><p>The imported <em>sewar </em>modules can be used directly such as</p><p>ergas_score = ergas(original, adversarial)</p><p>Below you can see the results for various attacks and various scores. Clearly ERGAS and SAM amplify the differences across attacks more than the rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*fa7ZwOrDVC2EArcd3MHPyg.png" /><figcaption>Similarity scores between original and adversarial image for four effective metrics. Image by author.</figcaption></figure><p>As per our hypotheses, we see that the similarity score for CW attacked images is more than FGSM/PGD attacks. Meaning that the adversarial images are more similar to their original images for CW/DeepFool than other lesser sophisticated attacks.</p><p>Feel free to try out for <a href="https://adversarial-robustness-toolbox.readthedocs.io/en/latest/modules/attacks/evasion.html">other types of attacks </a>yourself!</p><blockquote>Thank you for reading all the way through! You can reach out to me on <a href="https://www.linkedin.com/in/param-raval/">LinkedIn</a> for any messages, thoughts, or suggestions.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13acb9b5fa9f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/evaluating-adversarial-examples-with-similarity-metrics-in-python-13acb9b5fa9f">Evaluating adversarial examples with similarity metrics in Python</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Measuring similarity in two images using Python]]></title>
            <link>https://medium.com/data-science/measuring-similarity-in-two-images-using-python-b72233eb53c6?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/b72233eb53c6</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Wed, 18 Aug 2021 16:27:42 GMT</pubDate>
            <atom:updated>2021-08-19T10:16:38.855Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to implement various similarity metrics in Python in just a few lines of code.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LPfrxLLK2SAxxYkF" /><figcaption>Photo by <a href="https://unsplash.com/@jhaland?utm_source=medium&amp;utm_medium=referral">Jørgen Håland</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For the human eye it is easy to tell how similar in quality two given images are. For example, in the various types of spatial noise shown in the grid below it is easy for us to compare them with the original image and point out the perturbations and irregularities. However, if one wanted to quantify this difference we’ll need mathematical expressions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*GWmJfFwoPj2_M03Qyd8nxQ.png" /><figcaption>Different types of simple noise in an image. Image by author.</figcaption></figure><p>In this article we’ll see how to implement the following similarity metrics each using a single line of code:</p><ul><li>Mean Squared Error (MSE)</li><li>Root Mean Squared Error (RMSE)</li><li>Peak Signal-to-Noise Ratio (<a href="https://ieeexplore.ieee.org/abstract/document/1284395/">PSNR</a>)</li><li>Structural Similarity Index (<a href="https://ieeexplore.ieee.org/abstract/document/1284395/">SSIM</a>)</li><li>Universal Quality Image Index (<a href="https://ieeexplore.ieee.org/document/995823/">UQI</a>)</li><li>Multi-scale Structural Similarity Index (<a href="https://ieeexplore.ieee.org/abstract/document/1292216/">MS-SSIM</a>)</li><li>Erreur Relative Globale Adimensionnelle de Synthèse (<a href="https://hal.archives-ouvertes.fr/hal-00395027/">ERGAS</a>)</li><li>Spatial Correlation Coefficient (<a href="https://www.tandfonline.com/doi/abs/10.1080/014311698215973">SCC</a>)</li><li>Relative Average Spectral Error (<a href="https://ieeexplore.ieee.org/document/1304896/">RASE</a>)</li><li>Spectral Angle Mapper (<a href="https://ntrs.nasa.gov/search.jsp?R=19940012238">SAM</a>)</li><li>Visual Information Fidelity (<a href="https://ieeexplore.ieee.org/abstract/document/1576816/">VIF</a>)</li></ul><p>The <a href="https://pypi.org/project/sewar/"><em>sewar</em></a><em> </em>library can be used to implement all of these metrics (and a few more).</p><p>Start by installing <em>sewar</em>:</p><p>pip install sewar</p><p>and then importing the necessary modules,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db98ce99b7afa9bcc979979f6e5b295d/href">https://medium.com/media/db98ce99b7afa9bcc979979f6e5b295d/href</a></iframe><p>These modules are easy to use and can be directly called as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cb1a45ae0f5697d919169e1edaebc2c/href">https://medium.com/media/5cb1a45ae0f5697d919169e1edaebc2c/href</a></iframe><p>For each of the noisy methods we can see the similarity results below. The “<em>Original</em>” column shows the score after comparing the original image with itself in order to see the <strong><em>ideal </em></strong>score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*NuN5Xm8tLzsbhT1fsmHkWg.png" /><figcaption>Scores from the similarity metrics for different types of noising methods</figcaption></figure><p>The values for each noising method corresponds with the intuition gained visually from the image grid above. For instance, the noise added by S&amp;P (Salt and Pepper) and Poisson methods are not easily visible to the naked eye. However, we can spot them on close observation of the images. In the similarity scores, we can see that S&amp;P and Poisson show values closer to the ideal value when compared to other noising methods. Similar observations can be made from other noising methods and metrics as well.</p><p>From the results it seems that ERGAS, MSE, SAM, and VIFP can be sensitive enough to capture the added noise and return an amplified score.</p><p>But where can this simple quantification be useful?</p><p>The most common application comes when comparing a regenerated or reconstructed image with its original, clean version. GANs have been famously denoising and cleaning images quite well <a href="https://iopscience.iop.org/article/10.1088/1742-6596/1550/3/032127/pdf">recently </a>— and these metrics can be used to measure how well the model has actually reconstructed the image beyond just visual observation. Using these similarity metrics to evaluate the regeneration quality of a large batch of generated images can reduce the manual work in evaluating a model visually.</p><p>Moreover, it has been observed that similarity metrics can also be used to highlight the presence of an <a href="https://www.sciencedirect.com/science/article/pii/S209580991930503X">adversarial attack</a> in an image when compared with its benign counterpart. Thus, these scores can be a measure to quantify the amount of perturbations brought in by these attacks.</p><p>Let’s discuss in the comments more interesting ways in which these image similarity metrics can be used in real life!</p><blockquote>Please follow and support a fellow AI enthusiast!</blockquote><blockquote>Thank you for reading all the way through! You can reach out to me on <a href="https://www.linkedin.com/in/param-raval/">LinkedIn</a> for any messages, thoughts, or suggestions.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b72233eb53c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/measuring-similarity-in-two-images-using-python-b72233eb53c6">Measuring similarity in two images using Python</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RepNet: Counting Repeating Actions in a Video]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/repnet-counting-repeating-actions-in-a-video-bec1bdcec149?source=rss-21c4fe422a47------2"><img src="https://cdn-images-1.medium.com/max/2600/0*jd5ePIdTERW5ADfZ" width="2797"></a></p><p class="medium-feed-snippet">The approach of the latest model for counting a repeated action and estimating the period in a video</p><p class="medium-feed-link"><a href="https://medium.com/data-science/repnet-counting-repeating-actions-in-a-video-bec1bdcec149?source=rss-21c4fe422a47------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/repnet-counting-repeating-actions-in-a-video-bec1bdcec149?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/bec1bdcec149</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[google-research]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 21:36:46 GMT</pubDate>
            <atom:updated>2020-08-27T10:08:05.623Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Avoiding Detection with Adversarial T-shirts]]></title>
            <link>https://medium.com/data-science/avoiding-detection-with-adversarial-t-shirts-bb620df2f7e6?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb620df2f7e6</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Sat, 15 Aug 2020 16:13:47 GMT</pubDate>
            <atom:updated>2020-08-21T14:18:54.871Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understanding the new research behind the new t-shirt pattern that fools state-of-the-art human detection systems</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EWPZ3zuiAWy_PHdV" /><figcaption>Photo by <a href="https://unsplash.com/@lianhao?utm_source=medium&amp;utm_medium=referral">Lianhao Qu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>How can just wearing a specific type of t-shirt make you invisible to the person detection and human surveillance systems? Well, researchers have found and exploited the Achilles’ heel of deep neural networks — the framework behind some of the best object detectors out there (YOLOv2, Faster R-CNN, HRNetv2, to name a few).</p><h3>Earlier approach:</h3><p>In [1], the authors manage to get a benchmark accuracy of deception of<strong> 57% </strong>in real-world use cases. However, this is not the first time attempts have been made to deceive an object detector. In [2] the authors designed a way for their model to learn and generate patches that could deceive the detector. This patch, when worn on a cardboard piece (or any flat surface) could evade the person detector albeit with an accuracy of 18%</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*KJxhSpVQI5cxboupF2XU9Q.png" /><figcaption>From [2]. Left: The person without a patch is successfully detected. Right: The person holding the patch is ignored.</figcaption></figure><p>“Confusing” or “fooling” the neural network like this is called making a <strong><em>physical adversarial attack</em></strong> or a <em>real-world adversarial attack. </em>These attacks, initially based on intricately altered pixel values, confuse the network (based on its training data) into labeling the object as “unknown” or simply ignoring it.</p><p>Authors in [2] transform images in their training data, apply an initial patch, and feed the resulting image into the detector. The object loss obtained is used to change the pixel values in the patch and aimed at minimising the <em>objectness </em>score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*yR0YzN9UDyDBpf5Wg99RxQ.png" /><figcaption>From [2]. Generating patches and getting the object loss.</figcaption></figure><p>However, other than the low accuracy of 18%, this approach is limited to rigid carriers like a cardboard and doesn’t perform well when the captured frame has a distorted or skewed patch. Moreover, it certainly doesn’t work well when printed on t-shirts.</p><p>“A person’s movement can result in significantly and constantly changing wrinkles (aka deformations) in their clothes” [1]. Thus making the task of developing a generalised adversarial patch even more difficult.</p><h3>New Approach:</h3><p>The new approach in [1] employs <strong>Thin Plate Spline</strong> Mapping to model cloth deformations. These deformations simulate a realistic problem faced by previous attempts at using adversarial patterns. Taking care of different deformations would drastically improve the system&#39;s performance as it would be able to<strong> <em>not-detect</em></strong> the pattern in more number of frames.</p><p>Understanding Splines themselves would be enough to get a rough idea of what they are trying to do with this approach.</p><h4>Splines:</h4><p>For a more formal, mathematical definition you can check <a href="https://people.cs.clemson.edu/~dhouse/courses/405/notes/splines.pdf">this </a>out, and for a more simplified understanding, I think <a href="https://towardsdatascience.com/data-science-deciphered-what-is-a-spline-18632bf96646">this </a>article does it best.</p><p>In an intuitive sense, splines help plot arbitrary functions smoothly — especially ones that require interpolations. Splines help model this missing data: here in modeling cloth deformation, where deformations in the patch shape can be seen in successive frames, we can use an advanced form of polynomial splines called <a href="https://profs.etsmtl.ca/hlombaert/thinplates/"><strong>Thin Plate Spline</strong></a> (TPS).</p><p>Check out <a href="https://www.publichealth.columbia.edu/research/population-health-methods/thin-plate-spline-regression">this article</a> by Columbia that illustrates and explains TPS Regression well.</p><p>These changes, or displacements, in the patch frames overtime are then modeled simply as a regression problem (since we only need to predict the TPS parameters for future frames).</p><h3>Generating the T-shirt Pattern:</h3><p>The said pattern is just an adversarial example — a patch that acts against the purpose of the object detector. The authors use the <a href="https://arxiv.org/pdf/1707.07397.pdf"><strong>Expectation Over Transformation (EOT) algorithm</strong></a> which helps in generating such adversarial examples over a given transformation distribution.</p><p>Here, the transformation distribution is made up of the TPS transformations since we want to replicate the real-time wrinkling, minor twisting, and changes in the contours of the fabric.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*1bLckqBMbs5KGaaNHb5SWg.png" /><figcaption>From [1]: Modeling the effects of cloth deformation.</figcaption></figure><p>Along with TPS transformation they also use physical color transformation and conventional physical transformation within the person’s bounding box. Thus, this gives rise to the equation that models pixel values for the perturbed image.</p><p>The EOT formulation based on all these complex formulations can finally compute the <em>attack loss</em> and work towards fooling the object detector.</p><p>The explanation of the procedure, in its most simplified form, so far is for single object detectors. The authors have also proposed a strategy for multiple object detectors that involves applying <strong>min-max optimization </strong>to the single object detector equation.</p><h3>Finally:</h3><p>The results after training and testing on their own dataset are impressive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*XuFqv8nJYLeWFBM_2Gz7SQ.png" /><figcaption>From [1]. Results after generating a custom adversarial patch on the author’s dataset</figcaption></figure><p>And the use of TPS shows great improvement too:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*Kw8oaBjFBKXYLMXtJrl94A.png" /><figcaption>From [1]. Results from different poses compared using TPS (second row) and without TPS (first row)</figcaption></figure><h3>What the future holds:</h3><ul><li>In an <a href="https://news.northeastern.edu/2019/11/13/this-t-shirt-could-make-you-invisible-to-deep-neural-networks/">article </a>by the Northeastern University, Xue Lin, one of the authors of [1], clarified that their goal isn’t to create a T-shirt in order to furtively go unnoticed by the detectors.</li></ul><blockquote>“The ultimate goal of our research is to design secure deep-learning systems, … But the first step is to benchmark their vulnerabilities.” — Xue Lin</blockquote><ul><li>Certainly the authors realise the great scope of improvement in their results and mention that further research will be done to achieve it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dADT3_4C3bgT5IDR" /><figcaption>Photo by <a href="https://unsplash.com/@sebamolinafotografia?utm_source=medium&amp;utm_medium=referral">Sebastian Molina fotografía</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Thank you for reading all the way through! You can reach out to me on <a href="https://www.linkedin.com/in/param-raval/">LinkedIn</a> for any messages, thoughts, or suggestions.</blockquote><h3>References:</h3><p>[1]: Xu, Kaidi, et al. Adversarial t-shirt! evading person detectors in a physical world (2019), <em>arXiv preprint. </em>arXiv-1910.11099</p><blockquote>PDF: <a href="https://arxiv.org/pdf/1910.11099.pdf">https://arxiv.org/pdf/1910.11099.pdf</a></blockquote><p>[2]: Thys, Simen, Wiebe Van Ranst, and Toon Goedemé, Fooling automated surveillance cameras: adversarial patches to attack person detection (2019), <em>Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops</em>.</p><blockquote>PDF: <a href="https://arxiv.org/pdf/1904.08653.pdf">https://arxiv.org/pdf/1904.08653.pdf</a></blockquote><p>[3]: Athalye, Anish, and Ilya Sutskever, Synthesizing robust adversarial examples (2017), <em>arXiv preprint arXiv:1707.07397.</em></p><blockquote>PDF: <a href="https://arxiv.org/pdf/1707.07397.pdf">https://arxiv.org/pdf/1707.07397.pdf</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb620df2f7e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/avoiding-detection-with-adversarial-t-shirts-bb620df2f7e6">Avoiding Detection with Adversarial T-shirts</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Natural Language to SQL:  Use it on your own database]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/natural-language-to-sql-use-it-on-your-own-database-d4cd5784d081?source=rss-21c4fe422a47------2"><img src="https://cdn-images-1.medium.com/max/2600/1*NyT2xZPFl98ymTOZjLQE9A.jpeg" width="4032"></a></p><p class="medium-feed-snippet">Converting natural language questions into SQL-like queries using EditSQL for a custom database schema</p><p class="medium-feed-link"><a href="https://medium.com/data-science/natural-language-to-sql-use-it-on-your-own-database-d4cd5784d081?source=rss-21c4fe422a47------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/natural-language-to-sql-use-it-on-your-own-database-d4cd5784d081?source=rss-21c4fe422a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4cd5784d081</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[text-to-sql]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Param Raval]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 15:02:24 GMT</pubDate>
            <atom:updated>2020-07-17T14:26:09.266Z</atom:updated>
        </item>
    </channel>
</rss>