<?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 Pankaj Kishore on Medium]]></title>
        <description><![CDATA[Stories by Pankaj Kishore on Medium]]></description>
        <link>https://medium.com/@pankajkishore09?source=rss-e9869bbfeeb3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TL8Opv7SHURCX8lRXQfgMA.jpeg</url>
            <title>Stories by Pankaj Kishore on Medium</title>
            <link>https://medium.com/@pankajkishore09?source=rss-e9869bbfeeb3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:05:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pankajkishore09/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[IT Support Ticket Classification and Deployment using Machine Learning and AWS Lambda]]></title>
            <link>https://medium.com/data-science/it-support-ticket-classification-and-deployment-using-machine-learning-and-aws-lambda-8ef8b82643b6?source=rss-e9869bbfeeb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ef8b82643b6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[lstm]]></category>
            <category><![CDATA[rnn]]></category>
            <dc:creator><![CDATA[Pankaj Kishore]]></dc:creator>
            <pubDate>Fri, 15 Mar 2019 22:20:49 GMT</pubDate>
            <atom:updated>2019-03-17T16:39:32.672Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>IT Support Ticket Classification and Deployment</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Smt1TdF4vm9Pzaym" /><figcaption>IT Ticket Classification</figcaption></figure><p><strong>Project Description and initial assumptions:</strong></p><p>As a part of our final project for Cognitive computing, we decided to address a real life business challenge for which we chose IT Service Management. Of all the business cases, we were interested with four user cases that might befitting for our project.</p><p>1. In Helpdesk, almost 30–40% of incident tickets are not routed to the right team and the tickets keep roaming around and around and by the time it reaches the right team, the issue might have widespread and reached the top management inviting a lot of trouble.</p><p>2. Let’s say that users are having some trouble with printers. User calls help desk, he creates a ticket with IT Support, and they realize that they need to update a configuration in user’s system and then they resolve the ticket. What if 10 other users report the same issue. We can use this data and analyze the underlying issue by using unstructured data. Also, we can analyze the trend and minimize those incident tickets.</p><p>3. Virtual bot that can respond and handle user tickets.</p><p>Of the three use cases, we decided to go with the first use case for now owing to our time and resource limitation.</p><p><strong>Tools and technologies used:</strong></p><p>● ServiceNow Instance( an IT Service management</p><p>platform)</p><p>● AWS Lambda function</p><p>● EC2 Instance</p><p>● Python</p><p>● Neural Network models</p><p>● 50000+ sample tickets from open sources</p><h4>Process Overview:</h4><p>The overall workflow of the process can be divided into various sub parts. A very high-level overview is shown in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*CFhq_zzLxzyWAwal1pwlrA.png" /></figure><p><strong>Dataset:</strong></p><p>We pulled the dataset directly from servicenow and tried to classify them using ML techniques to make a labelled dataset. We just kept the description and categories from the ticket and went ahead with analytics on it to come up with top 5 categories for incidents.</p><p>The labels were added once we have classified the top 5 incident categories using Topic Modelling</p><p><strong>Use Case Overview:</strong></p><p>Most of the critical issues are handled and being tracked in the form of tickets in a typical IT environment. IT infrastructure are group of components connected together in a network. So, when a component goes down, it takes many other components along with it. It may even take days to figure out what went wrong and find the root cause. So, it is essential to notify the component owners</p><p>Immediately so that proper measures can be taken to prevent this from happening.</p><p>These issues are usually reported by users to helpline or Service Desk who are the first line of support. Unfortunately, it is difficult for anyone to be aware of all the components and hence tickets are being routed to the wrong team. For it to reach the original team it might even take days or weeks.Hence, we thought we could use NLP to solve this issue.</p><p>IT Service Management, on an average generates more than 40 GB of data. That gives us enough data to train and implement our model.</p><p>Our model when properly implemented could save billions of dollars to business units, as they lose many Service level agreements because of this.</p><p><strong>Cloud-computing based ITSM:</strong></p><p>This business case was almost impossible to handle before the arrival of cloud computing. Cloud computing made this integration between machine learning algorithms and IT Service Management possible at the first place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*0dFcuAIkTNuIEhcU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/0*lyLVe-S77_ZDfmb5" /></figure><p>For our business case, we used a cloud-based IT Service Management application named Servicenow and we accessed the Machine learning model wrapped inside the AWS lambda function using API gateway.</p><p><strong>Integration between ServiceNow and AWS:</strong></p><p>Web services make it possible for applications to connect to other software applications over a network allowing an exchange of information between the provider (server) and client (consumer).</p><p>A web service consumer (client) requests information from a web service provider (server). A web service provider processes the request and returns a status code and a response body. When the response body is returned, the web service consumer extracts information from the response body and acts on the extracted data.</p><p>ServiceNow can consume web services from third party providers or from another ServiceNow instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*5pLWm7FrZAgxp6wN" /></figure><p>In our case, we used the endpoint url trigerred by the API Gateway using Rest web services and accessed it using javascript that runs on creation of ticket.</p><p>On creation of a ticket, the javascript is triggered which sends the incident description to our model placed in AWS which performs the machine learning operations and returns back the predicted categories and probablity.</p><h3><strong>Topic Modelling for Categorization</strong></h3><p>· We pick the number of topics ahead of time even if we’re not sure what the topics are.</p><p>· Each document is represented as a distribution over topics.</p><p>· Each topic is represented as a distribution over words.</p><p>We used <a href="http://www.nltk.org/howto/wordnet.html">NLTK’s Wordnet</a> to find the meanings of words, synonyms, antonyms, and more. In addition, we use <a href="http://www.nltk.org/_modules/nltk/stem/wordnet.html">WordNetLemmatizer</a> to get the root word.</p><p>We then read our dataset line by line and prepare each line for LDA and store in a list.</p><h3><strong>LDA with Gensim</strong></h3><p>First, we are creating a dictionary from the data, then convert to <a href="https://en.wikipedia.org/wiki/Bag-of-words_model">bag-of-words</a> corpus and save the dictionary and corpus for future use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*zNN25XQH0UWcqF5_" /></figure><p><strong>We then tried finding out 5 topics using LDA :-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*4hzPSSMsoC7_s7BO" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*C2LQVVyATj1iWgG-" /></figure><h3><strong>pyLDAvis</strong></h3><p><a href="https://pypi.python.org/pypi/pyLDAvis/2.1.1">pyLDAvis</a> is designed to help users interpret the topics in a topic model that has been fit to a corpus of text data. The package extracts information from a fitted LDA topic model to inform an interactive web-based visualization.</p><h3><strong>Visualizing 5 topics:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*uo0mrjpVhoKfVwwF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*qGMX0w2gN9F77a0m" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*WtruZcvr2OeNGAXy" /></figure><p>From Topic Modelling we came to conclusion that the whole dataset can be divided into 5 categories: -</p><p>· <strong>Network</strong></p><p><strong>· User Maintenance</strong></p><p><strong>· Database</strong></p><p><strong>· Application Workbench</strong></p><p><strong>· Security</strong></p><p>We then labelled our dataset accordingly and prepared a dataset to perform supervised learning on it.</p><h3><strong>RNN for Classification:-</strong></h3><p><strong>An end-to-end text classification pipeline is composed of following components:</strong></p><p>1. Training text: It is the input text through which our supervised learning model is able to learn and predict the required class.</p><p>2. Feature Vector: A feature vector is a vector that contains information describing the characteristics of the input data.</p><p>3. Labels: These are the predefined categories/classes that our model will predict</p><p>4. ML Algo: It is the algorithm through which our model is able to deal with text classification (In our case : CNN, RNN, HAN)</p><p>5. Predictive Model: A model which is trained on the historical dataset which can perform label predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*CC8WCEdH7OWv3A-o" /></figure><h3>Incident Classification Using Recurrent Neural Network (RNN) :</h3><p>A <a href="https://en.wikipedia.org/wiki/Recurrent_neural_network">recurrent neural network (RNN)</a> is a class of artificial neural network where connections between nodes form a directed graph along a sequence. This allows it to exhibit dynamic temporal behavior for a time sequence.</p><p>Using the knowledge from an external embedding can enhance the precision of your RNN because it integrates new information (lexical and semantic) about the words, an information that has been trained and distilled on a very large corpus of data.The pre-trained embedding we used is <a href="https://nlp.stanford.edu/projects/glove/">GloVe</a>.</p><p>RNN is a sequence of neural network blocks that are linked to each others like a chain. Each one is passing a message to a successor.</p><p>a chunk of neural network, AA, looks at some input xtxt and outputs a value htht. A loop allows information to be passed from one step of the network to the next.</p><p>These loops make recurrent neural networks seem kind of mysterious. However, if you think a bit more, it turns out that they aren’t all that different than a normal neural network. A recurrent neural network can be thought of as multiple copies of the same network, each passing a message to a successor. Consider what happens if we unroll the loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*gh2H1GQgX0cP8UjO" /></figure><h3>LSTM Networks</h3><p>Long Short Term Memory networks — usually just called “LSTMs” — are a special kind of RNN, capable of learning long-term dependencies. They were introduced by <a href="http://www.bioinf.jku.at/publications/older/2604.pdf">Hochreiter &amp; Schmidhuber (1997)</a>, and were refined and popularized by many people in following work.<a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/#fn1">1</a> They work tremendously well on a large variety of problems, and are now widely used.</p><p>LSTMs are explicitly designed to avoid the long-term dependency problem. Remembering information for long periods of time is practically their default behavior, not something they struggle to learn!</p><p>All recurrent neural networks have the form of a chain of repeating modules of neural network. In standard RNNs, this repeating module will have a very simple structure, such as a single tanh layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*sXr36I_urscVXpeF" /></figure><p>The repeating module in a standard RNN contains a single layer.</p><p>LSTMs also have this chain like structure, but the repeating module has a different structure. Instead of having a single neural network layer, there are four, interacting in a very special way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*WTdjVfDawwN8klE2" /></figure><p>The repeating module in an LSTM contains four interacting layers.</p><p>Don’t worry about the details of what’s going on. We’ll walk through the LSTM diagram step by step later. For now, let’s just try to get comfortable with the notation we’ll be using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*2rVdioi0Dqx6k0Ng" /></figure><p>In the above diagram, each line carries an entire vector, from the output of one node to the inputs of others. The pink circles represent pointwise operations, like vector addition, while the yellow boxes are learned neural network layers. Lines merging denote concatenation, while a line forking denote its content being copied and the copies going to different locations.</p><h3>The Core Idea Behind LSTMs</h3><p>The key to LSTMs is the cell state, the horizontal line running through the top of the diagram.</p><p>The cell state is kind of like a conveyor belt. It runs straight down the entire chain, with only some minor linear interactions. It’s very easy for information to just flow along it unchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*5vRetcxB-hO-o0QV" /></figure><p>The LSTM does have the ability to remove or add information to the cell state, carefully regulated by structures called gates.</p><p>Gates are a way to optionally let information through. They are composed out of a sigmoid neural net layer and a pointwise multiplication operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/0*xPY_MUDD8q4qBwR0" /></figure><p>The sigmoid layer outputs numbers between zero and one, describing how much of each component should be let through. A value of zero means “let nothing through,” while a value of one means “let everything through!”</p><p>An LSTM has three of these gates, to protect and control the cell state.</p><h3>Step-by-Step LSTM Walk Through</h3><p>The first step in our LSTM is to decide what information we’re going to throw away from the cell state. This decision is made by a sigmoid layer called the “forget gate layer.” It looks at ht−1ht−1and xtxt, and outputs a number between 00 and 11 for each number in the cell state Ct−1Ct−1. A 11represents “completely keep this” while a 00 represents “completely get rid of this.”</p><p>Let’s go back to our example of a language model trying to predict the next word based on all the previous ones. In such a problem, the cell state might include the gender of the present subject, so that the correct pronouns can be used. When we see a new subject, we want to forget the gender of the old subject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*gVC8LLRxK5Rqicix" /></figure><p>The next step is to decide what new information we’re going to store in the cell state. This has two parts. First, a sigmoid layer called the “input gate layer” decides which values we’ll update. Next, a tanh layer creates a vector of new candidate values, C̃ tC~t, that could be added to the state. In the next step, we’ll combine these two to create an update to the state.</p><p>In the example of our language model, we’d want to add the gender of the new subject to the cell state, to replace the old one we’re forgetting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*u08BvGqvkrVVLDna" /></figure><p>It’s now time to update the old cell state, Ct−1Ct−1, into the new cell state CtCt. The previous steps already decided what to do, we just need to actually do it.</p><p>We multiply the old state by ftft, forgetting the things we decided to forget earlier. Then we add it∗C̃ tit∗C~t. This is the new candidate values, scaled by how much we decided to update each state value.</p><p>In the case of the language model, this is where we’d actually drop the information about the old subject’s gender and add the new information, as we decided in the previous steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*r6SjPZZDo6w_oz2M" /></figure><p>Finally, we need to decide what we’re going to output. This output will be based on our cell state, but will be a filtered version. First, we run a sigmoid layer which decides what parts of the cell state we’re going to output. Then, we put the cell state through tanhtanh (to push the values to be between −1−1 and 11) and multiply it by the output of the sigmoid gate, so that we only output the parts we decided to.</p><p>For the language model example, since it just saw a subject, it might want to output information relevant to a verb, in case that’s what is coming next. For example, it might output whether the subject is singular or plural, so that we know what form a verb should be conjugated into if that’s what follows next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*u9GKdha2O9hQ6utA" /></figure><h3>Variants on Long Short Term Memory</h3><p>What I’ve described so far is a pretty normal LSTM. But not all LSTMs are the same as the above. In fact, it seems like almost every paper involving LSTMs uses a slightly different version. The differences are minor, but it’s worth mentioning some of them.</p><p>One popular LSTM variant, introduced by Gers &amp; Schmidhuber (2000), is adding “peephole connections.” This means that we let the gate layers look at the cell state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*-GArC5chQx87R9-y" /></figure><p>The above diagram adds peepholes to all the gates, but many papers will give some peepholes and not others.</p><p>Another variation is to use coupled forget and input gates. Instead of separately deciding what to forget and what we should add new information to, we make those decisions together. We only forget when we’re going to input something in its place. We only input new values to the state when we forget something older.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*QXN83SnXhE1AGfPQ" /></figure><p>A slightly more dramatic variation on the LSTM is the Gated Recurrent Unit, or GRU, introduced by <a href="http://arxiv.org/pdf/1406.1078v3.pdf">Cho, et al. (2014)</a>. It combines the forget and input gates into a single “update gate.” It also merges the cell state and hidden state, and makes some other changes. The resulting model is simpler than standard LSTM models, and has been growing increasingly popular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*cnS8G3-fREL7gw0t" /></figure><h3><strong>Our Architecture</strong></h3><h4><strong>General Model</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*5ljBH8AhAIlJLlFd" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*8QpudeVTcg4Vkasp" /></figure><h4><strong>LSTM Model</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*7gZtKOedpyVhZGyf" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*qmboeM5FFhDtoz2_" /></figure><p>To use Keras on text data, we first have to preprocess it. For this, we can use Keras’ Tokenizer class. This object takes as argument num_words which is the maximum number of words kept after tokenization based on their word frequency.</p><p>Once the tokenizer is fitted on the data, we can use it to convert text strings to sequences of numbers. These numbers represent the position of each word in the dictionary (think of it as mapping).</p><p>· In this project, we tried to tackle the problem by using recurrent neural network and attention based LSTM encoder.</p><p>· By using LSTM encoder, we intent to encode all the information of text in the last output of Recurrent Neural Network before running feed forward network for classification.</p><p>· This is very similar to neural translation machine and sequence to sequence learning.</p><p>· We used LSTM layer in Keras to address the issue of long term dependencies.</p><h3><strong>Model scoring and selection</strong></h3><p>Our model scoring and selection is based on the standard evaluation metrics Accuracy, Precision, and F1 score, which are defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*cLWRMvOT4DlweDu4" /></figure><p>where:</p><p>· TP represents the number of true positive classifications. That is, the records with the actual label A that have been correctly classified, or „predicted”, as label A.</p><p>· TN is the number of true negative classifications. That is, the records with an actual label not equal to A that have been correctly classified as not belonging to label A.</p><p>· FP is the number of false positive classifications, i.e., records with an actual label other than A that have been incorrectly classified as belonging to category A.</p><p>· FN is the number of false negatives, i.e., records with a label equal to A that have been incorrectly classified as not belonging to category A.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*gzcNheDrLxH6Q54t" /></figure><p><strong>Figure 3. “Confusion matrix” of predicted vs. actual categorizations</strong></p><p>The combination of predicted and actual classifications is known as „confusion matrix”, illustrated in Figure 3. Against the background of these definitions, the various evaluation metrics provide the following insights:</p><p>· Accuracy: The proportion of the total number of model predictions that were correct.</p><p>· Precision (also called positive predictive value): The proportion of correct predictions relative to all predictions for that specific class.</p><p>· Recall (also called true positive rate, TPR, hit rate or sensitivity): The proportion of true positives relative to all the actual positives.</p><p>· False positive rate (also called false alarm rate): The proportion of false positives relative to all the actual negatives (FPR).</p><p>· F1: (The more robust) Harmonic mean of Precision and Recall.</p><h3><strong>Outputs:-</strong></h3><h4><strong>General RNN Model:-</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*3o6vMabqbx8MImvZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*yRZkt8Sohlphaapp" /></figure><h4><strong>RNN with LSTM Layer</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*xbGo8pK3xgzeIrs-" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*vyAmYBr3L4ax3q3V" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*4wFn2cVTTG02jJ0G" /></figure><h3><strong>Observations:-</strong></h3><p>The general RNN model without LSTM provided us the accuracy of 66% whereas we were able to increase it to 69% using LSTM network layer in RNN</p><p>The low volume of data resulted in accuracy being almost stagnant after 70% and it didn’t matter whether we increased the epochs as was evident in the plot.</p><p>Yet 69% was fair enough classification as we intend to train it online and continuously improve the accuracy as volume of data grows to higher degree.</p><h3><strong>Model Deployment</strong></h3><p>For the scope of this project, we planning to deploy the model on Amazon AWS and integrate it with Service Now so that the model do the online or real-time predictions. To perform this we will first export the model by dumping it into an pickle file. Also, we will write a function which will connect to the S3 bucket and fetch and read the pickle file from there and recreate the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/0*Q1tpcIeQWH36j3SQ" /></figure><p>So the workflow looks like this:</p><ol><li>Create the incident in Service Now</li><li>The incident is received in AWS and our AWS EC2 instance or service is running</li><li>Fetch the function.py file from S3 bucket which will read the model from Pickle file and recreate the model</li><li>It will extract the feature from the service request i.e. description of the incident</li><li>Now, the code will be executed in AWS Lambda and it will provide us the category to which incident belongs</li><li>Create an EC2 Instance on AWS: -</li><li>First, Create an AWS account which will give you free usage for 1-year on some limited services, but is enough for this project</li><li>Create an EC2 instance and select the free tier machine or if you have credits in your account and need a more powerful machine you can select from other options</li><li>Configure a virtual runtime environment for Python on AWS and once you are done then zip all the configurations files into a single file and also include the function.py file in the zip file as we will upload this file in AWS S3 bucket</li><li>Create an S3 bucket and upload your pickle file which contains model’s details like model name, hyperparameters, and weights of the model and also uploads the zip file which contains the function.py file along with configuration settings for python virtual environment</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mh0Y2xTFL80Q5Ca3" /></figure><ol><li>Now, lastly setup AWS Lambda this is where we will run the python script and do the predictions</li></ol><p>AWS Lambda is a compute service that let you run the code without any need of provisioning or managing the servers. It takes care of that part itself. The best part about AWS Lambda is that you pay only for the compute time you consume — there is no charge when your code is not running. With AWS Lambda, you can run code for virtually any type of application or backend service — all with zero administration. AWS Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. All you need to do is supply your code in one of the languages that AWS Lambda supports.</p><p>Though we were not able to configure the AWS lambda as none of us was familiar with it and have to go through the documentation and fell short of time. We are planning to extend the project for our other course and complete it. We will update the blog once we achieve our goal.</p><h3>Integration between ServiceNow and AWS:</h3><p>Web services make it possible for applications to connect to other software applications over a network allowing an exchange of information between the provider (server) and client (consumer).</p><p>A web service consumer (client) requests information from a web service provider (server). A web service provider processes the request and returns a status code and a response body. When the response body is returned, the web service consumer extracts information from the response body and acts on the extracted data.</p><p>ServiceNow can consume web services from third party providers or from another ServiceNow instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*kuC6v7R5xJjRVf7V" /></figure><p>In our case, we used the endpoint url triggered by the API Gateway using Rest web services and accessed it using javascript that runs on creation of ticket.</p><p>On creation of a ticket, the javascript is triggered which sends the incident description to our model placed in AWS which performs the machine learning operations and returns back the predicted categories and probability.</p><h3>Future Scope:</h3><p>This project is not yet completed as we were short of time. We are working on this project and we plan to take this project ahead so that we can deploy our code on AWS and integrate it with Service Now. We will update the blog as soon as we make any progress. :)</p><p><strong>Github link:-</strong></p><p><a href="https://github.com/pankajkishore/Cognitive-Project">https://github.com/pankajkishore/Cognitive-Project</a></p><p><strong>Resources:-</strong></p><p><a href="https://medium.com/jatana/report-on-text-classification-using-cnn-rnn-han-f0e887214d5f">https://medium.com/jatana/report-on-text-classification-using-cnn-rnn-han-f0e887214d5f</a></p><p><a href="https://medium.com/datadriveninvestor/automation-all-the-way-machine-learning-for-it-service-management-9de99882a33">https://medium.com/datadriveninvestor/automation-all-the-way-machine-learning-for-it-service-management-9de99882a33</a></p><p><a href="https://github.com/karolzak/support-tickets-classification">karolzak/support-tickets-classification</a></p><p>By: <a href="https://www.linkedin.com/in/pankajkishore89/">Pankaj Kishore</a>, <a href="https://www.linkedin.com/in/anujasrivastava/">Anuja Srivastava</a>, <a href="https://www.linkedin.com/in/jitender-phogat/">Jitender Phogat</a> and <a href="https://www.linkedin.com/in/karthik-kumar-longhorn/">Karthik Kandakumar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ef8b82643b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/it-support-ticket-classification-and-deployment-using-machine-learning-and-aws-lambda-8ef8b82643b6">IT Support Ticket Classification and Deployment using Machine Learning and AWS Lambda</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[Art of Generative Adversarial Networks (GAN)]]></title>
            <link>https://medium.com/data-science/art-of-generative-adversarial-networks-gan-62e96a21bc35?source=rss-e9869bbfeeb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/62e96a21bc35</guid>
            <category><![CDATA[generative-adversarial]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-neural-network]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Pankaj Kishore]]></dc:creator>
            <pubDate>Sun, 16 Dec 2018 20:16:47 GMT</pubDate>
            <atom:updated>2019-03-17T16:40:06.154Z</atom:updated>
            <content:encoded><![CDATA[<h3>Generative Adversarial Networks (GAN)- An AI — &#39;Cat and Mouse Game&#39;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0sy8_NFeJXzqgqFs.png" /><figcaption><strong>Art of Generative Adversarial Networks</strong></figcaption></figure><p>Code link for all the work mention in the post:-</p><p><a href="https://github.com/pankajkishore/Code">pankajkishore/Code</a></p><p>We had this pleasure of working on Generative adversarial network project for our final project for Business Data Science in our curriculum. Though we could have chosen any other subject as our final project yet we went ahead with the challenge of training a GAN to generate X-ray images learning from a dataset consisting of 880 X-ray images of size 28*28. This project was accomplished by Pankaj Kishore, Jitender and Karthik. Our initial idea was to explore GAN and in the process write our own code using Tensorflow to train a GAN to generate X-ray Images. I will briefly walkthrough the journey of our project.</p><h3><strong>Data Collection</strong></h3><p>The first step was to collect enough number of training dataset for Discriminator to train our neural net. We extracted our data from below mentioned website:-</p><p><a href="https://nihcc.app.box.com/v/ChestXray-NIHCC/folder/37178474737">Box</a></p><p>Once we had sufficient amount of data we tried exploring with GAN and went through implementing GAN for already existing dataset to learn and then apply the same implementation technique on our dataset.</p><h3><strong>Initial Learning</strong></h3><h4>1. MNIST dataset</h4><p>We first explored through MNIST dataset and found enough online resource to train our first GAN model on MNIST dataset which is considered to be easiest to train and it turned out that it was indeed really easy to train yet a great learning experience as we explored the code and understood the basic underlying principles behind GAN. We tried numerous variations of GAN on MNIST dataset. The numerous variations we tried are listed below:-</p><blockquote>Vanilla GAN</blockquote><blockquote>Conditional GAN</blockquote><blockquote>Wasserstien GAN</blockquote><blockquote>DCGAN</blockquote><blockquote>VAE</blockquote><p>The results we achieved were of really good quality and we just had to tweak the code a bit to achieve that result. We interestingly found that adding more hidden layers for generator had no effect on image quality. We also tried Variational Autoencoder ( VAE) by referencing code of Ashish Bora from below link and got good enough results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*gyXAICL4EBhivCSi8ZNsIQ.png" /><figcaption>DCGAN</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*TXxdTy1cWZWZLgpnPCwXLQ.png" /><figcaption>VAE generated Image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*3T_K1JP5ZOv3uFrdWX637g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*-Eq4PF0dlp2-ynHVgDYteA.gif" /><figcaption><strong>MNIST at different Epochs through VAE</strong></figcaption></figure><p><a href="https://github.com/AshishBora/csgm">AshishBora/csgm</a></p><p><strong>2. Fashion MNIST</strong></p><p>We tried the same variation of MNIST on fashion MNIST dataset and were successfully able to generate images for different classifier item. This led our interest to going for the bigger devil and that was to write our own code for X-ray images and see if we can reciprocate the same for our images. We started by learning about GAN in-depth and woyld love to share few key concepts learnt throughout the journey. The architecture which worked well for us is below:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*W53LHWNJNDdwUgge3LwI5Q.png" /></figure><p>Images generated for Fashion MNIST code:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*ndLwHxvQ14WgKNCCObCUog.png" /><figcaption>99000 epochs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*1KfKnHeZ0-aimF83JeLdnQ.png" /><figcaption>60000 epochs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*XNmnBAwvZ9DnM1O4yQdDZQ.png" /><figcaption>40000 epochs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*aFlRgdE2TQ6qMayze-v6pg.gif" /><figcaption><strong>Fashion MNIST GIF at different epochs</strong></figcaption></figure><h3><strong>Generative Adversarial Networks an Overview</strong></h3><p>Unless you have been living under a hut for the last year or so, everyone in Deep Learning — and even some not involved in Deep Learning — have heard and talked about GANs. GANs or Generative Adversarial Networks are Deep Neural Networks that are generative models of data. What this means is, given a set of training data, GANs can learn to estimate the underlying probability distribution of the data. This is very useful, because apart from other things, we can now generate samples from the learnt probability distribution that may not be present in the original training set.</p><p>Generative Adversarial Networks are actually two deep networks in competition with each other. Given a training set <strong><em>X</em></strong> (say a few thousand images of cats), The Generator Network, <strong><em>G(x)</em></strong>, takes as input a random vector and tries to produce images similar to those in the training set. A Discriminator network, <strong><em>D(x)</em></strong>, is a binary classifier that tries to distinguish between the real cat images according the training set <strong><em>X</em></strong> and the fake cat images generated by the Generator. As such, the job of the Generator network is to learn the distribution of the data in <strong><em>X</em></strong>, so that it can produce real looking cat images and make sure the Discriminator cannot distinguish between cat images from the training set and cat images from the Generator. The Discriminator needs to learn keep up with the Generator trying new tricks all the time to generate fake cat images and fool the Discriminator.</p><p>Ultimately, if everything goes well, the Generator (more or less) learns the true distribution of the training data and becomes really good at generating real-looking cat images. The Discriminator can no longer distinguish between training set cat images and generated cat images.</p><p>In this sense, the two networks are continuously trying to make sure the other does not do a good job at their task. So then, how can this work at all?</p><p>Another way to look at the GAN setup is that the Discriminator is trying to guide the Generator by telling it what real cat images look like. And eventually, the Generator figures it out and starts generating real-looking cat images. The method of training GANs is similar to the Minimax algorithm from Game Theory and the two networks try to achieve what is called the Nash Equilibrium with respect to each other.</p><p>What’s going on between the generator and the discriminator here is a <a href="https://en.wikipedia.org/wiki/Zero-sum_game"><em>2 player zero sum game</em></a><em>. </em>In other words, in every move, the generator is trying to maximize the chance of the discriminator misclassifying the image and the discriminator is in turn trying to maximize its chances of correctly classifying the incoming image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxnqsjXYP-lx-3afYsuxXQ.png" /><figcaption>A simple flowchart of a GAN</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rf3U2WusFS2zu2ANOahWGQ.png" /><figcaption>Discriminator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SS8exw-Ub_SbMfdp9s-G4w.png" /><figcaption>Generator</figcaption></figure><p>Once we learnt the lessons we moved towards actual getting our hands dirty and writing our own implementation of concepts learnt.</p><h4>Mathematics Behind The Network</h4><p>Deep learning or Machine learning is all about <a href="https://en.wikipedia.org/wiki/Mathematical_optimization">optimizing the function </a>or specifically minimizing the loss of algorithm. We use gradient descent to do that.</p><p>Let X be our true dataset and Z be the normal distributed noise. Let <em>p(z) </em>be data from latent space Z. <em>G </em>and <em>D </em>are differentiable functions of generative network and discriminative network respectively. <em>D(x) </em>represents probability that data come from real dataset X. We train D to maximize the probability <em>log(D(x)) </em>and train G to minimize <em>log(1 — D(G(z)). </em>In short they play min max game as explained above with each other and obtain global optimality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*XiAXk60ur-NeZm2c49s7nA.png" /><figcaption>GAN ( Loss function )</figcaption></figure><p>Above function serves loss function for our generative adversarial network. Now, it is important to note that <em>log(1 — D(G(z))</em> saturates so we don’t minimize it rather we maximize <em>log(D(G(z))).</em></p><p>In order to prove that sample generated by generator network is exactly the same as X we need to go to deeper in mathematics and use<a href="https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence"> Kullback-Leibler divergence</a> theorem and <a href="https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence">Jensen-Shannon divergence</a>.</p><p>Source used:-</p><p><a href="https://medium.com/@rajatgupta310198/generative-adversarial-networks-a-simple-introduction-4fd576ab14a">Generative Adversarial Networks — A simple introduction.</a></p><h3><strong>Generating X-Ray Images:-</strong></h3><p><strong>Problem Statement:-</strong></p><p>High quality delineation of important features is a critical component in biomedical image interpretation for accurate diagnosis and/or assessment of a disease. Convolutional Neural Networks (CNNs) based Deep Learning (DL) techniques have been proven highly successful in image classification and segmentation tasks by utilizing large number of training images, potentially promising higher throughput and more consistent results in biomedical image interpretation. Computerized tools enhanced by DL are rapidly proving to be a state-of-the-art solution toward improved accuracy in biomedical image interpretation. Furthermore, researchers have reported successful training of Generative Adversarial Network (GAN) models to generate synthetic training images as potential solutions to solve the scarcity of training sets.</p><p>The following diagram shows the basic concept of GAN network. In the picture, the generator tries to produce synthetic images to fool the discriminator where as the discriminator tries to tell synthetic images from real images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*sgAHc3nx9ewAoe7UUcIIug.png" /><figcaption>General GAN architecture</figcaption></figure><h3>Current Challenges</h3><p>Training a CNN for Deep Learning typically requires a large amount of labeled training image data, which remains a challenge in the biomedical domain because of the expense of expert annotation. Although researchers have reported successful training of Generative Adversarial Network (GAN) models to generate synthetic images as a potential solution to solve the training set bottleneck, training CNNs and GANs in a timely manner could require demanding programming experience and skill sets from domain experts. Our aim is to provide end users a streamlined workflow to facilitate rapid utilization of GAN networks to produce synthetic radiology images for DL training</p><h3><strong>Solution Proposed</strong></h3><p>We tried implementing our GAN to generate the X-ray images and we started with creating simple functions for Generator and Discriminator. We initially went with three layers for both discriminator and generator. The activation function used was leaky relu for generator and relu for discriminator. The random noise was feeded to real image as well using glorot_init function. We normalize the input layer by adjusting and scaling the activations using batch normalization.</p><p>The loss functions were as below for both discriminator and generator</p><p># Loss functions</p><blockquote>disc_loss = tf.reduce_mean( tf.nn.sigmoid_cross_entropy_with_logits( logits=r_logits, labels=tf.ones_like(r_logits)) + tf.nn.sigmoid_cross_entropy_with_logits( logits=f_logits, labels=tf.zeros_like(f_logits)))</blockquote><blockquote>gen_loss = tf.reduce_mean( tf.nn.sigmoid_cross_entropy_with_logits( logits=f_logits, labels=tf.ones_like(f_logits)))</blockquote><p>The strides and learning step use for both Discriminator and Generator were as follows:-</p><p>gen_step = tf.train.RMSPropOptimizer(learning_rate=0.001).minimize(gen_loss, var_list=gen_vars) # G train step</p><p>disc_step = tf.train.RMSPropOptimizer(learning_rate=0.001).minimize(disc_loss, var_list=disc_vars) # G train step</p><p>A simple function was written to generate random noise( Fake Images) as well which was fed to discriminator along with real images. The epoch used was 1000 and number of samples on which we trained our neural net was 851 first time and 5000 samples( Downsampled dataset) next time.The output images we got were really noise and we realized the mistakes why we were not getting the correct output. The screenshot of image from our code:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/68/1*1E9pGLS_xbWRu7_0-8F9JQ.png" /><figcaption>Input Images to Discriminator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*yxXeEqST1XlSsxMJPI1fWw.png" /><figcaption>Output Image generated</figcaption></figure><p>The potential reasons which led to generator virtually learning nothing was a lot of factor just to state a few:-</p><blockquote><strong>The low resolution quality image input to discriminator</strong></blockquote><blockquote><strong>Downsampling the actual 1240*1240 images to 28*28</strong></blockquote><blockquote><strong>Not sufficient dataset for neural net to learn</strong></blockquote><blockquote><strong>Gradient Descent vanishing problem as discriminator gets too successful that the generator gradient vanishes and learns nothing</strong></blockquote><blockquote><strong>Mode Collapse: The generator collapses which produces limited number of samples</strong></blockquote><p>The more we tried the output was getting only better at producing more whitespaces from above samples. Even after numerous tries we were not able to generate good quality images from GAN because of limitations with the dataset we had.</p><h3><strong>Pokemon Generation</strong></h3><p>After failed attempts to create X-ray images from NIH website we thought of trying our code for generating pokemon just to ensure that probably it’s a dataset issue. Unfortunately we got good but not such great results. Below is the generated pokemon from our X-ray code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*9cDG5tpE3DFxwuJHbw7A0g.png" /><figcaption><strong>Pokemon’s from X-ray code</strong></figcaption></figure><p>Better than X-ray images for sure. We then instead tried to run the code created by a popular machine learning Youtuber Siraj Raval (which he borrowed from moxiegushi).</p><p><a href="https://github.com/llSourcell/Pokemon_GAN">llSourcell/Pokemon_GAN</a></p><p>The code has to be modified a bit though to suit the more advanced dataset of 851 pokemon’s collected from Kaggle website. The code was modified to process higher resolution Pokemon as well to train the discriminator. The results were stupendous even though it took lot of time to run. The architecture for the code was as below:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*BtPMj8CKF6Ad3kdNgqkazw.png" /><figcaption>Architecture for Pokemon</figcaption></figure><h3>About Discriminator</h3><p>In DCGAN architecture, the discriminator D is Convolutional Neural Networks (CNN) that applies a lot of filters to extract various features from an image. The discriminator network will be trained to discriminate between the original and generated image. The process of convolution is shown in the illustration below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*tyXVMbqBxQJPoysz" /></figure><h3>About Generator</h3><p>The generator G, which is trained to generate image to fool the discriminator, is trained to generate image from a random input. In DCGAN architecture, the generator is represented by convolution networks that upsample the input. The goal is to process the small input and make an output that is bigger than the input. It works by expanding the input to have zero in-between and then do the convolution process over this expanded area. The convolution over this area will result in larger input for the next layer. The process of upsampling is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*09BnsdDaAFy-0sfd" /></figure><p>Depending on sources, you can find various annotations for the upsample process. Sometimes they are referred as full convnets, in-network upsampling, fractionally-strided convolution, deconvolution and it goes on and on.</p><h3>Overview of the network architecture for Generator</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*2T0padTyKMFnIjv7T-uqKg.png" /></figure><h3>Hyperparameter of DCGAN</h3><p>One thing that everyone notices is that the GANs are highly computationally expensive. The thing that people overlook generally is how fragile GANs are with respect to hyperparameters. GANs work exceptionally well with certain parameters but not with others. Currently tunning these knobs are part of the art in designing network architecture. The hyperparameteres that we have decided to go with are as follows:</p><h3><strong>Hyperparameter</strong></h3><p>Mini-batch size of 64</p><p>Weight initialize from normal distribution with std = 0.02L</p><p>Relu slope = 0.2</p><p>Adam Optimizer with learning rate = 0.0002</p><p>and momentum = 0.5</p><h3><strong>Results</strong></h3><p>Given the limited time and cost associated we didn’t train our model completely but the pokemon generated for 1300 epochs I am attaching below:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*mAzbafCE3ak-hz8LEMrTMQ.png" /><figcaption>Pokemon after 1300 epochs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50iJvJpyBwcWHqInkKYAQA.gif" /><figcaption><strong>Pokemon Generation for incremental Epochs</strong></figcaption></figure><h3><strong>Key Learnings from the project:-</strong></h3><p>It was a great experience working on this project even though it was really challenging yet it opened our horizons to all new possibilities of magic neural networks can deliver. We learnt a great dealt through our mistakes and realized the possible modifications we need to do to make GAN work for our X-ray image dataset. The key takeaways were:-</p><blockquote><strong>It’s really hard to train a GAN</strong></blockquote><blockquote><strong>We need to do batch normalization along with other factors to get better results.</strong></blockquote><blockquote><strong>Need to keep an eye on gradient descent and loss values to ensure none of the generator or discriminator reaches zero value</strong></blockquote><blockquote><strong>Relu activation functions are real friend.</strong></blockquote><blockquote><strong>Convolution network needs to be implemented they really work for most dataset if not all</strong></blockquote><blockquote><strong>We need GPU’s to train a GAN it’s impossible to train on CPU unless you can wait for years!!</strong></blockquote><h3><strong>Future Prospects:</strong></h3><p>There are a lot of things we can try first try to generate images of quality 64*64 instead of 256*256 which we tried generating currently and see if that improves the image quality. We would definitely keep working on the X-ray images and try to implement convolution neural network for it and see if we can generate better images. The collection of training data of maybe around 100,000 images might help train the CNN model’s better and might drastically improve the quality of generator images. Though it might get trickier and harder but if CNN works better than would love to implement the solution for higher resolution images or maybe colored images and see how GAN performs. We would even like to try X-Ray images for Variational Encoders and see if that helps.We would like to even try things we found online like:-</p><blockquote>Minibatch discrimination : Let the generator classify multiple images in a ‘minibatch’ instead of just one</blockquote><blockquote>Virtual batch normalization : Each example is normalized based on a reference batch of samples</blockquote><h3><strong>Conclusion:</strong></h3><p>This project has really provided the impetus for numerous implementations we can try with neural network. It has really garnered the attention of all and sundry and it’s hard to not be appreciative of endless possibilities GAN can lead to. We really learnt a lot in terms of using Tensorflow or cloud while working on this project. We realized how hard it is to actually train a GAN and even though things may work on one dataset it doesn’t necessarily mean it would work the same way on another given dataset. The concept of GANs is not that hard to understand (i.e., <a href="https://medium.com/@naokishibuya/understanding-generative-adversarial-networks-4dafc963f2ef">Understanding Generative Adversarial Networks</a>). But implementing them to produce quality images can be tricky. Considering the limitless opportunities with GAN I can state a few in future:-</p><p>GANS can be potentially be used in:</p><blockquote>Supervised learning:</blockquote><ul><li>predicting as accurately as possible subject to {some constraints} e.g. fairness</li><li>data augmentation in Imbalanced Classification</li><li>Outlier detection</li><li>vector-2-vector predictions e.g. multi-label prediction with arbitrary loss that does not assume Labels to be independent conditional on Features</li></ul><blockquote>Semi-supervised:</blockquote><ul><li>in real-life datasets, it happens quite often that only a small subset of data is labelled.</li></ul><blockquote>Unsupervised :</blockquote><ul><li>matrix completion</li><li>embeddings</li></ul><p>Thanks everyone for reading!! Hope you enjoyed our naive attempt at GAN and we really hope to continue working and update with some more awesome results for any dataset!!</p><p><strong>Other Links Used for reference for the post:</strong></p><p><a href="https://philparadis.wordpress.com/2017/04/24/training-gans-better-understanding-and-other-improved-techniques/">https://philparadis.wordpress.com/2017/04/24/training-gans-better-understanding-and-other-improved-techniques/</a></p><p><a href="https://arxiv.org/abs/1701.00160">NIPS 2016 GAN Tutorial</a></p><p><a href="https://arxiv.org/abs/1411.1784">Conditional GAN</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62e96a21bc35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/art-of-generative-adversarial-networks-gan-62e96a21bc35">Art of Generative Adversarial Networks (GAN)</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>
    </channel>
</rss>