<?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[Blend360 - Medium]]></title>
        <description><![CDATA[Blend360 is an award-winning provider of data, analytics, and talent solutions for Fortune 500 companies. - Medium]]></description>
        <link>https://medium.com/blend360?source=rss----27b62538c097---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Blend360 - Medium</title>
            <link>https://medium.com/blend360?source=rss----27b62538c097---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:32:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/blend360" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Optimizing ChatGPT (or all LLMs): Crafting Precise Prompts for Desired Responses]]></title>
            <link>https://medium.com/blend360/optimizing-chatgpt-or-all-llms-crafting-precise-prompts-for-desired-responses-dde3846871fd?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/dde3846871fd</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <dc:creator><![CDATA[Jiating Kristin Chen]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 20:43:34 GMT</pubDate>
            <atom:updated>2023-09-13T20:43:34.727Z</atom:updated>
            <content:encoded><![CDATA[<p>12 Expert Tips for Efficient Prompt Engineering</p><p><em>Jiating Kristin Chen, </em><a href="https://medium.com/@hanqing.dou"><em>Hanqing Dou</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3x_0O2xglX1FPtxy" /></figure><h3>ChatGPT, Generative AI, and LLM: An Overview</h3><p>Upon its debut in November 2022, ChatGPT introduced the concept that generative artificial intelligence (GenAI) could benefit both companies and consumers by automating tasks, assisting creative thinking, and even coding software.</p><p>ChatGPT stands for Chatbot Generative Pre-Trained Transformer. The chatbot relies on the GPT Large Language Model (LLM), a computer algorithm that processes natural language input and predicts subsequent words based on context. This predictive process continues until a complete answer is generated, showcasing the power of Generative AI.</p><p>In essence, LLMs act as engines predicting the next word. These intelligent systems engage users in a Q&amp;A style, where users inquire, and the model responds. However, despite their apparent intuitiveness, LLMs often require guidance for precise outcomes. This is where prompt engineering comes into play.</p><h3>Prompt Engineering: The Concept</h3><p>Prompt engineering involves crafting well-designed prompts that elicit specific LLM responses. By providing clear <em>instructions</em>, relevant <em>context</em>, examples, <em>input data</em>, and indicating the <em>desired output</em> format, we guide the model to perform more accurately and meaningfully. This post outlines 12 quick tips for effective prompt design that we researched from various online resources including the prompt engineering course from DeepLearning.AI (Isa Fulford, n.d.). Note that these tips seamlessly complement the advanced prompt engineering techniques such as Chain-of-Thought Prompting, ReAct Prompting, etc. We will introduce these 12 tips by categorizing them into three facets: tips to enhance model understanding, tips to enforce and support reasoning, and tips to standardize output.</p><h3>Prompt Engineering Tips: Enhance Model Understanding</h3><p>The LLM performs better with well-structured and narrative prompts. When creating your prompt, it’s crucial to express the desired task clearly and specifically to enhance the model’s understanding. Concise prompts are always great for giving clear instructions. Additionally, providing the model with more context allows the model to expand its understanding, eventually leading to more relevant outputs.</p><h3>Tip 1: Use delimiters to clearly indicate distinct parts of the input.</h3><p>Delimiters are vital for indicating distinct sections and preventing prompt injections. It is recommended to employ delimiters like triple quotes (‘‘‘’’’), triple backticks (```), triple dashes ( — -), angle brackets (&lt;&gt;), or XML tags (&lt;tag&gt;). Utilizing delimiters clarifies the model’s focus, ensuring adherence to intended instructions. For example, when summarizing a sentence with an LLM, delimiters avoid confusion and enhance output accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*Zrz7Q_fbVZbc6EglqWb4KQ.png" /><figcaption><em>Figure 1: An Example to Compare ChatGPT Outputs w/o and with Delimiters in the Prompt</em></figcaption></figure><p>The example in Figure 1 demonstrates that the model is able to understand the content quoted in triple backticks is what it needs to summarize.</p><h3>Tip 2: Create a data template for the model to follow.</h3><p>Rather than describing a prompt’s context in text format with delimiters, you can also create a data table as a reference for the model to follow when incorporating structured data input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*bUFwCIlWjXPKHxLoChTzAA.png" /><figcaption><em>Figure 2.1: An Example to Show ChatGPT Outputs w/o Data Table in the Prompt</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*m6tFOaULAM2WduZK-uOk0A.png" /><figcaption><em>Figure 2.2: An Example to Show ChatGPT Outputs with Data Table in the Prompt</em></figcaption></figure><p>Figure 2.2 shows that by feeding data into a data table, the model enhances its ability to generate code that aligns with the column names (compared to that in Figure 2.1).</p><h3>Tip 3: Tell what you want and what you don’t want (focus on what you want).</h3><p>LLMs often provide a wealth of information related to processed reasoning, but not necessarily a direct answer in the output. At times, you simply seek the solution without it being intertwined with the conversational fluff generated by the models. All you need to do is treat ChatGPT like a baby — tell it what you want and what you don’t want. This approach is more likely to yield a satisfactory answer. Moreover, instead of dwelling on what not to do, saying what to do in the prompt avoids misunderstanding and encourages more specificity and a focus on details that lead to better responses from the model (Shieh, 2023)<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*p4aAV1qF9hlZrhn4-EQpMg.png" /><figcaption><em>Figure 3.1: An Example to Show ChatGPT Outputs w/o Rules in the Prompt</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*gjYJCnmR6E6Ic3ZWfl8llg.png" /><figcaption><em>Figure 3.2: An Example to Show ChatGPT Outputs with Rules in the Prompt</em></figcaption></figure><p>In Figure 3.2, we observe an instance where the model refrains from producing superfluous information. This behavior follows direct instructions not to provide additional explanations in the prompt.</p><h3>Tip 4: Enhance clarity by incorporating explicit action cues, and utilizing leading verbs to direct model output.</h3><p>The LLM exhibits a high level of responsiveness to the action cues provided in the prompt. For instance, when you employ terms like ‘extract’ or ‘summarize,’ ChatGPT comprehends that it should focus on distinct tasks. ‘Extract’ guides the model to retrieve information, while ‘Summarize’ instructs it to generate a summary. We can optimize prompt effectiveness by employing clear commands such as ‘Write,’ ‘Classify,’ ‘Summarize,’ ‘Translate,’ ‘Order,’ and more. Furthermore, including introductory phrases within the prompt, such as ‘Answer: {output},’ can steer the model toward specific patterns, as demonstrated in this example for question answering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*0x87SNgsAp5jJp1ahngfnA.png" /><figcaption><em>Figure 4. 1: An Example to Show ChatGPT Outputs with ‘Summarize’ Action Cue in the Prompt</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*bzT35JJ6UXRadxco36BUDw.png" /><figcaption><em>Figure 4. 2: An Example to Show ChatGPT Outputs with ‘Extract’ Action Cue in the Prompt</em></figcaption></figure><p>Figure 4.1 and Figure 4.2 demonstrate the model’s proactive response to direct action cues in the prompt. It can perform tasks such as text summarization (Figure 4.1) or information retrieval (Figure 4.2).</p><h3>Prompt Engineering Tips: Enforce and Support Reasoning</h3><p>Enforcing LLMs to explicitly compute reasoning processes and intermediate steps allows the models more time to ‘think’ through the problem, which eventually leads the models to expend more computational effort on the task, potentially producing the correct answer.</p><h3>Tip 5: “Let’s Think Step by Step”</h3><p>This study shows that LLMs are decent zero-shot reasoners (Takeshi Kojima, 2022). By simply adding ‘<em>Let’s think step by step.</em>’ before each answer, they can outperform zero-shot prompting, which means supplying a prompt that isn’t included in the model’s training data, yet the model can produce the desired output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*xRB4-Y8KmOcvtodlXVTyhQ.png" /><figcaption><em>Figure 5.1: An Example to Show ChatGPT Outputs w/o “Let’s think step by step” in the Prompt </em>(Takeshi Kojima, 2022)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*C4fyREfDuT0DmsmyYJu3Rw.png" /><figcaption><em>Figure 5.2: An Example to Show ChatGPT Outputs with “Let’s think step by step” in the Prompt </em>(Takeshi Kojima, 2022)</figcaption></figure><p>Figure 5.2 highlights a situation where the model self-corrects its response upon receiving the prompt “<em>Let’s think step by step</em>”.</p><h3>Tip 6: Specify the intermediate steps required to perform the task.</h3><p>When working on tasks that involve problem-solving, instead of asking general questions, you can use the initial response as a basis and refine your prompt by incorporating specific intermediate steps that could lead to the final answer. This tip is particularly useful because when we try to instruct the model to work through the problem independently before providing an answer, we encourage it to engage in a more thoughtful and accurate reasoning process. This can help avoid situations where the model mistakenly produces an incorrect answer but still considers it correct based on its training data. This tip is associated with the Chain-of-Thought (CoT) prompt engineering technique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*y0Xm8QB19Xkf1HfSoGzR1Q.png" /><figcaption><em>Figure 6.1: An Example to Show ChatGPT Outputs w/o CoT Technique in the Prompt </em>(Isa Fulford, n.d.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*96tOIxbNR5MByxyZWldG1w.png" /><figcaption><em>Figure 6.2: An Example to Show ChatGPT Outputs with CoT Technique in the Prompt </em>(Isa Fulford, n.d.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*RM32Q2zUSzqYshExJ6YpYg.png" /><figcaption><em>Figure 6.2: An Example to Show ChatGPT Outputs with CoT Technique in the Prompt </em>(Cont.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*UBhwppIXEMCMWftLuHWozg.png" /><figcaption><em>Figure 6. 2: An Example to Show ChatGPT Outputs with CoT Technique in the Prompt </em>(Cont.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*9EcCNME-8mL35oQwGeYpfA.png" /><figcaption><em>Figure 6. 2: An Example to Show ChatGPT Outputs with CoT Technique in the Prompt </em>(Cont.)</figcaption></figure><p>In Figure 6.2, the model adjusts its response in Figure 6.1 following clear guidance to generate intermediate steps and work through the problem independently before reaching a conclusion.</p><h3>Tip 7: Offer examples for the model to understand.</h3><p>Before asking the model to perform a specific task, it can be beneficial to provide a few examples to showcase what the ideal answers are after the successful execution of that task. This helps the model understand the desired style or approach you expect in the output on a given topic. This is also known as ‘few-shot’ prompting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*2TYMTnaSPg1H07pt-UhPyg.png" /><figcaption><em>Figure 7: An Example to Compare ChatGPT Outputs w/o and with few-shot Technique in the Prompt</em></figcaption></figure><p>Figure 7 illustrates a one-shot example that establishes a preferred output format for the model when generating responses.</p><h3>Tip 8: Expand Knowledge Bases of LLMs</h3><p>All LLM models rely on specific training data, which may not be continually updated. Consequently, there is a chance that the question you pose falls outside the scope of LLM’s knowledge. For instance, ChatGPT (GPT 3.5 version) last underwent a knowledge update in September 2021 and is unable to provide answers related to facts or news introduced after that date. To address this limitation, you can enhance your queries by incorporating relevant context as a knowledge base. This technique can also be employed to apply customized knowledge-based LLMs by integrating them with external databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*o0qf9GVLRckpzLMjEzTRDQ.png" /><figcaption><em>Figure 8: An Example to Compare ChatGPT Outputs w/o and w Knowledge-based Context in the Prompt</em></figcaption></figure><p>Figure 8 demonstrates that providing additional context about LangChain enables the model to expand its knowledge boundaries and generate answers beyond its training data.</p><h3>Tip 9: Assign a Role to Leverage Role Playing</h3><p>Assigning a specific role is one of the most effective techniques for preparing LLMs to perform tasks. For instance, you can construct your prompt in the following manner: <em>‘You are an accomplished marketing content creator with experience in the hospitality industry’ </em>or <em>‘You are a highly skilled product manager who has worked at a home improvement retail company.’</em> This should be followed by your question.</p><p>By assigning a role, you are offering more precise guidance about what you expect. Essentially, you’re enabling it to evaluate whether something is correct or not based on the assigned role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*LVL0l2N5J0oMAJes_cnKOA.png" /><figcaption><em>Figure 9: An Example to Compare ChatGPT Outputs w/o and w Role Assignment in the Prompt</em></figcaption></figure><p>In Figure 9, the model takes on the role of a kindergarten teacher, explaining the concept of ChatGPT in a simplified and easily understandable manner.</p><h3>Prompt Engineering Tips: Standardize Outputs</h3><p>Guiding models to generate outputs according to specific formats and constraints within the prompt can be beneficial in achieving more anticipated and consistent results. Below are some more specific tips that cover this aspect.</p><h3>Tip 10: Leveraging Output Format Indicators to Produce Consistent Output</h3><p>Instructing models to produce outputs in a certain format, such as Markdown, JSON, or HTML, can be helpful for parsing the outputs for downstream analysis. Another example is to not only instruct models to “output in bullet points” but also provide the desired numbering, bullets, and specific prefixes in the bullet points. This could allow models to produce more formatted outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*OKkqbcpmN6Cyla_5AKmBpw.png" /><figcaption><em>Figure 10: An Example to Compare ChatGPT Outputs w/o and with Standardizing Outputs in the Prompt</em></figcaption></figure><p>Figure 10 underscores the significance of offering a clear output format, such as Markdown, in the prompt, which leads to more desirable outcomes.</p><h3>Tip 11: Checking Conditions on the Input to Prevent Errors</h3><p>In certain scenarios, it can be beneficial to request the model to validate specific conditions in the input and context before delivering an answer. This approach resembles using try-except statements in coding to prevent errors. By directing the model to assess these conditions, you can steer it away from producing irrelevant or hallucinated responses when not all the required conditions are met in the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*iqvnHZRMrAAzdjLbyClVkw.png" /><figcaption><em>Figure 11.1: An Example to Show ChatGPT Outputs w/o Checking Conditions in the Input </em>(Isa Fulford, n.d.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*xOrRGB_TdogHEfmpCmCzDQ.png" /><figcaption><em>Figure 11.2: An Example to Show ChatGPT Outputs with Checking Conditions in the Input </em>(Isa Fulford, n.d.)</figcaption></figure><p>In Figure 11.2, the model refrains from generating speculative responses (shown in Figure 11.1) when the input data lacks a sequence, thanks to a direct prompt message that sets clear expectations.</p><h3>Tip 12: Limit the Possible Model Outputs</h3><p>Restricting the range of possible outputs from the model to a predefined set can be valuable when conveying the model’s results for further analysis. As illustrated in the example below, the LLM often adds headers and additional wording around the actual answer as inferred information. Due to its inherent randomness, this additional information can be unpredictable in the model’s output in iterative runs. To mitigate the generation of redundant information, we can implement constraints to limit the range of possible outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*upwbtkoH606vlk4bQL8lIg.png" /><figcaption><em>Figure 12: An Example to Compare ChatGPT Outputs w/o and with Limiting Outputs in the Prompt</em></figcaption></figure><p>Figure 12. demonstrates that restricting responses to a single word (either ‘positive’ or ‘negative’) reduces the verbosity of answers, resulting in more favorable outcomes.</p><h3>Takeaways</h3><p>In summary, the tips provided above are invaluable for crafting effective prompts in the realm of prompt engineering. Remember that prompt optimization is not a one-time task; it’s an ongoing, iterative process. Pay special attention to the steps involved in enhancing reasoning, as they demand a thoughtful and mindful approach to ensure success.</p><p>If you are interested in learning what Blend360 offers to leverage Generative AI and its capabilities to solve your business problems, please click <a href="https://www.blend360.com/data-science-solutions/core-capabilities/artificial-intelligence">here </a>or contact us at nlp@blend360.com.</p><h3>References</h3><p>Isa Fulford, A. N. (n.d.). <em>ChatGPT Prompt Engineering for Developers</em>. Retrieved from DeepLrarning.AI: <a href="https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/">https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/</a></p><p>Shieh, J. (2023). <em>Best practices for prompt engineering with OpenAI API</em>. Retrieved from OpenAI: <a href="https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api">https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api</a></p><p>Takeshi Kojima, S. S. (2022). Large Language Models are Zero-Shot Reasoners. <em>Advances in neural information processing systems</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dde3846871fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/optimizing-chatgpt-or-all-llms-crafting-precise-prompts-for-desired-responses-dde3846871fd">Optimizing ChatGPT (or all LLMs): Crafting Precise Prompts for Desired Responses</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Demystified: A Business Leader’s Guide to Understanding Artificial Intelligence]]></title>
            <link>https://medium.com/blend360/ai-demystified-a-business-leaders-guide-to-understanding-artificial-intelligence-8ef0f0823c2c?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ef0f0823c2c</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Blend360]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 19:51:41 GMT</pubDate>
            <atom:updated>2023-04-26T19:52:18.354Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.linkedin.com/in/bill-stoughton-4867371/">Bill Stoughton</a>, VP, Data Science Lead at <a href="https://www.blend360.com/">Blend360</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4I4OxYT9YAYDhm91m_BAQ.jpeg" /></figure><p>Business trends tend to elicit either a sense of, “I’m feeling left behind,” or, “There’s too much hype, I’m going to focus elsewhere.” I think these opinions capture a lot of the reaction to AI.</p><p>But why is it mystifying in the first place? Lots of technical terms mixed with jargon. And like any hot trend, the expansion of the term into areas it doesn’t belong. We’ll start by describing what AI is, and the three high-level categories that it falls into. The reality is, your company is almost certainly doing some of this. We will then define some of the common terms that are sometimes used interchangeably but shouldn’t be.</p><p>This article will demystify some of the rhetoric, bring clarity to what Artificial Intelligence is (and isn’t), and prepare a business leader to venture down the path “eyes open,” able to separate what’s real from the hype, and armed with a conceptual understanding of what AI could do for their business.</p><h4>What is Artificial Intelligence?</h4><p>The term “artificial intelligence” was attached to the idea of computers mimicking human intelligence in 1956 at a conference at Dartmouth. The promise was always way ahead of practical applications until about 20 years ago, when separate paths that enabled significant AI traction started to converge.</p><p>· Massive computing power enabled through parallel processing</p><p>· Growth in the amount of data available and the ability to make its availability ubiquitous (the cloud)</p><p>· The open-source movement</p><p>Since terminology complicates the landscape of these discussions, it helps to differentiate what AI is, versus the techniques and platforms used to do it. From a practical sense, AI can be thought about in three broad categories:</p><p>· <strong>Narrow or “functional” AI</strong> — purpose specific, designed to solve a defined problem by predicting something, optimizing a scenario, recognizing specific patterns, etc. Things like a spam filter, fraud detection, predictive maintenance, and many others are examples of narrow AI. It is highly likely that your organization is already doing some of these things.</p><p>· <strong>Generative AI</strong> — a lot of attention to this lately with things like <a href="https://www.blend360.com/posts/chatgpts-implications-for-the-nlp-community-dont-panic-yet">ChatGPT’s newest release</a>, and the integration of generative capabilities into search engines. It uses a deep learning framework to understand the content of a user’s input and can generate relevant responses. There are lots of practical applications like interactive chat, content generation, search engine interfaces, or writing your kid’s term paper.</p><p>· <strong>General AI</strong> — the ability to perform any task that a human can. A robot at home that can make you a drink, debate the difference between the US and French revolution, and tell you how to fix the dishwasher. This does not exist … yet.</p><p>How do you ‘do’ AI? The landscape of terminology here can also be confusing. We are starting to hear terms like Machine Learning (ML) used interchangeably with AI, which are related things but not the same.</p><h4>Let’s get our terminology straight</h4><p>Generating business value from AI requires an ecosystem that defines objectives and includes an environment that enables the implementation of these solutions. In thinking through how to make all of this operational we need to parse out the terminology that defines it.</p><p><strong>Outcomes</strong></p><p>There are a set of terms that describe <strong>outcomes</strong> — like AI itself. This list is by no means exhaustive but those relevant in most business contexts are:</p><p>· AI — computer programs that mimic human intelligence</p><p>· <a href="https://www.blend360.com/posts/chatgpts-implications-for-the-nlp-community-dont-panic-yet">Natural Language Processing (NLP)</a> — a subfield of AI dealing with the understanding and generation of natural language</p><p>· Computer vision — another subfield of AI that uses algorithms to interpret and understand visual data</p><p><strong>Approaches</strong></p><p>The terms used to describe outcomes need to be distinct from the description of approaches to get these things done. The primary collection of approaches to accomplish AI-focused outcomes is Machine Learning, but there are others like rules-based systems, expert systems, decision trees, and evolutionary (genetic) algorithms.</p><p>Deep Learning is an important subset of Machine Learning that involves multiple layers of neural networks to represent very complex data relationships.</p><p><strong>Techniques</strong></p><p>Lastly, there are specific techniques that are deployed within, for example, the Machine Learning approach. Techniques such as regression, K-means clustering, Principle Components Analysis (PCA) can be used for basic analytics, or as part of a Machine Learning framework. More often, other techniques such as neural networks are utilized in Machine Learning (Neural networks are computer algorithms modeled on the human thought process).</p><p>The diagram below represents these three types of terminology and how they interact and overlap. Consider the space just outside of the AI circle as analytics basically defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*pbsj58g6hKeCw46k.PNG" /></figure><h4>Machine Learning (ML)</h4><p>Because machine learning plays such a dominant role in the AI discussion, especially for business applications, it’s worth spending a few moments on the 3 basic approaches. The term itself describes computer algorithms that can improve through experience. Machine Learning is a subset of AI (but not all AI is machine learning). The specific types of algorithms that can be involved with a machine learning solution vary and can include basic approaches like regression (linear, logistic, etc.) but more often involve more complex approaches like neural networks.</p><p>Regardless of the specific type of algorithm, there are three broad approaches within machine learning, each with its own set of optimal use cases.</p><p><strong>Supervised learning</strong></p><p>The basic context for this approach is usually the prediction of some outcome or classification of something with an objective truth. It is used when you know the answer and you provide the algorithm with lots of examples(training data). The algorithm then maps inputs to outputs based on all the data you provide it.</p><p>Does this image include a cat? Will this customer respond to my offer? Did our logo appear on any social media yesterday?</p><p><strong>Unsupervised learning</strong></p><p>When faced with complexity, humans like to categorize things. It helps us to simplify and organize our thinking and is a natural cognitive process to deal with complexity. Unsupervised learning is an algorithm and approach to identifying undetected patterns and relationships in the data.</p><p>The output can be things like clusters or groupings. Practical applications include customer segmentation, market basket analyses, or grouping customer reviews into topics or themes.</p><p><strong>Reinforcement learning</strong></p><p>Reinforcement learning algorithms are goal-oriented approaches that learn how to maximize some form of reward signal, and learn from their own actions (and can “fail fast”).</p><p>Practical applications include optimizing email subject lines, product recommendations, or optimizing search strategies through targeting and bidding.</p><h4>AI versus Analytics</h4><p>Not all analytics is AI, nor should it be. Analytics involves using statistical or mathematical methods to analyze data and gain insights. Regression analysis, predictive modeling, hypothesis testing, and data visualization are some of the traditional tools that can be used to generate analytic insights. They have been for years and will continue to be.</p><p>An analytic approach might become AI when it evolves to include the use of matching learning algorithms to analyze data and make predictions or decisions based on that data. Using predictive modeling and regression analysis to target likely responders would be considered an analytic approach. Using machine learning algorithms to make those same predictions based on customer behavior, demographics, and other real-time factors in an automatically self-learning environment would be considered an AI approach. The difference between the two can be subjective.</p><h4>Harness the Power of AI for Your Business</h4><p>To solve a complex business problem, multiple AI-driven approaches can be combined to create a solution. For example, if the goal is to create an effective prospect segmentation strategy you might:</p><p>· Use supervised learning to find the best potential customers based on the likelihood to respond, potential tenure, and revenue potential. All in an environment that continually learns</p><p>· Use unsupervised learning to identify trends and natural groups. Use these groups to customize targeting and treatment</p><p>· Use reinforcement learning to test your messaging and media investment strategy for each of these groups</p><p>Discussions about complex topics can go in any direction, but they can sometimes start in the same place. Bringing clarity to the terminology used to describe a complex topic enables these discussions to be more productive. This is what we’ve tried to do with this article — establish a common language using real examples and as little jargon as possible. If this helps anyone move past, “I’m feeling left behind,” or, “There’s too much hype!”, then it’s done its job.</p><p><a href="https://www.blend360.com/data-science-solutions/core-capabilities/data-science">Blend360 co-creates data science solutions</a> with clients to achieve their business goals. Clients are the heroes in our story, and we provide the tools and expertise needed to succeed. We use advanced analytics, machine learning, and AI to enable data-driven decisions that drive growth and innovation. As a leader in the data science industry, we collaborate with businesses of all sizes to create innovative solutions that make a difference.</p><p><em>Originally published at </em><a href="https://www.blend360.com/posts/ai-demystified-a-business-leaders-guide-to-understanding-artificial-intelligence"><em>https://www.blend360.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ef0f0823c2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/ai-demystified-a-business-leaders-guide-to-understanding-artificial-intelligence-8ef0f0823c2c">AI Demystified: A Business Leader’s Guide to Understanding Artificial Intelligence</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Topic Modelling for Business Intelligence: A Game-Changer for Every Industry]]></title>
            <link>https://medium.com/blend360/topic-modelling-for-business-intelligence-a-game-changer-for-every-industry-b26cf14d9fc8?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/b26cf14d9fc8</guid>
            <dc:creator><![CDATA[Aishwarya Bhangale]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 19:07:08 GMT</pubDate>
            <atom:updated>2023-04-26T20:39:54.905Z</atom:updated>
            <content:encoded><![CDATA[<p>BLEND360 — <a href="https://medium.com/u/354634449547">Aishwarya Bhangale</a>, <a href="https://medium.com/u/f0c6c58cfc36">Hanqing Dou</a>, <a href="https://medium.com/u/d339869aa5af">Jingru Liu</a>, <a href="https://medium.com/u/46b4cbe3038e">Jesse Fagan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MRZ1_neUXrBC_s3O" /><figcaption>Photo by <a href="https://unsplash.com/@dawson2406?utm_source=medium&amp;utm_medium=referral">Stephen Dawson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>In our earlier work, we presented </em><a href="https://medium.com/blend360/introduction-to-topic-modelling-with-lda-nmf-top2vec-and-bertopic-ffc3624d44e4"><em>four major modelling algorithms</em></a><em> (LDA, NMF, Top2Vec, and BERTopic) used for the application of Topic Modelling. Following up on this, in our most recent blog, we provided a </em><a href="https://medium.com/blend360/topic-modelling-a-comparison-between-lda-nmf-bertopic-and-top2vec-part-i-3c16372d51f0"><em>comprehensive comparison of these models</em></a><em>, highlighting their underlying assumptions, unique features, strengths and weaknesses. In this blog, we highlight two business use cases on how topic modelling can help drive brand strategy and also provide a more structured document categorization.</em></p><p>Topic modelling, as an NLP application, has a wide variety of business use cases across different industries such as customer feedback analysis, discovering industry trends from market research to identify topics most relevant to the target audience, and in return, optimize content marketing strategies. Topic Modelling is also useful to analyze customer support inquiries to help companies identify and address the most common issues. Analyzing data can also help identify patterns and anomalies that may indicate fraudulent activities.</p><p>In this post, we dive deeper to understand two specific use cases of Topic Modelling -</p><ol><li>Drive social media brand strategy</li><li>Document management and categorization</li></ol><h3><strong>Case 1: Drive Brand Strategy</strong></h3><p>Establishing a strong and consistent online presence on social media is an essential element of every brand strategy. It helps a company define its target audience and create content that can resonate with its followers. A strong brand strategy can also differentiate a company from its competitors, build trust with its audience and ultimately drive more business. A well-planned brand strategy helps make data driven decisions to improve its social media presence over time. <br> <br>Topic modeling is a powerful tool that can be applied to brand management in social media to extract meaning from co-occurrences of words and gain insights into brand positioning. Here are three ways in which this approach helps with brand management:</p><ol><li><strong>Evaluating brand positioning:</strong> Conducting a correlation analysis of average topic probabilities at the brand level helps identify similarities or differences between brands based on social media topics.</li><li><strong>Predicting future shifts in brand preference: </strong>The introduction of Temporal Topic Variability (TTV) as an index measures the shift of key topics over time for a particular brand, helping brand managers predict future shifts in brand preference.</li><li><strong>Designing marketing communications:</strong> Basing marketing communications on the results of topic modeling can improve a brand’s appeal to its target audience, allowing for the design of brand dashboards that highlight the latest topics associated with a brand.</li></ol><p><strong>Evaluating Brand Positioning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*q78MnECAgHsbg3V3vaQafg.png" /><figcaption>Figure A: Framework to map online brand image using differential language analysis on social media conversations.</figcaption></figure><p>This research uses 134,953 tweets across 193 brands of categories such as airlines, banks, clothing, computers, etc. as input data. Each brand has a random sample of 2,000 tweets text data.</p><p>Following are the steps that have been taken to derive these brand-topic relationships:</p><ol><li><strong>Data Preprocessing:</strong></li></ol><ul><li>Constraints based on per user tweet count: To avoid twitter bots and trolls from skewing results, users with a high volume of posts during a certain period are identified and removed from the data set (beyond the 10th tweet). Although this may not entirely eliminate bots, it helps minimize the issue while minimizing the removal of legitimate users.</li><li>Filtering for additional tweet characters: Special characters like “@”, URLs like starting with “http”, and ads messages are removed.</li><li>Removing stop words and brand names<strong>: </strong>Stop words and brand names which are not directly related to the brand image are removed from the data to minimize their impact on the resulting topics.</li></ul><p><strong>2. Model selection using perplexity and coherence:</strong></p><p>The authors extracted topics from a combined sample of brand names and determined the ideal number of topics using LDA models with different numbers of topics. Eventually, the selected model has 100 topics chosen based on several criteria, including perplexity, coherence scores, and topic quality.</p><p><strong>3. Visualizing the data:</strong> Word cloud with size of characters shows the prevalence of the word within the topic is clear to display a topic. Following are some examples of word clouds representing topics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*syUbw0qaMHvhC1WPGgZj3Q.png" /><figcaption>Figure B: Topic Clusters Generated for Different Brand Names</figcaption></figure><p><strong>4. Evaluating brand positioning using topic probabilities</strong>: The study proposes conducting a correlation analysis of average topic probabilities at the brand level as an approach for managers to identify similarities or differences between brands based on social media topics.</p><p>5. <strong>Assessing lexical differences across brands using significance testing:</strong> The research utilizes social media language and topics to forecast the occurrence or non-occurrence of brand names in a discussion. And after connecting topics and brands, Schwartz et al.’s (2017) software is imported to run regressions of topic use across brands and derive implications for brand management based on the analysis of positive and negative topic associations of a particular brand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*22q-X0K_mHlyUee2aw_8OQ.png" /><figcaption>Figure C: Sample Brand Name (7 Up) and Top Topics</figcaption></figure><p>In the above figure, we can observe the top two topics — Topic 89 and Topic 31 with highest correlation with its associated brand — 7 Up. The most frequently occurring words in these top topics summarize the current marketing image of the brand via user tweets.</p><p>Upon evaluating the topics identified for each brand, following are the two broader categories that these topics are found to be sub-divided into:</p><ul><li>Positive or negative incidents: A few of the identified topics described a news story or a specific feature, some of which were positive and others negative.</li><li>Activities and lifestyles: Topics were also identified by different activities and lifestyles, including music and entertainment and holidays/special occasions.</li></ul><p><strong>Predicting Future Shifts in Brand Preference</strong></p><p>Post generating the output of topic models, this research introduces temporal topic variability (TTV) as an index that measures the shift of key topics over time for a particular brand. Using Twitter tweet data from 2011–2015, the average difference in probabilities for each year relative to the previous year is calculated for each of the 100 topics per brand. In this way, TTV is regressed against the following three factors:</p><ol><li>A future change in brand preference (in this case, a subsequent year)</li><li>Change in net promoter scores</li><li>Change in percentage of lapsed users</li></ol><p>A high TTV value would indicate that a brand shifts its image more rapidly over a shorter period compared to a lower value of TTV which would mean that a brand changes its image relatively slowly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*kH38_cTjN2z97E3MXsqhNw.png" /><figcaption>Figure D: Impact of Change in TTV on Future Brand Preference</figcaption></figure><p><strong>Applications of Current Approach in Brand Management</strong></p><p><em>Brand Safety and Monitoring Negatively Correlated Topics</em></p><p>The differential language analysis approach can be used to detect negative topic correlations associated with a brand, which is crucial for ensuring brand safety. Brand safety involves monitoring both favorable and unfavorable brand associations in online settings. For instance, a brand could place its ads next to inappropriate content by using contextual targeting, resulting in reputational damage. Marketers can use the differential language analysis approach to monitor the negatively correlated words and topics associated with their brand to ensure that their brand is distanced from such content.</p><p><em>Uncovering Brand Similarities Using Topic Probabilities</em></p><p>Topic modeling of brand data provides a valuable way to determine the relationship between topics and brands, enabling an understanding of brand similarities. Identifying similar brands can help brands select alliance partners, as it allows assessment of a brand’s cultural relevance and identification of partners that share a similar space in cultural conversations.</p><p>To achieve this, the approach involves constructing a correlation matrix of various brands in different categories by averaging topic probabilities associated with each brand, highlighting key associations for each topic that is linked to a brand.</p><p>For example, when comparing correlations between different beverage brands, shows as following figure, <em>Gatorade </em>and <em>Smirnoff </em>are highly correlated (r=.81) in social media conversations. This indicates that the two brands could potentially collaborate or cobrand together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*TzDKhYEhdQrSUQmzJjuQ3g.png" /><figcaption>Figure E: Average Correlations Among Sample and Industry Brands</figcaption></figure><p><em>Designing Marketing Communications Using Topic Models</em></p><p>Appeal to a brand’s target audience can be improved by basing its marketing communications on the results of topic modelling. One way to go about this is by designing brand dashboards that highlight the latest topics that feature a brand. Following are the key information pieces that this dashboard could include:</p><ul><li>Top three topics linked to a brand at any given point of time</li><li>Shifts in brand topics over multiple years</li><li>Words that are linked to a given topic</li><li>Brands that feature similar topics</li></ul><p>For example, from Figure D, the keywords for topic 30 are linked primarily to sports, and these could form the basis of an advertising campaign that features a sports theme. CNN could use this analysis of the topic conversation topics to identify persistent themes that are linked to the brand over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*drJqXnYG4_WIhgreOYQ8zQ.png" /><figcaption>Figure F: Top three everyday topics involving CNN</figcaption></figure><h3><strong>Case 2: Categorize and Organize Information</strong></h3><p>Topic taxonomy is a hierarchical structure used to categorize and organize information according to a set of topics or themes. It provides a systematic approach to identifying and grouping related information, with categories becoming increasingly specific as the hierarchy progresses. Topic taxonomy can be used in various fields, such as information management, data analysis, and content creation, to help individuals and organizations organize, search, and analyze large amounts of data more efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*CAhHR0xgvnx2l_OysULmjg.png" /><figcaption>Figure G — Hierarchical Structure of a Topic Taxonomy</figcaption></figure><p>Topic taxonomy has several uses in the business world:</p><ol><li><strong>Easier data management: </strong>Due to its structured approach, topic taxonomy makes it easier to find and manage data, thus reducing the time and effort required to locate specific information.</li><li><strong>Improved search and discovery:</strong> Categorization through topic taxonomy results in improved search and discovery, enabling businesses to find relevant information more quickly and easily.</li><li><strong>Better understanding of customers:</strong> Topic taxonomy can help businesses better understand their customers’ interests and needs by analyzing customer interactions and feedback, leading to more personalized experiences, improved engagement, and increased customer loyalty.</li><li><strong>Streamlined content creation:</strong> By streamlining the content creation process, topic taxonomy can help identify key themes and topics, resulting in additional content that is more focused on its relevance to the audience, leading to better engagement.</li><li><strong>Identification of insights:</strong> By identifying data according to specific topics, businesses can identify insights that might otherwise go unnoticed, leading to improved decision-making and business outcomes.</li></ol><p>Maintaining an up-to-date topic taxonomy can be a challenging task. Keeping up with rapidly emerging topics and themes can be difficult as it makes the taxonomy more complex and hierarchical, especially for large organizations that deal with a lot of data. Additionally, due to the subjective nature of topic classification, different people may categorize the same piece of information differently. This process can therefore be time-consuming and labor-intensive if done manually.</p><p>Previous solutions for taxonomy maintenance have performed clustering on a low-dimensional text embedding. However, due to reliance on the text corpus in an unsupervised manner, their output topic taxonomy often fails to match with the complete taxonomy designed by a human curator. These solutions are also sensitive to topic imbalance in the corpora, making it difficult to find minor topics.</p><p>In the following use case, we have summarized how partial information about the topic structure can be leveraged to complete the topic taxonomy. A novel framework for this completion, TaxoCom, recursively expands the topic taxonomy by discovering novel sub-topic clusters of terms and documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*0Fe1tbWQ-sOei4ecLjpcEg.png" /><figcaption>Figure H— Example of Topic Taxonomy Completion</figcaption></figure><p>TaxoCom is capable of automatically identifying latent topic labels using incomplete or outdated topic taxonomies. Additionally, it outperforms other models in handling imbalanced datasets, thus solving challenges that other models cannot tackle. With TaxoCom, rapidly emerging topics are no longer a problem as it can accurately perform topic taxonomy without the need for human support.</p><p>Before TaxoCom’s creation, two challenges had to be addressed. First, novel topics needed to be identified by considering the hierarchical semantic relationship among existing topics. Second, the granularity of novel sub-topics had to be maintained, like that of known sub-topics, to ensure consistency of semantic specificity among sibling nodes.</p><p>TaxoCom tackles these challenges by using the following two techniques:</p><ol><li><strong>Text embedding </strong>— Analyzes how words can be used together. TaxoCom uses locally discriminative embedding to enforce discrimination among the known sub-topics, and to make a clear distinction between known and novel sub-topic clusters. This is done in two steps:</li></ol><ul><li>Local embedding: To improve the discriminative power of term embeddings at lower levels of the taxonomy, TaxoCom retrieves all documents containing the top-M closest terms to the lower-level sub-topic.</li><li>Keyword guided discriminative embedding: TaxoCom employs a spherical text embedding framework to directly capture the semantic coherence among the terms into the directional similarity in the spherical space.</li></ul><p><strong>2. Text clustering </strong>— Groups words together based on how they are used. TaxoCom performs novelty adaptive clustering, which separately finds clusters on novel-topic terms and known-topic terms. It then selectively assigns the terms into child nodes while filtering out general terms based on their semantic relevance and representativeness. This is carried out in the following four stages:</p><ul><li>Novel topic term identification: This stage determines whether each term can be assigned to one of the given sub-topics or not, i.e., it distinguishes between the known-topic terms from the novel-topic terms.</li><li>Spherical term clustering: This stage assigns each known-topic term into one of the existing sub-topics and simultaneously, assigns each novel-topic term into one of the newly identified novel sub-topics.</li><li>Anchor term selection: In this stage, TaxoCom defines the significance score of a term by considering both its semantic relevance to each sub-topic cluster (cosine similarity) and the representativeness in the corresponding sub-corpus (TF-IDF weightage). This is necessary to carefully mine only the set of terms that are relevant to each sub-topic cluster, also known as anchor terms.</li><li>Novel sub-topic cluster refinement: In this stage, TaxoCom chooses the proper number of novel clusters based on an estimation of a ‘concentration value’ which indicates the semantic specificity of each sub-topic cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*HHJ4d78P_7uNHgDl4KBm4g.png" /><figcaption>Figure I: Overview of TaxoCom Framework</figcaption></figure><p>TaxoCom has performed well in extensive experiments conducted on real-world datasets collected from two different domains — New York Times and arXiv. These datasets offer large corpus for experimentation and have two-level hierarchies of topic classes, which are regarded as the ground-truth as provided by a human curator.</p><p>For both the dataset corpora, there is an imbalanced number of documents for each topic class, and AutoPhrase (a tool to automate quality phrases extraction from massive text corpora) has been used to tokenize raw document text. The statistics of the datasets are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*FrlIVjoWZX_TdbjMebz-IQ.png" /><figcaption>Figure J: Dataset Summary used for TaxoCom</figcaption></figure><p>To investigate the effect of an initial topic hierarchy, researchers consider three scenarios using different partial topic hierarchies with different completeness. In this blog post, we will show how does TaxoCom finds the latent topics if several parent-topics and child-topics are deleted from the input data.</p><p>Here we use the NYT dataset as an example. The figure below is the output of TaxoCom and double-lined boxes represent newly inserted topic nodes. This research experiment demonstrates that TaxoCom successfully identifies and inserts novel topic nodes. It successfully identifies not only the first-level missing topic: <em>Science</em>, but also the second-level ones including<em> music, baseball and soccer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCEG9NaZ0a_ZLt0dEEWiSQ.png" /><figcaption>Figure K: TaxoCom Topic Taxonomy Output (NYT)</figcaption></figure><p>Although TaxoCom performs well in finding new sub-topics, several center terms of novel topic nodes do not exactly match with the ground-truth topic names. Let’s take NYT as an example, the ground-truth subtopic is <em>cosmos,</em> but the novel subtopic TaxoCom detect is <em>spacecraft</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hL8S41ZLgACTXGI7yktaaw.png" /><figcaption>Figure L: A Comparison of Novel and Ground Truth Subtopic</figcaption></figure><p>There are also some standalone novel subtopics which don’t have ground truth subtopic. For example, <em>governor </em>is a novel subtopic, but we cannot find any match in the deleted ground-truth topics.</p><p>Two methods that can help assess the quality of Taxocom’s model predictions have been used by 10 recruited doctoral researchers as human evaluators:</p><ol><li>Term Coherence — Indicates how strongly the terms in a topic node are semantically coherent. Coherence is defined by the ratio of the number of relevant terms over the total number of presented terms.</li><li>Topic completeness — Quantifies how completely the set of topic nodes covers the ground-truth topics. For each level, the ground-truth topic hierarchy provides a query for every topic name, and the set of output topic nodes becomes the support set. Human evaluators are asked to rate the score between 0 and 1 that represents how confidently the query belongs to one of the topics in the support set. The completeness is defined by the average score for all the queries.</li></ol><p>In conclusion, TaxoCom significantly outperforms other baseline models in terms of topic completeness and term coherence, thus, more accurately discovering ground truth novel sub-topics. For future work, this research aims to employ pre-trained language models to best summarize high-level concepts for its sub-topic clusters.</p><p>If you want to know more, please let us know, comment below and/or send us a message at <a href="/service/mailto:NLP@blend360.com">NLP@blend360.com</a>.</p><p><em>Blend360 co-creates data science solutions with clients to achieve their business goals. Clients are the hero in our story, and we provide the tools and expertise needed to succeed. We use advanced analytics, machine learning, and AI to enable data-driven decisions that drive growth and innovation. As a leader in the data science industry, we collaborate with businesses of all sizes to create innovative solutions that make a difference.</em></p><h3>References</h3><ul><li><em>Managing Hierarchies and Taxonomies in Relational Databases</em>. Retrieved from What-When-How : <a href="https://what-when-how.com/information-science-and-technology/managing-hierarchies-and-taxonomies-in-relational-databases/">https://what-when-how.com/information-science-and-technology/managing-hierarchies-and-taxonomies-in-relational-databases/</a></li><li>Lee, D., Shen, J., Kang. S., Yoon, S., Han, J., &amp; Yu, H. (2022). TaxoCom: Topic Taxonomy Completion with Hierarchical Discovery of Novel Topic Clusters. <em>arXiv:2201.06771</em>: <a href="https://arxiv.org/abs/2201.06771">https://arxiv.org/abs/2201.06771</a></li><li>Swaminathan, V., Schwartz, H.A., Menezes. R., &amp; Hill, S. (2022). The Language of Brands in Social Media: Using Topic Modeling on Social Media Conversations to Drive Brand Strategy. <em>Journal of Interactive Marketing</em>: <a href="https://journals.sagepub.com/doi/pdf/10.1177/10949968221088275">https://journals.sagepub.com/doi/pdf/10.1177/10949968221088275</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b26cf14d9fc8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/topic-modelling-for-business-intelligence-a-game-changer-for-every-industry-b26cf14d9fc8">Topic Modelling for Business Intelligence: A Game-Changer for Every Industry</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Topic Modelling: A Comparison Between LDA, NMF, BERTopic and Top2Vec — Part I]]></title>
            <link>https://medium.com/blend360/topic-modelling-a-comparison-between-lda-nmf-bertopic-and-top2vec-part-i-3c16372d51f0?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/3c16372d51f0</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[lda]]></category>
            <category><![CDATA[bertopic]]></category>
            <category><![CDATA[topic-modeling]]></category>
            <category><![CDATA[nmf]]></category>
            <dc:creator><![CDATA[Aishwarya Bhangale]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 19:25:37 GMT</pubDate>
            <atom:updated>2023-04-14T19:25:36.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>Topic Modelling: A Comparison Between LDA, NMF, BERTopic and Top2Vec — Part I</h3><p>BLEND360 — <a href="https://medium.com/u/354634449547">Aishwarya Bhangale</a>, Daphney Valiatingara, <a href="https://medium.com/u/33a79d223b1f">Meet Paradia</a>, <a href="https://medium.com/u/e61fbe1058c7">Kristin (Jiating) Chen</a>, <a href="https://medium.com/u/901772c220b3">Brett Li</a>, <a href="https://medium.com/u/46b4cbe3038e">Jesse Fagan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XrrBe1D07o_-sBPN" /><figcaption>Photo by <a href="https://unsplash.com/@glencarrie?utm_source=medium&amp;utm_medium=referral">Glen Carrie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In the previous post, we introduced the theoretical grounding of the four most widely used algorithms in topic modeling. This article will focus on their model comparison from research findings.</p><h3>Model Comparison</h3><p><strong>Related Research</strong></p><p>In the world of text analysis, researchers are continually seeking new ideas and techniques for discovering topics. In a recent study by Egger &amp; Yu (2022), four popular topic modeling algorithms were compared: LDA, NMF, Top2Vec, and BERTopic. The authors evaluated how these algorithms performed on short text data from social media and identified their respective strengths and weaknesses.</p><p>The study used a Twitter dataset with approximately 31,800 unique tweets, including hashtags such as #covidtravel, #covid, and #travel. While transformer-based models like BERTopic and Top2Vec retained the tweets’ original structure, LDA and NMF utilized preprocessed data that included stop words removal, tokenization, stemming, and lemmatization.</p><p>After constructing the models, the researchers compared their performance based on algorithmic similarity: LDA vs. NMF and Top2Vec vs. BERTopic.</p><p>The authors argue that evaluating topic modeling techniques based on a single metric, such as coherence, is insufficient. Therefore, this study relied on human judgment and domain knowledge expertise to provide a more comprehensive evaluation of each algorithm’s performance on the given dataset.</p><p><strong>Comparing LDA and NMF</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*-FoVpVduFQyxQlk_.jpeg" /><figcaption>Figure A: Topics identified by LDA and NMF (Egger, 2022)</figcaption></figure><p>In their study, researchers used “coherence” scores to determine the optimal number of topics and identify the best topics. They found that LDA had 14 optimal topics, while NMF identified 10. The topic names were assigned based on the most frequently occurring words by their TF-IDF weights for a particular topic. Interestingly, the study concluded that NMF’s results were more aligned with human judgment, ultimately outperforming LDA. However, as we know, topic extraction using LDA and NMF primarily relies on hyperparameters, so it’s not entirely unexpected that most of the results were as expected.</p><p><strong>Comparing BERTopic and Top2Vec</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*U1yX4hUXveOMDLoB.jpeg" /><figcaption>Figure B: Topics identified by BERTopic and Top2Vec for “flight.” (Egger, 2022)</figcaption></figure><p>Both transformer algorithms used in the study allow researchers to search for specific terms or keywords within the results to identify relevant topics related to them. In this study, the researchers searched for terms such as “cancel,” “flight,” and “travel bubble” to find topics related to these terms.</p><p>For instance, when searching for the keyword “flight,” the study found that the topics generated by the Top2Vec model were focused more on policy and regulation, while the topics generated by the BERTopic model were more concerned with the nature of air transport. By searching for specific keywords, researchers can identify topics that are most relevant to their research interests and explore them further. Essentially, this feature allows researchers to narrow down their focus and target specific topics within the larger output generated by the algorithm.</p><p><strong>Summary of Model Comparisons</strong></p><p>This research has yielded some valuable insights into the performance of various topic modeling algorithms. By relying on human and domain knowledge expertise to evaluate the models, the study concluded that BERTopic and NMF were the best performers for this dataset, followed by Top2Vec and LDA. While both BERTopic and NMF were able to identify distinct topics, BERTopic had the added advantage of discovering related topics around a specific term, providing even deeper insights into the data. Overall, BERTopic was found to excel in all aspects of the topic modeling domain, and even allowed for further reduction of topics.</p><p>On the other hand, Top2Vec’s resulting topics often overlapped and contained multiple concepts, making it less ideal for datasets with less than 1,000 documents. Despite this, Top2Vec was still able to uncover unique findings that were missed by other topic modeling approaches. For instance, it identified the topic of ‘politicians’ in the hierarchical reduction of topics, which was missed by other algorithms.</p><p>More traditional algorithms, such as LDA and NMF, did not yield easily separable or interpretable topics. LDA required detailed assumptions about hyperparameters to achieve optimal results, while NMF showed better results by using Term Frequency-Inverse Document Frequency (TF-IDF) over raw-word frequencies.</p><p>It’s worth noting that the nature of a dataset can impact the choice of topic modeling technique. While BERTopic and Top2Vec offer many advantages, such as no preprocessing, support for hierarchical topic reduction, scalability, and advanced search and visualization capabilities, they may not be the best choice for longer text data. Another research by Cosimo Albanese (2022) suggests that BERTopic and Top2Vec perform better with shorter text, such as social media posts or news headlines, due to the limited ability of embeddings to consider long lists of tokens when building semantic representations. Conversely, for smaller datasets or longer textual data, faster models that use fewer resources and know the number of topics beforehand, such as LDA or NMF, may produce better results.</p><h3>Conclusion</h3><p>Research findings support data scientists to narrow down algorithm selection based on different criteria such as the nature of data and the assumption. It’s intriguing for us to apply these algorithms to another dataset for a hands-on comparison; so we did it and have included the findings in an upcoming post. Stay tuned! :D</p><p>If you want to know more, please let us know, comment below and/or send us a message at <a href="/service/mailto:NLP@blend360.com">NLP@blend360.com</a>.</p><p><em>Blend360 co-creates data science solutions with clients to achieve their business goals. Clients are the hero in our story, and we provide the tools and expertise needed to succeed. We use advanced analytics, machine learning, and AI to enable data-driven decisions that drive growth and innovation. As a leader in the data science industry, we collaborate with businesses of all sizes to create innovative solutions that make a difference.</em></p><h3>References</h3><ul><li>Cosimo Albanese, N. (2022, September 19). <em>Topic Modeling with LSA, pLSA, LDA, NMF, BERTopic, Top2Vec: a Comparison</em>. Retrieved from Towards Data Science : <a href="https://towardsdatascience.com/topic-modeling-with-lsa-plsa-lda-nmf-bertopic-top2vec-a-comparison-5e6ce4b1e4a5">https://towardsdatascience.com/topic-modeling-with-lsa-plsa-lda-nmf-bertopic-top2vec-a-comparison-5e6ce4b1e4a5</a></li><li>Deerwester, S., Dumais, S. T., &amp; Furnas, G. W. (1990). Indexing by latent semantic analysis. <em>Journal of the American Society for Information Science</em>, 391–407: <a href="https://asistdl.onlinelibrary.wiley.com/doi/10.1002/%28SICI%291097-4571%28199009%2941%3A6%3C391%3A%3AAID-ASI1%3E3.0.CO%3B2-9">https://asistdl.onlinelibrary.wiley.com/doi/10.1002/%28SICI%291097-4571%28199009%2941%3A6%3C391%3A%3AAID-ASI1%3E3.0.CO%3B2-9</a></li><li>Egger, R., &amp; Yu, J. 2022. A Topic Modeling Comparison Between LDA, NMF, Top2Vec, and BERTopic to Demystify Twitter Posts. <em>Frontiers in Sociology</em>, 7: 886498: <a href="https://www.frontiersin.org/articles/10.3389/fsoc.2022.886498/full">https://www.frontiersin.org/articles/10.3389/fsoc.2022.886498/full</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c16372d51f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/topic-modelling-a-comparison-between-lda-nmf-bertopic-and-top2vec-part-i-3c16372d51f0">Topic Modelling: A Comparison Between LDA, NMF, BERTopic and Top2Vec — Part I</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Topic Modelling with LDA, NMF, Top2Vec and BERTopic]]></title>
            <link>https://medium.com/blend360/introduction-to-topic-modelling-with-lda-nmf-top2vec-and-bertopic-ffc3624d44e4?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/ffc3624d44e4</guid>
            <dc:creator><![CDATA[Aishwarya Bhangale]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 19:25:15 GMT</pubDate>
            <atom:updated>2023-04-14T19:25:15.851Z</atom:updated>
            <content:encoded><![CDATA[<p>BLEND360 — <a href="https://medium.com/u/354634449547">Aishwarya Bhangale</a>, Daphney Valiatingara, <a href="https://medium.com/u/33a79d223b1f">Meet Paradia</a>, <a href="https://medium.com/u/e61fbe1058c7">Kristin (Jiating) Chen</a>, <a href="https://medium.com/u/901772c220b3">Brett Li</a>, <a href="https://medium.com/u/46b4cbe3038e">Jesse Fagan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kHCqRLmsKu2CGxbt" /><figcaption>Photo by <a href="https://unsplash.com/@impatrickt?utm_source=medium&amp;utm_medium=referral">Patrick Tomasso</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>What is Topic Modelling?</strong></h3><p>Natural Language Processing (NLP) uses artificial intelligence to enable computers to understand, interpret and manipulate human language. Topic modeling is one of the most widely used NLP techniques with applications in document retrieval, personalizing content, and identifying trends over time in news or customer reviews.</p><p>Simply by communicating and conducting daily activities such as communicating through email or text, or documenting systems, or preparing reports, businesses around the world produce billions of pages of text data daily. Far more text than any one human can comprehend or track. Topic models are a set of powerful tools for discovering and summarizing great quantities of text quickly and in a way that leads to comprehension and insight. Search engines optimize their search results by capturing topics of millions of web pages and relate them to customers’ search intention, and social media businesses personalize their content based on the topics of each customer’s interest.</p><p>In this article we instead look at four popular, nascent methods of extracting topics from a collection of documents. Topic modeling algorithms assume that every document is either composed from a set of topics (LDA, NMF) or a specific topic (Top2Vec, BERTopic), and every topic is composed of some combination of words. The model will then assess the underlying data to discover “groups” of words that will best describe the document under the given constraints. The resulting output is in the form of two matrices:</p><ul><li>A word-topic matrix, which defines topics as a collection of their word components;</li><li>And document-topic matrix, which defines documents as a collection of their topic components.</li></ul><p>The matrices show the association between documents and the topics, and topics and the words.</p><p>Figure A demonstrates a generalized approach to topic modelling. Many algorithms use a “<em>bag of words</em>” approach where the sequence of words is not considered; every document is a collection of words and the frequency of their occurrence.</p><p>In Figure A, a collection of words from a set of data, or so-called ‘<em>bag of words</em>’ has been allocated to three topics via topic modeling — this process tends to be unsupervised since no actual labels are provided to the topic models. It could also serve as an intermediary process for either feature extraction or classification modeling downstream tasks. Depending on the type of algorithm used, a word may be assigned to multiple topics in differing proportions or assigned to one topic exclusively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONGX5YRrG51YqNeXwyYJqw.png" /><figcaption>Figure A: Working of a Topic Modelling algorithm (Liu, Tang, Dong, &amp; Yao, 2016)</figcaption></figure><h4><strong>A Brief History of Topic Modeling: From LSA to BERTopic</strong></h4><p>Topic Modelling originated in 1990, as a non-probabilistic model named Latent Semantic Analysis (LSA) by Deerwester (Deerwester, Dumais, &amp; Furnas, 1990). An improvement to this, the Probabilistic LSA (pLSA) was developed in 1999 by Hofmann (Hofmann, 1999). pLSA experienced drawbacks associated with scalability and overfitting, as the textual data increased in size. One step beyond pLSA, in 2003, Latent Dirichlet Allocation (LDA) was developed by Blei (Blei, Ng, &amp; Jordan, 2003), which considered Dirichlet distributions in a Bayesian approach. As a probabilistic model, LDA can be extended to more complex models and soon became the most used topic modelling algorithm. Simultaneously, as a variation of LSA, the Non-Negative Matrix Factorization (NMF) algorithm was developed by Lee (Lee &amp; H., 1999), which produced more coherent and interpretable topics over LSA.</p><p>The topic modeling area has been illuminated by the recent evolution of transformers, which has introduced BERTopic and Top2Vec to the community. Transformer-based language models and Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN) enable these algorithms to learn the context of the language and identify high density regions within a document corpora based on their word distributions to deduce the optimal number of topics. The rapid development of computational resources, including Graphics Processing Unit/GPU, empowers efficient execution of these transformer-based topic models.</p><p>LDA, NMF, BERTopic, and Top2Vec have played important roles in the history of topic modeling. Each of these algorithms offers different strengths and weaknesses, and they arrive at their answers in different ways. In this blog post, we will provide a deep dive into these four algorithms.</p><h3><strong>Introduction to Topic Modelling Algorithms</strong></h3><p><strong>Latent Dirichlet Allocation (LDA)</strong></p><p>Latent Dirichlet Allocation (LDA) is an unsupervised technique for uncovering hidden topics within a document. By using Dirichlet distributions, LDA represents documents as distributions of topics and topics as distributions of words based on their frequency in the corpus. LDA assumes that each document contains a mixture of topics, and that each topic is a mixture of words that are associated with each other.</p><p>LDA has two hyperparameters that are tuned over multiple iterations of the algorithm:</p><ul><li><strong>Document-Topic density factor (α)</strong> determines the number of topics in the corpus.</li><li><strong>Topic-Word density factor (β) </strong>determines the number of words assigned to each topic.</li></ul><p>In the first iteration of the algorithm (as shown in Figure B), each word in each document is randomly assigned to a topic. To improve upon this random assignment, the probability of a topic ‘t’ given a document ‘d’ (P(t|d)) and the probability of a word ‘w’ given a topic ‘t’ (P(w|t)) are calculated. Each word is then reassigned to a new topic based on the probability that topic ‘t’ generated word ‘w’ (P(w|t) * P(t|d)). After many iterations, a steady state is reached, where these probabilities remain constant, and LDA converges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VmQKFJQoppICSkh7g1sDHQ.jpeg" /><figcaption>Figure B: LDA Algorithm Flowchart (Ipshita, 2021)</figcaption></figure><p><strong>Non-Negative Matrix Factorization (NMF)</strong></p><p>Non-Negative Matrix Factorization (NMF) is a linear algebra algorithm used to uncover hidden topics by decomposing high-dimensional vectors into non-negative, lower-dimensional representations. Given a normalized TF-IDF matrix as input (with dimensions N x M), NMF outputs two matrices (as shown in Figure C):</p><ul><li>An N x K matrix of words by topics</li><li>A K x M matrix of topics by documents</li></ul><p>Through multiple iterations, NMF optimizes the product of these two matrices until it reaches the original TF-IDF matrix.</p><p>One of the key components of Non-Negative Matrix Factorization (NMF) is the measurement of distances between its elements. This is typically done in one of two ways:</p><ul><li><strong>Generalized Kullback–Leibler divergence - </strong>This metric measures the similarity between two words by quantifying the closeness between their distributions. The closer the value of Kullback–Leibler divergence is to zero, the higher the similarity between the two words.</li><li><strong>Frobenius Norm -</strong> Also known as the Euclidean norm, this metric is calculated by taking the square root of the sum of the absolute squares of the matrix’s elements.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1CGFZyKLyrgk6SrWyLhx8A.jpeg" /><figcaption>Figure C: Matrix Breakdown for NMF (Goyal, 2021)</figcaption></figure><p><strong>Top2Vec</strong></p><p>Top2Vec automatically detects high density areas of documents in its semantic space, the centroids of which are identified as the prominent topics in the corpora. Top2Vec assumes that each document is based on one topic, instead of a mixture of topics. Following are the important steps implemented in this algorithm:</p><ul><li><strong>Word and Vector Embedding -</strong> This step involves transformation of words in the document corpora into a mathematical representation with the help of Doc2Vec, Universal Sentence Encoder or Bidirectional Encoder Representations from Transformers (BERT) Sentence Transformer. With this encoding, semantically similar word vectors lie closer together while dissimilar words will be further apart (an example shown in Figure E).</li><li><strong>Uniform Manifold Approximation and Projection for Dimensionality Reduction (UMAP) - </strong>A non-linear dimensionality reduction algorithm, UMAP learns the structure of the data and finds a lower dimensional space that preserves the topological data structure of that manifold.</li><li><strong>HDBSCAN Clustering -</strong> Able to handle both noisy and variable clusters, HDBSCAN finds dense areas of document vectors and assigns a label to each dense cluster as well as document vectors that fall in less dense spaces, making it more efficient as a clustering technique.</li><li><strong>Centroid Calculation and Topic Assignment -</strong> Each cluster can now be treated as a unique topic. The n-closest words to the topic vector, which is also the cluster centroid, can be used to deduce the subject of the topic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDS7wJWThxLpdsdLY0xqaw.jpeg" /><figcaption>Figure E: Document Semantic Space in Top2Vec (Angelov, 2020)</figcaption></figure><p><strong>BERTopic</strong></p><p>Like Top2Vec, BERTopic uses BERT embeddings and a class-based TF-IDF matrix to discover dense clusters in the document corpora. These dense clusters allow for easily interpretable topics while keeping the most important words in the topic description. Following are the important steps in this algorithm (shown in Figure F):</p><ul><li><strong>Transformer Embedding</strong>: BERTopic supports several libraries (Gensim, Spacy, Sentence Transformers, etc.) to convert text to dense vector embeddings. This text is saved as a 384-dimensional vector.</li><li><strong>UMAP</strong>: UMAP reduces this 384-dimensional vector into a 2- or 3-dimensional embedding.</li><li><strong>HDBSCAN Clustering</strong>: A hierarchical, density-based clustering technique, HDBSCAN identifies and picks high density regions in the document corpora, eventually combining the data points in these regions to form topics and their clusters.</li><li><strong>Topic Extraction with class-based TF-IDF</strong>: This step is where BERTopic majorly differs from Top2Vec. Once dense clusters are identified, BERTopic uses a modified version of TF-IDF, known as class-based TF-IDF, to extract topics. Class-based TF-IDF supplies all documents within a class with the same class vector.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbP0nLAYIvOvVvKuWSrdYA.jpeg" /><figcaption>Figure F: BERTopic Algorithm Flowchart (David, 2021)</figcaption></figure><h3>Conclusion</h3><p>This article introduces the details of the four most representative algorithms in topic modeling. These methods have helped the field develop into a relatively mature stage, enabling practitioners to use them for a variety of business problems. We also provide practical knowledge to implement and compare models in this series.</p><p>If you want to know more, please let us know, comment below and/or send us a message at <a href="/service/mailto:NLP@blend360.com">NLP@blend360.com</a>.</p><p><em>Blend360 co-creates data science solutions with clients to achieve their business goals. Clients are the hero in our story, and we provide the tools and expertise needed to succeed. We use advanced analytics, machine learning, and AI to enable data-driven decisions that drive growth and innovation. As a leader in the data science industry, we collaborate with businesses of all sizes to create innovative solutions that make a difference.</em></p><h3>References</h3><ul><li>Deerwester, S. (1990). <em>Indexing by latent semantic analysis. </em>Retrieved from Asis&amp;t: <a href="https://asistdl.onlinelibrary.wiley.com/doi/abs/10.1002/(SICI)1097-4571(199009)41:6%3C391::AID-ASI1%3E3.0.CO;2-9.">https://asistdl.onlinelibrary.wiley.com/doi/abs/10.1002/(SICI)1097-4571(199009)41:6%3C391::AID-ASI1%3E3.0.CO;2-9</a></li><li>Hofmann, T. (1999). <em>Probabilistic latent semantic analysis. </em>Retrieved from ACM: <a href="https://dl.acm.org/doi/10.5555/2073796.2073829">https://dl.acm.org/doi/10.5555/2073796.2073829</a></li><li>Lee, D. (1999). <em>Learning the parts of objects by non-negative matrix factorization. </em>Retrieved from Nature: <a href="https://www.nature.com/articles/44565">https://www.nature.com/articles/44565</a></li><li>Blei, D. (2003). <em>Latent Dirichlet Allocation. </em>Retrieved from Journal of ML Research: <a href="https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf">https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf</a></li><li>Angelov, D. (2020). <em>Top2Vec: Distributed Representations of Topics</em>. Arxiv.</li><li>Briggs, J. (n.d.). <em>Advanced Topic Modeling with BERTopic</em>. Retrieved from Pinecone: <a href="https://www.pinecone.io/learn/bertopic/">https://www.pinecone.io/learn/bertopic/</a></li><li>David, D. (2021, August 24). <em>NLP Tutorial: Topic Modeling in Python with BerTopic</em>. Retrieved from hackernoon: <a href="https://hackernoon.com/nlp-tutorial-topic-modeling-in-python-with-bertopic-372w35l9">https://hackernoon.com/nlp-tutorial-topic-modeling-in-python-with-bertopic-372w35l9</a></li><li>Goyal, C. (2021, June 26). <em>Part 15: Step by Step Guide to Master NLP — Topic Modelling using NMF</em>. Retrieved from Data Science Blogathon: <a href="https://medium.com/analytics-vidhya/topic-modelling-using-lda-aa11ec9bec13">https://medium.com/analytics-vidhya/topic-modelling-using-lda-aa11ec9bec13</a></li><li>Ipshita. (2021, July 6). <em>Topic Modelling using LDA</em>. Retrieved from Analytics Vidhya: <a href="https://medium.com/analytics-vidhya/topic-modelling-using-lda-aa11ec9bec13">https://medium.com/analytics-vidhya/topic-modelling-using-lda-aa11ec9bec13</a></li><li>Liu, L., Tang, L., Dong, W., &amp; Yao, S. (2016). An overview of topic modeling and its current applications in bioinformatics An overview of topic modeling and its current applications in bioinformatics. <em>SpringerPlus</em>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffc3624d44e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/introduction-to-topic-modelling-with-lda-nmf-top2vec-and-bertopic-ffc3624d44e4">Introduction to Topic Modelling with LDA, NMF, Top2Vec and BERTopic</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Artificial Intelligence and Machine Learning for Better Identity Resolution]]></title>
            <link>https://medium.com/blend360/using-artificial-intelligence-and-machine-learning-for-better-identity-resolution-8aeb2385a16c?source=rss----27b62538c097---4</link>
            <guid isPermaLink="false">https://medium.com/p/8aeb2385a16c</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[identity-resolution]]></category>
            <category><![CDATA[customer-experience]]></category>
            <dc:creator><![CDATA[Blend360]]></dc:creator>
            <pubDate>Thu, 30 Mar 2023 16:34:43 GMT</pubDate>
            <atom:updated>2023-03-30T16:34:43.424Z</atom:updated>
            <content:encoded><![CDATA[<p>Kokila Mallikarjuna, Sr. Director of Strategy &amp; Consulting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsaqRQouIGL1uK4r3Ou-Sw.jpeg" /></figure><p>We all know the bottom line: <em>to successfully cultivate value-based customer relationships, we need to fully know our customers. </em>And that means creating a foolproof SCV<em>―Singular Customer View―</em>that aggregates and unifies all the information we can glean from the vast amount of information that every business organization generates and collects.</p><p>Easier said than done, of course. With varying degrees of success, I have been struggling to build comprehensive and accurate SCVs for over fifteen years. Complete data-driven customer profiles lie at the core of insight-driven, one-to-one client communication, but I must acknowledge that creating them is a necessary evil. Achieving a stable and steady SCV is a constant grind: a bother to build, a challenge to maintain, and a drag to sustain.</p><p>Simply put, building an SCV requires <em>identity resolution,</em> whereby data points from multiple data sources are matched and merged to construct a persistent and accurate view that contains profile, behavioral, transactional, and demographic points of reference. It’s a complex minefield with all sorts of potential problems with data hygiene, data inconsistency, data sprawl, and the challenges of system integration. ID resolution also requires mastering a myriad of unique identifiers such as mobile IDs, device IDs, cookie IDs, and IP addresses, along with known identifiers such as email addresses, phone numbers, and so on.</p><p><strong>A New World in Identity Resolution</strong></p><p>But today, there is cause for optimism. The dawn of <em>Artificial Intelligence and Machine Learning</em> methodologies, AI/ML, is revolutionizing the way we connect and understand customer data. As a result, today we are seeing astonishing progress in identity resolution. AI/ML identity resolution solutions help to tame an organization’s data chaos and build meaningful customer datasets that enable markedly better, insights-driven customer experiences. These solutions allow for more personalized, value-based interactions with customers, making them a wise choice for any organization to consider today.</p><p>In the past, there were few out-of-the-box solutions available to build an SCV. Identity resolution was a manual, laborious process that was prone to errors and omissions. Generally, the process entails onboarding data into a tabular on-premises database and then writing lengthy and complicated SQL codes to match (using one-to-one matching) and merge unique identities across data sources. However, due to the restrictive nature of the tabular format, it was challenging to handle data volumes, variety, and velocity efficiently, and this often led to problems with scalability and data accuracy. This manual solution was clunky and limited in its capabilities, and it crashed all too often. Moreover, no matter how clean the data was, this approach was unable to account for web browsing data, device hopping data, paid media interaction data, customer service data, and other problems.</p><p>It was also hard to identify duplicate profiles and merge them together. For example, a common issue when using a rule-based approach in identity resolution is that if a customer has two email addresses, it appears that there are two different customers when in fact, there is only one. Despite all the time, money, and resources invested in building and using an SCV, there was a constant need to troubleshoot and resolve data glitches. The resulting lack of trust in the system meant that businesses weren’t confident in relying on it for their data needs, creating an obvious barrier to productivity.</p><p><strong>Fast Forward…Indeed, <em>Very </em>Fast Forward</strong></p><p>Today, AI/ML identity resolution is dramatically changing the landscape―offering a powerful, automated, and flexible process to help organizations achieve optimal SCV. This process uses advanced algorithms to identify and match customer records across multiple data sources and data points, a methodology that offers greater flexibility, accuracy, and scalability, and that can handle complex and evolving match-and-merge scenarios.</p><p>AI/ML identity resolution offers multiple advantages over rule-based approaches, among them:</p><p>1. <strong>Greater Accuracy</strong>: AI/ML identity resolution algorithms are more accurate than the rule-based approach since they can continually learn from data patterns and adjust/improve match-and-merge criteria automatically. This results in fewer false positives and fewer false negatives, which enhances the accuracy of SCV.</p><p>2. <strong>Scalability</strong>: The AI/ML approach can handle large volumes of data with ease, which makes it more suitable for organizations that generate such data volumes.</p><p>3. <strong>Flexibility</strong>: This methodology can handle different data types with little data transformations and automatically adapt to changes in data from data sources.</p><p>4. <strong>Better handling of complex scenarios</strong>: Algorithms are proven to handle complex match scenarios such as partial matches, fuzzy matches, and multiple matches more efficiently than traditional approaches. Furthermore, these algorithms continually improve over time rather than being static.</p><p>5. <strong>Reduced maintenance</strong>: AI/ML identity resolution algorithms require less manual intervention and maintenance in the long run, which results in lower costs and reduced complexity.</p><p>‍<strong>Where Do We Go from Here?</strong></p><p>I’ve repeatedly been asked whether the ID graph methodology can do the same thing that the AI/ML approach does. It can’t, and it doesn’t. True, the ID graph methodology is an improvement over the rule-based approach because, instead of traditional tabular and relational databases, it uses graph databases to represent customer identities and their relationships. So yes, graph databases provide more flexibility in linking across multiple data sources. But the ID graph methodology still relies on humans to define match and merge rules based on specific unique identifiers (such as email addresses, phone numbers, etc.). This means that the ID graph methodology will always be limited by the accuracy and completeness of how fallible humans apply the rules.</p><p>As I once did, many of you might have already invested in ID resolution solutions. As a result of the rapidly evolving AI/ML landscape, do not be reluctant to re-evaluate those solutions to ensure that your current investments are delivering on the promise of value-based personalization. It may be time to consider exploring more modern AI/ML-based ID resolution solutions, since these are likely to be more accurate, efficient, and effective than the approaches you currently have in place.</p><p><strong>Knowing How the Sausage Is Made</strong></p><p>Evaluating your ID resolution options these days is a tricky business, and you may be tempted to rely on vendors’ representations about how their sausage is made. Everyone is going to claim perfection. Don’t bite too fast or too hard. Instead, buckle down and do your homework. There is a plethora of vendors in the marketplace offering ID resolution solutions, and that number keeps growing. However, only a handful of them truly applies apply AI/ML methodologies. While most vendors can speak eloquently about <em>what </em>their ID resolution offerings deliver, only a handful can articulate <em>how</em> they solve for it. There’s a lot of snake oil out there. Be sure to do your due diligence when selecting a solution and take advantage of proof-of-concept opportunities to ensure that you understand “how” these solutions meet your needs.</p><p>Moreover, technology that is novel and marvelous this week may be obsolete, or at least ho-hum, next week. So, in addition to being smart about your current decision, it behooves you to keep abreast of news about how tomorrow’s sausage is going to be made. As Winston Churchill reminded us, “perfection is the enemy of progress,” something particularly true in the world of ID resolution.</p><p><strong>Learn More about AI/ML ID Resolution</strong></p><p>At Blend360, our focus is on helping our clients develop and implement effective customer data strategies that build a stable, persistent Single Customer View and drive personalization. As a specialist in Customer Data Strategy, I am confident in our approach and our ability to customize it to meet the unique needs of each client. If you’re interested in learning more about how we can help you optimize your customer data strategy, please don’t hesitate to get in touch with us <a href="https://www.blend360.com/contact">here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aeb2385a16c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/blend360/using-artificial-intelligence-and-machine-learning-for-better-identity-resolution-8aeb2385a16c">Using Artificial Intelligence and Machine Learning for Better Identity Resolution</a> was originally published in <a href="https://medium.com/blend360">Blend360</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>