<?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 Nishant Wadhwani on Medium]]></title>
        <description><![CDATA[Stories by Nishant Wadhwani on Medium]]></description>
        <link>https://medium.com/@nishantwadhwani94?source=rss-8c33f0f1a71a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6494FtwKCCCkSjni</url>
            <title>Stories by Nishant Wadhwani on Medium</title>
            <link>https://medium.com/@nishantwadhwani94?source=rss-8c33f0f1a71a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:07:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishantwadhwani94/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[Google’s Gemini: A Game-Changing Leap in AI Integration]]></title>
            <link>https://medium.com/@nishantwadhwani94/googles-gemini-a-game-changing-leap-in-ai-integration-405d13419435?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/405d13419435</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[deepmind]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 07:55:58 GMT</pubDate>
            <atom:updated>2023-12-07T07:55:58.815Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AsXti9JBcuEGIODbisEAYw.jpeg" /><figcaption>Google Gemini AI launched, company calls it smarter than humans in some language work</figcaption></figure><p>On Wednesday, Google achieved a significant milestone in the artificial intelligence race by introducing Gemini, its latest and most capable language model to date. Developed utilizing Google’s proprietary AI chips, Gemini exhibits the ability to process information from various sources, including video, text, images, and audio, showcasing proficiency in complex reasoning and nuanced understanding. Google proudly asserts that Gemini Ultra, the most advanced version, surpasses human experts in certain tests, marking a groundbreaking achievement in the field.</p><p>To keep pace with competitors such as OpenAI, Google has expedited its AI releases, positioning itself at the forefront of innovation. The rapid development and deployment of Gemini underscore Google’s commitment to maintaining a leading position in the dynamic landscape of artificial intelligence.</p><p>Bard, Google’s advanced chatbot, has undergone a transformative upgrade, now powered by Gemini Pro — the top tier of the AI system. This enhancement is hailed as the most significant improvement since Bard’s initial launch. The integration of Gemini Pro empowers Bard with enhanced capabilities, elevating its performance and responsiveness to user queries and interactions.</p><p>Furthermore, Google’s Pixel 8 Pro smartphones are now leveraging Gemini Nano, representing a noteworthy integration of AI technology into consumer devices. This adaptation is not limited to in-house products, as Gemini Nano will also be made available to Android developers, fostering a broader ecosystem of AI-powered applications and services.</p><p>Looking ahead, Google has announced plans to release Gemini Ultra to developers in the coming year, expanding the accessibility of this cutting-edge AI model. This move reinforces Google’s commitment to fostering collaboration and innovation within the developer community, potentially unlocking new possibilities and applications for Gemini Ultra across various industries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hEPse75j9N9Lj6Oc5WEstA.png" /></figure><p>In summary, Google’s launch of Gemini marks a pivotal moment in the evolution of artificial intelligence, showcasing advancements in processing diverse data sources and achieving unprecedented levels of performance. The integration of Gemini into flagship products like Bard and Pixel 8 Pro smartphones demonstrates Google’s dedication to bringing AI capabilities to the forefront of consumer technology. As Gemini continues to evolve and becomes more widely available, its impact on the landscape of artificial intelligence is likely to be profound.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405d13419435" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple Vision Pro: Apple’s Cutting-Edge AR Headset Redefining Immersive Experiences at $3,499]]></title>
            <link>https://medium.com/@nishantwadhwani94/apple-vision-pro-apples-cutting-edge-ar-headset-redefining-immersive-experiences-at-3-499-a6ad2d4cc41e?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ad2d4cc41e</guid>
            <category><![CDATA[meta]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[ar]]></category>
            <category><![CDATA[apple-vision-pro]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Fri, 09 Jun 2023 07:06:17 GMT</pubDate>
            <atom:updated>2023-06-09T07:06:17.394Z</atom:updated>
            <content:encoded><![CDATA[<p>Apple Vision Pro is a groundbreaking AR headset that seamlessly blends the real and digital worlds. Controlled by eye movements, hand gestures, and voice commands, featured with a separate battery pack, it offers an immersive experience. Priced at <strong>$3,499</strong>, it will launch early next year in the US and later in other countries. With a switchable dial, it can transition between augmented and full virtual reality. Apple Vision Pro represents the pinnacle of AR innovation, redefining our perception and interaction with the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qysMd_C8vCebmvRMJd14Lg.png" /><figcaption>With Vision Pro, you have an infinite canvas that transforms how you use the apps you love</figcaption></figure><p>It is a game-changing AR headset that offers a controller-free experience, by introducing <strong>visionOS</strong>, an operating system where users browse app icons by looking at them. The device supports tap and flick gestures, voice commands, and compatibility with familiar iPhone and iPad apps. Bluetooth accessories like the Magic Keyboard and Magic Trackpad are supported, and Mac connectivity is possible. The headset’s downward-facing cameras can accurately track hand movements, even when hands are resting low.</p><p>The headset has a glass front and an aluminum frame, containing <em>five sensors, 12 cameras, a 4K display for each eye</em>, and a computer that’s apparently cooled with a fan. The headset mask (which Apple dubs a “Light Seal”) and strap (which Apple dubs a “Head Band”) are cloth-lined and modular, and Apple says they can flex to fit a variety of face shapes and head sizes. The Head Band is ribbed and fits around the back of your head, and you can swap different sizes and styles of band.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEzfAjCfmGFmt4QZsPOP_Q.jpeg" /><figcaption>A pair of high-resolution cameras transmit over one billion pixels per second to the displays so you can see the world around you clearly. The system also helps deliver precise head and hand tracking and real‑time 3D mapping, all while understanding your hand gestures from a wide range of positions.</figcaption></figure><p><strong>Zeiss</strong> has created custom optical inserts that magnetically attach to the lenses for people who wear glasses. It has an external battery that lasts up to two hours and can connect via a supple woven cable. Apple promises that the display will be unprecedentedly sharp and can deliver 4K video.<br>The system uses an <strong>M2</strong>, but it also includes a new chip called the <strong>R1</strong>.</p><p>Apple Vision Pro introduces <strong>EyeSight</strong>, a system that displays your eyes in the headset, maintaining a sense of connection with others. In full VR mode, a glowing screen obscures your eyes to indicate unavailability. Additionally, the device generates a hyperrealistic digital persona by scanning your face. With passthrough video technology, you can experience the real world in vibrant color while being able to project 3D objects into your surroundings. This includes extracting objects from a message thread and bringing them into the real world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kz6m76v0ZTp9ydjgM9-wsA.jpeg" /><figcaption>A unique dual‑chip design enables the spatial experiences on Vision Pro. The powerful M2 chip simultaneously runs visionOS, executes advanced computer vision algorithms, and delivers stunning graphics, all with incredible efficiency. And the brand-new R1 chip is specifically dedicated to process input from the cameras, sensors, and microphones, streaming images to the displays within 12 milliseconds — for a virtually lag-free, real-time view of the world.</figcaption></figure><p>When you’re talking to people remotely, you can use spatial audio to do things like arrange FaceTime participants as “video tiles” around the room. And you can capture and “relive” 180-degree video with a 3D camera while inside the headset. Apple is also promoting TV and Arcade content on the headset, including premium content from Disney.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*irr6tRI8DhG727hhmhH9Kw.jpeg" /><figcaption>Apple is promoting TV and Arcade content on the headset, including premium content from Disney.</figcaption></figure><p>Apple Vision Pro, a long-awaited project, has undergone extensive development and faced significant delays. This highly anticipated headset is considered <strong>CEO Tim Cook’s</strong> flagship addition to the Apple product portfolio. Despite entering a market that has yet to fully flourish, the device has received accolades from industry experts. Its primary rival is expected to be Meta, known for the successful gaming-oriented Quest 2 headset, although the response to its multi-purpose Quest Pro has been more varied. Apple Vision Pro aims to make a notable impact in the industry with its unique features and Apple’s renowned innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ad2d4cc41e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advancing Material Recognition: Researchers Harness AI to Identify Similar Materials in Images]]></title>
            <link>https://medium.com/@nishantwadhwani94/advancing-material-recognition-researchers-harness-ai-to-identify-similar-materials-in-images-44300acbeecf?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/44300acbeecf</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 14:10:14 GMT</pubDate>
            <atom:updated>2023-05-25T14:10:14.112Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Advancing Material Recognition: Researchers Harness AI to Identify Similar Materials in Images</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*PtfpROgiV_K33vPznDGBeQ.jpeg" /><figcaption><strong>Adam Zewe </strong>|<strong> MIT News Office</strong></figcaption></figure><p>This machine-learning method holds tremendous potential in aiding diverse applications, ranging from enhancing robotic scene comprehension and enabling precise image editing to empowering online recommendation systems with intelligent material matching capabilities.</p><p>The application of this method extends beyond robotics scene understanding, making it invaluable for a wide range of use cases. For instance, in a kitchen setting, a robot would greatly benefit from recognizing items composed of similar materials. Armed with this knowledge, the robot could adjust its force exertion whether it’s picking up a small pat of butter from a dimly lit counter corner or a whole stick from a brightly lit fridge.</p><p>Moreover, this method holds immense potential in image editing, allowing for precise manipulation of materials. It can also be seamlessly integrated into computational systems that accurately deduce material parameters from images. Additionally, material-based web recommendation systems could leverage this approach. For example, it could aid shoppers searching for clothing items made from specific fabrics, enhancing their online shopping experience.</p><p>Identifying objects in a scene that are composed of the same material, known as material selection, is an especially challenging problem for machines because a material’s appearance can vary drastically based on the shape of the object or lighting conditions.</p><p>Scientists from <strong>MIT</strong> and <strong>Adobe Research</strong> have made significant progress in addressing this challenge by introducing a groundbreaking technique. They have successfully developed a method capable of identifying all pixels in an image that correspond to a specific material, with the initial selection made by the user. Remarkably, this technique demonstrates exceptional accuracy, even when confronted with objects of diverse shapes and sizes. Crucially, the machine-learning model they devised exhibits robustness against visual distortions caused by shadows or varying lighting conditions, preventing the misinterpretation of materials that may appear dissimilar due to external factors. Their pioneering work opens up new possibilities for material identification and has the potential to revolutionize various industries that rely on accurate material recognition.</p><p>Although they trained their model using only synthetic data, which are created by a computer that modifies 3D scenes to produce many varying images, the system works effectively on real indoor and outdoor scenes it has never seen before. The approach can also be used for videos; once the user identifies a pixel in the first frame, the model can identify objects made from the same material throughout the rest of the video.</p><p><strong>Solving for similarity</strong></p><p>The researchers have developed a model that excels in transforming generic, pretrained visual features into material-specific features, showcasing remarkable resilience to object shapes and varied lighting conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ck2-S3-jJpRRNugyScgqKw.gif" /><figcaption>The user identifies a pixel in the first frame (red dot in the far-left image on the yellow fabric) and the system automatically identifies objects made from the same material throughout the rest of the video.</figcaption></figure><p>By leveraging this model, every pixel in an image can be assigned a material similarity score. When a user selects a pixel, the model intelligently determines the visual resemblance of every other pixel to the query, resulting in a comprehensive map where each pixel is ranked on a scale of 0 to 1 based on similarity. With just a single click, the model automatically selects all regions sharing the same material as the chosen pixel.</p><p>Since the model assigns a similarity score to each pixel, users have the flexibility to fine-tune the results according to their preferences. By setting a threshold, such as 90 percent similarity, the user receives a visually highlighted map of the image, emphasizing regions with materials that surpass the defined threshold. Importantly, this method is not limited to a single image; users can select a pixel in one image and seamlessly find the same material in another.</p><p>In experimental evaluations, the researchers’ model exhibited superior accuracy in predicting regions of an image that contain the same material, surpassing alternative methods. When compared to ground truth data, which represents the actual areas comprising the same material, the model achieved an impressive accuracy rate of approximately 92 percent.</p><p>Looking ahead, the researchers strive to enhance their model further by refining its ability to capture fine details of objects within an image. This refinement would elevate the accuracy and precision of their approach, enabling even more comprehensive material recognition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44300acbeecf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Story Telling with Data]]></title>
            <link>https://medium.com/@nishantwadhwani94/story-telling-with-data-b1c02931098d?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1c02931098d</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[storytelling-with-data]]></category>
            <category><![CDATA[storytelling-for-business]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Thu, 11 May 2023 15:00:10 GMT</pubDate>
            <atom:updated>2023-05-11T15:00:10.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ykG3lZwShWn8m8N0129DwQ.jpeg" /></figure><p>Data science is a multifaceted field that demands a broad range of skills to excel in. Throughout my almost three years of experience in this field, I have worked on a vast array of projects that involve cutting-edge data analytics and machine learning problems, including computer vision, natural language processing (NLP), clustering, classification, optimization, and more. To tackle these diverse problems, I have made a conscious effort to acquire various skills ranging from data pre-processing and exploratory data analysis to feature engineering, feature selection, building and optimizing models using machine learning techniques, model deployment, understanding how the algorithms work, comprehending the mathematics encapsulated in these algorithms, and much more.</p><p>One can learn all these skills through a variety of means, such as taking courses, working on capstone projects, pursuing academic degrees, and other options. However, there is one critical skill that a Data Scientist can only learn through industry experience and exposure, and that is <strong>Storytelling with Data</strong>. I distinctly recall struggling in this area, but with time, guidance from some of my project managers, and trial and error, I have been able to gain some appreciation for my storytelling abilities.</p><p>Effective storytelling is a crucial element in data science, as it can make complex data sets and machine learning models more accessible and understandable to stakeholders, including managers, clients, and end-users. Storytelling with data involves crafting a compelling narrative that contextualizes data insights and clearly communicates the implications of those insights. It is about presenting data in a way that engages the audience and creates a compelling call to action with the end goal as the ability to frame insights in a business context.</p><p>The key elements of storytelling with data which can provide some best practices to help you communicate your insights in a compelling way are:</p><ol><li><strong>Start with a clear message</strong>: Before you start creating charts and graphs, it’s important to identify the key message you want to communicate. This message should be clear and concise, and it should be supported by your data.</li><li><strong>Use the right visualizations:</strong> Once you’ve identified your message, it’s time to select the right visualizations to support it. Different types of data require different types of visualizations, so it’s important to choose the right chart or graph for the job.</li><li><strong>Keep it simple:</strong> When it comes to data visualization, less is often more. A cluttered chart or graph can be confusing and make it difficult to understand your message.</li><li><strong>Tell a story:</strong> Once you’ve created your visualizations, it’s time to tell a story with your data. This means using your data to support a narrative that takes your audience on a journey.</li><li><strong>Practice, practice, practice:</strong> Finally, it’s important to practice your presentation before you deliver it. This will help you identify any areas where you need to make adjustments, and it will also help you feel more confident when you present.</li></ol><p>Please share your experience and any other suggestions in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1c02931098d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT: Optimizing Language Models for Dialogue]]></title>
            <link>https://medium.com/@nishantwadhwani94/chatgpt-optimizing-language-models-for-dialogue-19619218e4bd?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/19619218e4bd</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 08:41:22 GMT</pubDate>
            <atom:updated>2023-02-12T04:50:34.868Z</atom:updated>
            <content:encoded><![CDATA[<p>ChatGPT by <strong>OpenAI</strong> has been exploded all over the web recently and is even said to take the place of <strong>Google</strong>.</p><p>ChatGPT is a natural language processing (NLP) model developed by OpenAI. It is designed to generate human-like responses to text input, allowing users to engage in natural, conversational interactions with the model.</p><p><em>GPT(Generative Pretrained Transformer)</em> is a large, deep learning-based model that was trained using unsupervised learning on a massive dataset of text. It uses a transformer architecture, which is a type of neural network that is well-suited to natural language processing tasks. It is capable of generating human-like text in response to a given prompt.</p><p>ChatGPT is a variant of GPT that has been specifically fine-tuned for conversational text generation, so it is particularly good at generating responses that sound natural in a conversational setting. This involved adjusting the model’s weights and biases in order to improve its performance on the task of generating natural-sounding responses to conversational prompts. This fine-tuning process can be thought of as a form of supervised learning, in which the model is “guided” towards the desired behavior by being presented with examples of correct responses to conversational prompts.</p><p>It has been trained on a large dataset of <strong>conversational text, such as dialogues from movies, TV shows, and books</strong>, so it is able to generate responses that sound natural and appropriate in a conversation. ChatGPT is a large language model, which means it has a huge number of parameters and can process a large amount of input text. This allows it to generate highly coherent and realistic responses that can continue a conversation in a natural and seamless way.</p><p>One of the key advantages of ChatGPT is that it can be easily integrated into chatbot systems, allowing developers to create chatbots that can hold more natural and engaging conversations with users. ChatGPT can be fine-tuned further for specific applications, such as <strong>customer service or e-commerce</strong>, to improve its performance in those domains.</p><p>Overall, ChatGPT is a powerful and flexible tool for generating conversational text, and it has many potential applications in chatbots, dialogue systems, and other natural language processing tasks.</p><p>What do you think about this tool? Can it become a <strong>Stack-Overflow of Data Scientists</strong>? Do let me know in comments.</p><p>Try yourself at:</p><p><a href="https://openai.com/blog/chatgpt/">https://openai.com/blog/chatgpt/</a></p><p>Here is the short demo of how it works: <a href="https://www.linkedin.com/posts/nishant-wadhwani-083b09142_nlp-chatbot-artificialintelliegence-activity-7005814913310822400-GtR8?utm_source=share&amp;utm_medium=member_ios">https://www.linkedin.com/posts/nishant-wadhwani-083b09142_nlp-chatbot-artificialintelliegence-activity-7005814913310822400-GtR8?utm_source=share&amp;utm_medium=member_ios</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yq6RmH7l7xwwiyIw0z9Lkw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19619218e4bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Credit Card Fraud Detection using Self-Organizing Map]]></title>
            <link>https://medium.com/@nishantwadhwani94/credit-card-fraud-detection-using-self-organizing-map-94234f7edcb0?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/94234f7edcb0</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[self-organizing-map]]></category>
            <category><![CDATA[fraud-detection]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Sat, 02 Apr 2022 10:11:00 GMT</pubDate>
            <atom:updated>2023-02-12T04:50:59.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*2Zx_JjwK9BbfC7C6-GQsYA@2x.jpeg" /><figcaption><strong>Credit Card Fraud Detection using Deep-Learning</strong></figcaption></figure><p>One of the massive problems for financial institutions is detecting fraud and is also one of the foremost reasons to leverage machine learning in this case. According to a Bloomberg report, fraud losses incurred by banks and merchants on all credit, debit, and prepaid general purpose payment cards issued globally accounted for £16.74 billion ($21.84 billion) in 2015.</p><p><em>Deep learning</em> is ideally suited to detect such fraud mechanisms because these systems can scan through vast datasets, detect unusual activities (anomalies), and flag them almost instantly. Deep Learning algorithms are excellent at detecting transactional frauds by analyzing millions of data points that are invisible to the human eye. Furthermore, this also reduces the number of false rejections and helps improve the precision percentage of real-time approvals. It reduces errors and time spent on correcting these error flags. These models are generally built on the client’s behavior on the internet and transaction history.</p><p>Apart from the high accuracy feature, deep learning-powered technology is best suited because of its ability to identify suspicious account behavior and prevent fraud in real-time instead of detecting them after the crime has already been committed. This provides a lot of scope for time improvement. Of the many, credit card fraud detections is one of the most successful applications of ML. Financial institutions are generally equipped with monitoring systems that are trained on historical payments data. Algorithm training, validation, and backtesting are based on vast datasets of credit card transaction data.</p><p>We will implement an <strong>unsupervised deep learning</strong> model, which is a <strong>Self-organizing map(SOM)</strong> to solve fraud detection. We are given a dataset that contains information on customers from the bank applying for an advanced credit card. So basically, these pieces of information are the data that customers had to provide when filling out the application form. And our mission is to detect potential fraud within these applications. So, by the end of the mission, we have to give an explicit list of the customers who potentially cheated.</p><p>So our goal is very explicit, we have to return something, however, to return something that is the list of potential fraudulent customers, we will not make a supervised deep learning model and try to predict if each customer potentially cheated. We are going to build an unsupervised deep learning model, which means that we will identify some patterns in high-dimensional datasets full of nonlinear relationships. And one of these patterns will be the potential fraud i.e. the customers who potentially cheated.</p><p>The dataset that we are going to use is taken from the <strong>UCI Machine Learning Repository</strong>, it is called the <strong>Statlog Australian Credit Approval Data Se</strong>t. The file concerns credit card applications, all attribute names, and values have been changed to meaningless symbols to protect the confidentiality of the data. So that makes this problem even more complex and difficult to solve for humans.</p><p>The independent variables are some categorical and continuous independent variables. And inside all these variables are hidden SOM frauds that we have to detect. This model is going to do some kind of customer segmentation to identify segments of customers and one of the segments will contain the customers who potentially cheated.<br>So, all these customers are the inputs of our neural network. And then what happens is that these input points are mapped to a new output space. And between the input space and the output space, we have this neural network composed of neurons, each neuron being initialized as a vector of weights that is the same size as the vector of customer that is a vector of 15 elements, because we have the customer ID plus 14 attributes.</p><p>And so for each observation point that is for each customer, the output of this customer will be the neuron that is closest to the customer. This neuron is called the <strong>winning node</strong>, for each customer, the winning node is the most similar neuron to the customer. We will use a neighborhood function like the <em>gaussian neighborhood function</em>, to update the weight of the neighbors of the winning node to move them closer to the point. And we do this for all the customers in the input space. We’ll repeat this. Each time we repeat it, the output space decreases and loses dimensions. It reduces its dimension little by little. Then it reaches a point where the neighborhood stops decreasing, where the output space stops decreasing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jW7YxkuaRn_UG06es6Iohw.png" /><figcaption>An illustration of the training of a self-organizing map. The purple blob is the distribution of the training data, and the small white disc is the current training datum drawn from that distribution. At first (left) the SOM nodes are arbitrarily positioned in the data space. The node (highlighted in yellow) which is nearest to the training datum is selected. It is moved towards the training datum, as (to a lesser extent) are its neighbors on the grid. After many iterations, the grid tends to approximate the data distribution (right).</figcaption></figure><p>And that’s the moment where we obtained our self-organizing map in two dimensions with all the winning nodes that were eventually identified. So now we’re getting closer to the frauds. We have to think about outliers because fraud is defined by something that is far from the general rules. The rules must be respected when applying for a credit card. So the frauds are the outlying neurons in this two-dimensional self-organizing map, simply because the outline neurons are far from the majority of neurons that follow the rules.</p><p>So now the question is, how can we detect the outline neurons in the self-organizing map?<br>Well, for this, we need the <strong>MID</strong>, the <strong>Mean Interneuron Distance</strong>. That means that in our self-organizing map for each neuron, we’re going to compute the mean of the Euclidean distance between this neuron and the neurons in its neighborhood. And so what neighborhood is that? Well, we have to define it manually. And we compute the mean of the Euclidean distance between this neuron that we picked and all the neurons in the neighborhood that we defined. By doing that, we can detect outliers because outliers will be far from all the neurons in their neighborhood.</p><p>So this is the exact information that we are interested in on the self-organizing map, that will allow us to detect outliers, and therefore, detect fraud. And then we’ll use an inverse mapping function to identify which customers originally in the input space are associated with this winning node, i.e. an outlier.</p><p>We can clearly distinguish between the customers who didn’t get approval for their application and the customers who got approval, and then that will be useful because we will be interested in the fraudulent customers who got their applications approved. After all, that would make more sense.</p><p>Algorithm:<br>STEP 1: We start with a dataset composed of n features independent variables.<br>STEP 2: We create a grid composed of nodes, each one having a weight vector of n_features elements.<br>STEP 3: Randomly initialize the values of the weight vectors to small numbers close to 0 (but not 0).<br>STEP 4: Select one random observation point from the dataset.<br>STEP 5: Compute the Euclidean distances from this point to the different neurons in the network.<br>STEP 6: Select the neuron that has the minimum distance to the point. This neuron is called the winning node.<br>STEP 7: Update the weights of the winning node to move it closer to the point.<br>STEP 8: Using a Gaussian neighborhood function of mean the winning node, also update the weights of the winning node neighbors to move them closer to the point. The neighborhood radius is the sigma in the Gaussian function.<br>STEP 9: Repeat Steps 1 to 5 and update the weights after each observation (Reinforcement Learning) or after batch observations (Batch Learning), until the network converges to a point where the neighborhood stops decreasing.</p><p><strong>Fraud Customer IDs:</strong></p><p>15668679, 15636521, 15567834, 15672912, 15646190, 15631267, 15611189, 15762799, 15716347, 15687688, 15638610, 15649160, 15621244, 15632789, 15720725, 15591035, 15694677, 15772941, 15608804, 15698522, 15715750, 15789201, 15723884, 15735837, 15778290, 15751137, 15704315, 15800049, 15785367, 15801817, 15781574, 15725002, 15707681, 15690169, 15609823, 15594133, 15735572, 15658504, 15569595</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*osw7c29H2_ErVw1d" /><figcaption>SOM which shows fraudulent customers</figcaption></figure><p>And now, we did our job, we gave the list of potential cheaters to the bank. Their analysts will investigate this list of potential cheaters and will find out if the customer really cheated somehow.</p><p>You can find the code and dataset on this github repository:<br><a href="https://github.com/Nishant-Wadhwani/ASDP-Analyze-Supervise-Detect-and-Predict-ML-DL/tree/master/Fraud_Detection">https://github.com/Nishant-Wadhwani/ASDP-Analyze-Supervise-Detect-and-Predict-ML-DL/tree/master/Fraud_Detection</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94234f7edcb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prediction, Ad-Optimization and Segmentation Engine for E-Commerce]]></title>
            <link>https://medium.com/@nishantwadhwani94/prediction-ad-optimization-and-segmentation-engine-for-e-commerce-a51f76e89980?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a51f76e89980</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[customer-segmentation]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 14:30:14 GMT</pubDate>
            <atom:updated>2022-01-18T08:57:48.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*E0WPU_wlk2HY5W0I" /><figcaption>Machine Learning techniques to apply in E-commerce</figcaption></figure><h3>Overview</h3><p>Data science and Machine Learning have seen applications across all industries including e-commerce. According to a report by a leading newspaper, India is the fastest growing online retail among the top global economies. Having a growth rate of more than 50%, more e-commerce websites have surfaced than in the past. Currently, most of the E-commerce specific advancements revolve around the applications of Data science and Machine Learning to come up with innovative solutions to complex problems.</p><p>With roughly 2.5 quintillion bytes of data generated each day, it’s become crucial for these players to use it in a way to keep the customers happy and satisfied. This is where the importance of data science projects comes into the picture, where they are using it in areas such as customer segmentation, recommender system, ad optimization, and more. For instance, eBay is investing ample funds into data science and personalizing shopbots for enhancing customer experiences. Whereas Myntra is using data analytics and AI through its bot Artie, which is a smart bot for gathering consumer insights, and more.</p><h3>Goals</h3><p>Let’s suppose we just got some contract work with an E-commerce company based in New York City, an online hub for electronic gadgets and computer products. The website has a wide range of products ranging from laptops, tablets, Smartphones, Digital Cameras to Gaming hardware, monitors to printers, routers, and speakers. Shoppers can browse and buy a wide variety of electronics on the extensive but easy-to-navigate e-commerce site.</p><p>The navigation and categorization are well defined, giving you suggestions for keywords as you type. In addition to this, they also have in-store sessions related to electronic gadgets or devices’ functionality and provide feedback related to a particular model in these advice sessions. Customers come into the store, have sessions/meetings with a personal techie, then they can go home and order either on a mobile app or website for the device/gadget they want. Now, as a Data Scientist/ML Engineer, we are going to build a system in which we will perform the following tasks for this company to maintain their overall revenue and marketing/advertisement cost, improving the system to get the best results.</p><h3>Prediction System to increase revenue using Regression:</h3><h3>Specifications</h3><p>The company is trying to decide whether to focus its efforts on its mobile app experience or its website. To solve this issue, we will keep a record of the average time spent on the app in minutes, average time spent on the website in minutes, length of membership of the peculiar customer to determine and predict the yearly amount spent by the customer by building various machine learning models.</p><p>We will first do exploratory data analysis to get an idea about the data we have, to understand the relationship between different features, and also based upon the plots we will try to anticipate what can be the final answer for the problem so that even the board members in the organization can understand it better. After that, we will do data pre-processing that includes data cleaning, splitting of data, feature scaling, and encoding the categorical data. After that, we will start with the building of machine learning algorithms. For this part, since our data has only four features and is important for getting the dependent variable, feature selection is not necessary for this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*mx8OdIBA9VKGAqAHsjVezQ.png" /><figcaption>Correlation of the Dependent variable with all the features</figcaption></figure><p>We will use eleven types of regression techniques which include Multiple Linear Regression, Polynomial Regression, Decision Tree Regression, Random Forest Regression, Support Vector Regression, AdaBoost Regression, Gradient Boosting Regression, LightBoost Regression XGBoost Regression, Catboost Regression, and a Deep Learning Neural Network with two hidden layers. To improve the model performance, we will also apply model selection techniques like K-Fold Cross-Validation and Hyperparameter Tuning using Randomized Search and Grid Search. In the end, we will also compare these models by checking the error functions like MAE, MSE, RMSE, and R2_Score(since the data is linear) to get the best model. This dataset will contain details of 500 customers who use these online platforms at regular intervals of time.</p><p>Features Used:-</p><p>Avg. Session Length: Average session of in-store style advice sessions.</p><p>Time on App: Average time spent on App in minutes</p><p>Time on Website: Average time spent on Website in minutes</p><p>Length of Membership: How many years the customer has been a member.</p><p>Email-id of the Customer</p><p>Address of the Customer</p><p>Yearly Amount Spent by the Customer in dollars:- Dependent Variable</p><h3>Milestones</h3><p>Results:-</p><p>1. Multiple Linear Regression:-</p><p>MAE: 7.645674798915295</p><p>MSE: 92.89010304498548</p><p>RMSE: 9.637951185028149</p><p>AdjR2_Score: 98.60 %</p><p>R2_Score: 98.28 %</p><p>Standard Deviation: 0.23 %</p><p>2. Polynomial Regression:-</p><p>MAE: 9.821412017434954</p><p>MSE: 168.1146222773757</p><p>RMSE: 12.965902293221852</p><p>AdjR2_Score: 0.9748088085532581</p><p>R2_Score: 98.28 %</p><p>Standard Deviation: 0.23 %</p><p>3. Decision Tree Regression:-</p><p>MAE: 22.302801428455044</p><p>MSE: 892.9177245951145</p><p>RMSE: 29.881728942534675</p><p>AdjR2_Score: 0.8638033002783084</p><p>R2_Score: 85.47 %</p><p>Standard Deviation: 4.47 %</p><p>4. Random Forest Regression:-</p><p>MAE: 16.792435420526388</p><p>MSE: 588.0010281930992</p><p>RMSE: 24.24873250693939</p><p>AdjR2_Score: 0.9118907791584572</p><p>R2_Scores: 91.40 %</p><p>Standard Deviation: 2.18 %</p><p>5. Gradient Boosting Regression:-</p><p>MAE: 11.995227880605066</p><p>MSE: 300.38339692348706</p><p>RMSE: 17.331572257688773</p><p>AdjR2_Score: 0.9549889442574704</p><p>R2_score: 95.78 %</p><p>Standard Deviation: 1.23 %</p><p>6. AdaBoost Regression</p><p>MAE: 23.401292929729806</p><p>MSE: 1057.8274956580312</p><p>RMSE: 32.52426010930965</p><p>AdjR2_Score: 0.8414894669255895</p><p>R2_score: 87.26 %</p><p>Standard Deviation: 2.46 %</p><p>7. LightGBM Regression</p><p>MAE: 17.07568894454065</p><p>MSE: 597.5295569718282</p><p>RMSE: 24.444417705722266</p><p>AdjR2_Score: 0.910462973412879</p><p>R2_score: 93.68 %</p><p>Standard Deviation: 1.89 %</p><p>8. Support Vector Regression:-</p><p>MAE: 7.684301593806611</p><p>MSE: 93.41165186472095</p><p>RMSE: 9.664970349914217</p><p>AdjR2_Score:0.9861149009981192</p><p>R2_Score: 98.28 %</p><p>Standard Deviation: 0.23 %</p><p>9. XGBoost Regression:-</p><p>MAE: 12.416217399641823</p><p>MSE: 300.99728221487806</p><p>RMSE: 17.349273247455585</p><p>AdjR2_Score: 0.9530468237185467</p><p>R2_Score: 96.55 %</p><p>Standard Deviation: 0.98 %</p><p>10. CatBoost Regression:-</p><p>MAE: 11.80193070072924</p><p>MSE: 290.54804106706683</p><p>RMSE: 17.04546981068773</p><p>AdjR2_Score: 0.9564627266144017</p><p>R2_Score: 96.29 %</p><p>Standard Deviation: 1.07 %</p><p>11. Deep-Learning Neural Network:-</p><p>MAE: 8.977470664848756</p><p>MSE: 145.9051320075004</p><p>RMSE: 12.079119670220194</p><p>R2_Score: 97.25%</p><p>Standard Deviation: 0.994%</p><p>So, as we can see from the following results Multiple Linear Regression and Support Vector Regression have the best performance if we look at the final values, and it is because the data is somehow linearly separable, as in this case relationship between the yearly amount spent by the customer and length of membership of a particular customer is linearly separable as well as the relationship between the yearly amount spent by the customer and time spent on the app by the customer has a linear relationship.</p><p>And the conclusions we derived are:-</p><p>Holding all other features fixed, a 1 unit increase in Avg. Session Length is associated with an increase of 25.98 total dollars spent by the customer.</p><p>Holding all other features fixed, a 1 unit increase in Time on App is associated with an increase of 38.59 total dollars spent by the customer.</p><p>Holding all other features fixed, a 1 unit increase in Time on Website is associated with an increase of 0.19 total dollars spent by the customer.</p><p>Holding all other features fixed, a 1 unit increase in Length of Membership is associated with an increase of 61.27 total dollars spent by the customer.</p><p>For this particular scenario, a quick question:- Do you think the company should focus more on its mobile app or its website?</p><p>This is tricky, there are two ways to think about this: Develop the Website to catch up to the performance of the mobile app, or develop the app more since that is what is working better. This sort of answer depends on the other factors going on at the company, you would probably want to explore the relationship between Length of Membership and the App or the Website before concluding!</p><h3>Ad-Optimization using Reinforcement Learning:</h3><h3>Specifications</h3><p>In this particular task, we’re going to optimize the online advertising by finding the best ad among different ad designs, the best ad that will converge the maximum customers to click on the ad and potentially buy the company’s product.</p><p>The advertising team prepared ten different ads with ten different designs. For example one of the ads the customers will see the smartphone commercial done by famous cricketer Virat Kohli, who is doing heavy work-out on the field and recording/monitoring his performance on some app or comparing his metabolism with battery-life, on the other ad customers see the smartwatch commercial done by renowned actor Brad Pitt during some action scene while chasing criminals, and on some other ad say some tourists models are using a digital camera which is taking HD photographs of an SUV in a charming city like the south of France or Italy, etc. Now, the advertising team is wondering which ad will converge the most, which ad will attract the most people to click the ad and then potentially buy their products.</p><p>So we have these ten different ads and what we’re going to do is the process of online learning, which is to show these ads to different users online. Once they connect to a certain website or a search engine, it can be ads that appear at the top of a page when they do any type of research on Google. We will show one of these ads each time the user connects to the Web page and we’re going to record the result whether this user clicked yes or no on the ad.</p><p>We will be using reinforcement learning for this task that includes Upper Confidence Bound and Thompson Sampling for getting the final result. So, we will select an ad to show to this user and then the user will decide to click yes or no on the ad. If the user clicks on the ad we will record it as 1 whereas if the user doesn’t click on the ad we will record it as 0. And then a new user connects to the Web page and the algorithm selects an ad to show this new user. Our dataset contains 10000 users. We need to figure out in a minimum number of rounds which ad converts to the most meaning which is the best ad to which the users are most attracted.</p><h3>Milestones</h3><p>Ad number five was the ad that was selected the most and was the ad with the highest click-through rate. In terms of our business case study, it corresponds to the ad that is the most attractive ad that has the most fanbase associated, that will sell the most to the user as future customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*3GmyVMXQBfj3Q4xf3fxUxA.png" /><figcaption>Count-plot showing the distribution of the ad with best CTR</figcaption></figure><p>The UCB algorithm did a great job but here is a constraint that is to identify this ad as soon as possible which is in a minimum number of rounds. We have to observe how many rounds are required for the UCB algorithm to be able to identify this ad with the highest clicks. We will implement this by tweaking the number of customers as a parameter. With 5000 rounds that is with 5000 users, the UCB can identify the ad with the highest CTR. If we replace 5000 here with 1000 and still it can identify the ad with the highest CTR which is still ad 5. Now, we’re going to replace that 1000 here with 500. And 500 rounds is not enough for the UCB algorithm to identify the best ad, the UCB identified the best ad as an ad of index 7 so 500 is not enough.</p><p>Now, if we use the Thompson Sampling algorithm with the same data set then it will give the correct result even with 500 users i.e. it was able to find the ad number 5 with the highest CTR even in 500 rounds. And therefore this technique is more powerful and efficient than UCB in most situations.</p><h3>Prediction System for Best Ad using Classification:</h3><h3>Specifications</h3><p>Now, as we got our best ad, that is ad no.5, we are going to test this ad for our new set of customers. We will be working with an advertising data set that contains 1000 new users and indicating whether or not a particular internet user clicked on an advertisement on any website or app. These advertisements will be related to our company’s product that can be any electronic gadget or device because there’s a high chance that these new customers will click on this ad since it has got maximum CTR when tested on our old customers. And if a person clicks on this best ad, there is a possibility that he/she will purchase our product. We will try to create a model that will predict whether or not they will click on an ad based on the features of that user. We’ll work with the Ecommerce Customers CSV file from the company. It has Customer info, such as Age, Daily Internet Usage, and their respective countries. This data set contains the following features:</p><p>Features Used:-</p><p>Age: customer age in years</p><p>Area Income: Avg. Income of geographical area of consumer</p><p>Daily Internet Usage: Avg. minutes a day consumer is on the internet</p><p>Ad Topic Line: Headline of the advertisement</p><p>City: City of consumer</p><p>Male: Whether or not consumer was male</p><p>Country: Country of consumer</p><p>Timestamp: Time at which consumer clicked on Ad or closed window</p><p>Clicked on Ad: 0 or 1 indicated clicking on Ad</p><p>We will first do exploratory data analysis to get an idea about the data we have, to understand the relationship between different features, and also based upon the plots we will try to anticipate what can be the final answer for the problem so that even the board members in the organization can understand it better. After that, we will do data pre-processing that includes data cleaning, splitting of data, feature scaling, and encoding the categorical data. After that, we will start with the building of machine learning algorithms. For this part, since our data has only five features and that too is important for getting the dependent variable, feature selection is not necessary for this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*xd51i_T5YaOXC_Uls2bJ_w.png" /><figcaption>Count-plot showing the distribution of male/female clicked on an ad</figcaption></figure><p>We will use twelve types of classification techniques which include Logistic Regression, KNearestNeighbour Classification, Naive Bayes Classification, Decision Tree Classification, Random Forest Classification, Support Vector Machine Classification, XGBoost Classification, Gradient Boosting Classification, AdaBoost Classification, LightGBM Classification, Catboost Classification, and a Deep Learning Neural Network with two hidden layers. To improve the model performance, we will also apply model selection techniques like K-Fold Cross-Validation and Hyperparameter Tuning using Randomized Search and Grid Search. In the end, we will also compare these models by comparing their accuracies to get the best model. This dataset contains details of 1000 internet users who use these online platforms at regular intervals of time.</p><h3>Milestones</h3><p>Results Obtained:-</p><p>1. Logistic Regression:-</p><p>Accuracy: 96.53 %</p><p>Standard Deviation: 1.48 %</p><p>precision recall f1-score support</p><p>0 0.97 0.99 0.98 136</p><p>1 0.99 0.96 0.98 114</p><p>2. KNearestNeighbour Classification:-</p><p>Accuracy: 96.27 %</p><p>Standard Deviation: 1.55 %</p><p>precision recall f1-score support</p><p>0 0.95 1.00 0.97 136</p><p>1 1.00 0.94 0.97 114</p><p>3. SVM Classification:-</p><p>Accuracy: 96.80 %</p><p>Standard Deviation: 1.36 %</p><p>precision recall f1-score support</p><p>0 0.97 0.99 0.98 136</p><p>1 0.99 0.96 0.98 114</p><p>4. Naive Bayes Classification:-</p><p>Accuracy: 96.27 %</p><p>Standard Deviation: 1.31 %</p><p>precision recall f1-score support</p><p>0 0.97 0.97 0.97 136</p><p>1 0.96 0.96 0.96 114</p><p>5. Decision Trees Classification:-</p><p>Accuracy: 95.20 %</p><p>Standard Deviation: 1.74 %</p><p>precision recall f1-score support</p><p>0 0.92 0.95 0.93 136</p><p>1 0.94 0.90 0.92 114</p><p>6. Random Forest Classification:-</p><p>Accuracy: 96.00 %</p><p>Standard Deviation: 2.23 %</p><p>precision recall f1-score support</p><p>0 0.96 0.96 0.96 136</p><p>1 0.96 0.95 0.95 114</p><p>7. AdaBoost Classification:-</p><p>Accuracy: 94.80 %</p><p>Standard Deviation: 2.10 %</p><p>precision recall f1-score support</p><p>0 0.97 0.97 0.97 136</p><p>1 0.96 0.96 0.96 114</p><p>8. Gradient Boosting Classification:-</p><p>Accuracy: 95.47 %</p><p>Standard Deviation: 1.48 %</p><p>precision recall f1-score support</p><p>0 0.96 0.97 0.96 136</p><p>1 0.96 0.95 0.96 114</p><p>9. LightGBM Classification:-</p><p>Accuracy: 95.20 %</p><p>Standard Deviation: 1.60 %</p><p>precision recall f1-score support</p><p>0 0.96 0.97 0.96 136</p><p>1 0.96 0.95 0.96 114</p><p>10. XGBoost Classification:-</p><p>Accuracy: 95.73 %</p><p>Standard Deviation: 2.05 %</p><p>precision recall f1-score support</p><p>0 0.98 0.97 0.97 136</p><p>1 0.97 0.97 0.97 114</p><p>11. CatBoost Classification:-</p><p>Accuracy: 95.87 %</p><p>Standard Deviation: 1.73 %</p><p>precision recall f1-score support</p><p>0 0.96 0.98 0.97 136</p><p>1 0.97 0.96 0.96 114</p><p>12. Deep Learning Neural Network:-</p><p>Accuracy: 97.2%</p><p>precision recall f1-score support</p><p>0 0.96 0.99 0.98 136</p><p>1 0.99 0.96 0.97 114</p><p>So, as we can see Support Vector Machine and ANN has correctly predicted the result with the highest accuracy i.e. 96.80 and 97.2 as well as good precision, recall value which is using RBF as a kernel and NN with two hidden layers which represent that the data here is non-linear in nature. Also, we got the magnificent result that out of 520 women users, around 260 have clicked our ad to see the specific gadget and out of 480 men, around 230 have clicked our ad which shows in total around half of the new users found our ad engaging.</p><h3>Prediction System for Purchasing Product using Classification:</h3><h3>Specifications</h3><p>Now, after solving all these tasks, we are interested in the main problem that is whether the person is interested in buying the product or not i.e. whether the particular customer after attending all the brainstorming sessions and clicking on the ad that has the highest CTR, has purchased any of the company’s product. So, using classification, we are going to predict whether the customer has purchased the product or not based on two features that are the age of the customer and his estimated salary in dollars per annum. So, it is quite clear that from our previous dataset, around 500 customers have clicked the best design ad, so we are taking the information that is age and estimated salary of 400 customers.</p><p>We will first do exploratory data analysis to get an idea about the data we have, to understand the relationship between different features, and also based upon the plots we will try to anticipate what can be the final answer for the problem so that even the board members in the organization can understand it better. After that, we will do data pre-processing that includes data cleaning, splitting of data, feature scaling, and encoding the categorical data. After that, we will start with the building of machine learning algorithms. For this part, since our data has only two features and that too is important for getting the dependent variable, feature selection is not necessary for this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*iVWbJYrt-7yCi0Gq8rXhpg.png" /><figcaption>Count-plot showing the distribution of whether the product has been purchased or not</figcaption></figure><p>We will use twelve types of classification techniques which include Logistic Regression, KNearestNeighbour Classification, Naive Bayes Classification, Decision Tree Classification, Random Forest Classification, Support Vector Machine Classification, XGBoost Classification, Gradient Boosting Classification, AdaBoost Classification, LightGBM Classification, Catboost Classification, and a Deep Learning Neural Network with two hidden layers. To improve the model performance, we will also apply model selection techniques like K-Fold Cross-Validation and Hyperparameter Tuning using Randomized Search and Grid Search. In the end, we will also compare these models by comparing their accuracies to get the best model. This dataset contains details of 400 users i.e their age and salaries.</p><h3>Milestones</h3><p>Results Obtained:-</p><p>1. Logistic Regression:-</p><p>Accuracy: 82.67 %</p><p>Standard Deviation: 9.52 %</p><p>precision recall f1-score support</p><p>0 0.89 0.96 0.92 68</p><p>1 0.89 0.75 0.81 32</p><p>2. KNearestNeighbour Classification:-</p><p>Accuracy: 91.00 %</p><p>Standard Deviation: 5.59 %</p><p>precision recall f1-score support</p><p>0 0.96 0.94 0.95 68</p><p>1 0.88 0.91 0.89 32</p><p>3. SVM Classification:-</p><p>Accuracy: 90.67 %</p><p>Standard Deviation: 6.11 %</p><p>precision recall f1-score support</p><p>0 0.96 0.94 0.95 68</p><p>1 0.88 0.91 0.89 32</p><p>4. Naive Bayes Classification:-</p><p>Accuracy: 87.67 %</p><p>Standard Deviation: 8.95 %</p><p>precision recall f1-score support</p><p>0 0.90 0.96 0.93 68</p><p>1 0.89 0.78 0.83 32</p><p>5. Decision Trees Classification:-</p><p>Accuracy: 90.67 %</p><p>Standard Deviation: 6.29 %</p><p>precision recall f1-score support</p><p>0 0.97 0.94 0.96 68</p><p>1 0.88 0.94 0.91 32</p><p>6. Random Forest Classification:-</p><p>Accuracy: 91.00 %</p><p>Standard Deviation: 6.33 %</p><p>precision recall f1-score support</p><p>0 0.97 0.94 0.96 68</p><p>1 0.88 0.94 0.91 32</p><p>7. XGBoost Classification:-</p><p>Accuracy: 88.00 %</p><p>Standard Deviation: 6.18 %</p><p>precision recall f1-score support</p><p>0 0.96 0.94 0.95 68</p><p>1 0.88 0.91 0.89 32</p><p>8.AdaBoost Classifier</p><p>Accuracy: 85.67 %</p><p>Standard Deviation: 7.16 %</p><p>precision recall f1-score support</p><p>0 0.93 0.94 0.93 68</p><p>1 0.87 0.84 0.86 32</p><p>9.Gradient Boosting Classifier</p><p>Accuracy: 88.67 %</p><p>Standard Deviation: 5.81 %</p><p>precision recall f1-score support</p><p>0 0.93 0.94 0.93 68</p><p>1 0.87 0.84 0.86 32</p><p>10.LightGBM Classifier</p><p>Accuracy: 90.00 %</p><p>Standard Deviation: 6.50 %</p><p>precision recall f1-score support</p><p>0 0.93 0.91 0.92 68</p><p>1 0.82 0.84 0.83 32</p><p>11. CatBoost Classification:-</p><p>Accuracy: 91.00 %</p><p>Standard Deviation: 5.97 %</p><p>precision recall f1-score support</p><p>0 0.96 0.94 0.95 68</p><p>1 0.88 0.91 0.89 32</p><p>12. Deep Learning Neural Network:-</p><p>Accuracy: 89.0</p><p>Standard Deviation: 5.972</p><p>precision recall f1-score support</p><p>0 0.94 0.91 0.93 68</p><p>1 0.82 0.88 0.85 32</p><p>So, as we can see KNN Classification has predicted with best average accuracy i.e. 91% with standard deviation of 5.57% (and also precision, recall values are also good) whether the customer will buy the product or not after clicking the ad with the best design or the ad with maximum click-through rates. It means our model is 91 percent efficient in predicting the correct number of users who have either purchased the product or not. Also, out of the 400 customers, around 140 customers have brought something for them either from the company’s website or app or through visiting the store which is tremendously contributing to the company’s profit.</p><h3>Customer Segmentation using Clustering:</h3><h3>Specifications</h3><p>The strategy team of the company collected some data about their customers. Each row corresponds to a customer of the organization. And for each of these customers, the data analyst of this team gathered the following information that includes the customer’s I.D., their gender, their age, their annual income, and then the spending score that can take values between 1 and 100. The spending score is a metric made by the company to measure how much each customer spends. And so they made this metric taking values from 1 to 100. The scale of the metric is such that the lower the score, the less the customer spends, and the higher the score the more the customer spends. And this is in a certain period, let’s say in the past year.</p><p>So now the purpose of this task is the strategic team or analytics team wants to understand its customers. That is, they want to identify some patterns within their base of customers using some machine learning algorithms like the clustering technique in this case. But even though we don’t know what specifically to predict, we still know that we want to identify some patterns and do customer segmentation.</p><p>How are we going to identify such patterns?</p><p>Well, we will do this by using K-means Clustering and Hierarchical Clustering, and more specifically what we will do is we will create a dependent variable that will take a finite number of values.</p><h3>Milestones</h3><p>We have these different classes of customers and so now we know some business strategies or business ideas like in marketing that would be to target the company’s customers. The customers who belong to cluster three, are characterized by a high annual income with a high spending score, for these customers, we could truly target them the most when there are some new offers like new deals because indeed from these customers we’ll get the highest chance to sell our products since they spend a lot. And besides, they have a high annual income, therefore, a high potential to buy a lot of stuff.</p><p>Cluster number one is the cluster of the customers who earn a low annual income and yet have a high spending score. For these customers who seem to earn a low annual income but yet seem to have a problem spending too much, maybe the organization would like to be responsible and protect these customers by not targeting them too much with new deals and new irresistible offers that after all maybe these customers don’t need at the end of the day. They would limit perhaps the targeting to these customers. Cluster number four contains all the customers who have a low annual income and who spend very little on the company’s website or app. Well, the board of the organization should not do anything with this cluster because we don’t have to protect them. After all, they don’t spend much. And besides, they have a low income, so we don’t want to target them too much. Then the cluster number five corresponds to all the customers who earn a high annual income but still who don’t spend much on purchasing the company’s products.</p><p>This would be interesting to target because maybe we’re missing out on a lot of customers who don’t seem to show that much interest in the company’s products here. So maybe for these classes, we could brainstorm on how to send them some better advertising that attracts them more and track them better into the company’s website or for in-store mall sessions so that they can purchase more products and increase their spending score.</p><p>Now, the final cluster which is like an average cluster and contains customers who earn an average annual income and spend normally on the company’s website as well as come sometimes for getting in-store advice sessions. And for this peculiar class, we cannot do much as we don’t want to target the ones that have a low annual income. So we want to protect them at the same time.</p><p>So, here we identified some different clusters of customers and for each of them, we can deploy different marketing strategies or different business strategies which will boost customers in some of the clusters and will protect them in other clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*DXiejgc7N5Bc4hNPas44XA.png" /><figcaption>Customer Segmentation</figcaption></figure><h3>Conclusion</h3><p>This is one example of how Data science and Machine learning could be implemented in an e-commerce company which is an online hub for electronic gadgets and computer products. Through smart bots, customer segmentation, recommender system, ad optimization, the company can achieve increased revenue, improve customer retention and provide a seamless end to end experience for the customers. Similar applications can be extended to varied fields and industries to create custom models for specific use cases fulfilling clients’ vision.</p><p>For all the codes and dataset related information, you can visit the following GitHub link:<br><a href="https://github.com/Nishant-Wadhwani/PASREFT-Prediction-Ad-Optimization-Segmentation-and-Recommendation-Engine-for-Tech-Novan-">https://github.com/Nishant-Wadhwani/PASREFT-Prediction-Ad-Optimization-Segmentation-and-Recommendation-Engine-for-Tech-Novan-</a></p><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a51f76e89980" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do you know, study says Artificial Intelligence Can’t Reliably Detect Emotions From Facial…]]></title>
            <link>https://medium.com/@nishantwadhwani94/do-you-know-study-says-artificial-intelligence-cant-reliably-detect-emotions-from-facial-167a27d0f7d7?source=rss-8c33f0f1a71a------2</link>
            <guid isPermaLink="false">https://medium.com/p/167a27d0f7d7</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[facial-expressions]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[emotion-recognition]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Nishant Wadhwani]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 19:04:03 GMT</pubDate>
            <atom:updated>2022-01-03T19:04:03.554Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Do you know, study says Artificial Intelligence Can’t Reliably Detect Emotions From Facial Expressions</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzzPB1Q40BY4ffEN87pR6Q.jpeg" /></figure><p>AI solutions can make an impactful difference in many spheres. Such technologies as <strong>Computer-Vision</strong> can divide the image into components to understand the context and intent by reading pixel values, as in facial landmarks for <em>facial expression recognition</em>.</p><p>But researchers found that individuals could use similar expressions to portray different emotions. Nowadays, Artificial intelligence (AI) systems are being developed to infer people’s intentions and reactions by studying their facial expressions. But a new study says that such speculations by AI cannot be very reliable.</p><p>A recent study analyzed photos of actors to examine the relation between facial expressions and human emotions. They found that people could use similar expressions to portray different emotions. As in, the same emotion could be expressed in different ways. The research also found that much of the inference is dependent on context. So, to judge people’s inner thoughts simply by analyzing their facial expressions through an algorithm can be a faulty method.</p><p>Researchers marked 13 emotion categories under which they analyzed facial expressions from 604 photographs of professional actors. The actors were given emotion-evoking scenarios to which they would have to react. However, the portrayals did not suggest in any way what to feel about these scenarios.</p><p>The study was published in <strong>Nature Communications</strong>, in which 13 categories were made through the judgment of 839 volunteers and the Facial Action Coding System that relates certain action units to certain movements of facial muscles. Machine learning (ML) analysis revealed to researchers that actors portrayed the same emotion categories by contouring their faces in different ways. At the same time, similar expressions did not always reveal the same emotions.</p><p>The researchers also wrote that these findings join other recent summaries of the empirical evidence to suggest that scowls, smiles, and other facial configurations belong to a larger, more variable repository of the meaningful ways in which people move their faces to express emotion.</p><p>A few months ago, a researcher sought regulations on AI tools being pushed in schools and workplaces to interpret human emotions. Kate Crawford, academic-researcher and the author of the book “<em>The Atlas of AI</em>”, said that <strong>unverified systems were used to interpret inner states</strong>, and added that such technology needs to be regulated for better policy-making and public trust.</p><p>What are your thoughts regarding this? Do you think that Artificial Intelligence has the power to synchronize with a human brain, or are there some limits?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=167a27d0f7d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>