<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daood Shaheer on Medium]]></title>
        <description><![CDATA[Stories by Daood Shaheer on Medium]]></description>
        <link>https://medium.com/@m.daood.shaheer?source=rss-3f068b1e74dd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8Tf2uPn3_lUOgPZI.jpg</url>
            <title>Stories by Daood Shaheer on Medium</title>
            <link>https://medium.com/@m.daood.shaheer?source=rss-3f068b1e74dd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:00:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@m.daood.shaheer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Exploiting demographic relations through power of LLM’s]]></title>
            <link>https://medium.com/@m.daood.shaheer/exploiting-demographic-relations-through-power-of-llms-430012d879ae?source=rss-3f068b1e74dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/430012d879ae</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[demographics]]></category>
            <category><![CDATA[adtech]]></category>
            <dc:creator><![CDATA[Daood Shaheer]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 21:35:28 GMT</pubDate>
            <atom:updated>2024-02-27T20:52:08.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>ChatGPT beyond Prompting: Exploiting demographic relations with LLM’s</h3><h3>Bird’s-eye view</h3><p>Demographic personalization in AdTech is a pivotal factor in enhancing results and overall experience for both users and advertisers alike. It improves targeting by finding the right users and increasing Return on investment (ROI) for the advertisers. Thus, identification of demographic signals that define user behaviour and interest, and discovering optimum strategies for exploitation of these signals becomes important.</p><p>The idea is to harness L<strong>ocation data, specifically city and region</strong> details, as features into ML model to improve performance. We’ll walk through the challenges faced, different approaches explored, the breakthroughs achieved, and future prospects, showcasing the immense potential of AI in real-world applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wKagXTAE4BMaErXG" /><figcaption>Photo by <a href="https://unsplash.com/@nasa?utm_source=medium&amp;utm_medium=referral">NASA</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Goals !!</h3><p>The primary objective is evident from the outset — to identify the most effective approach for incorporating city data as a feature/signal into the machine learning model, thereby enhancing key advertiser KPI’s, Lifetime Value (LTV) of a user for an advertiser. To achieve this goal, the focus was on unveiling concealed connections between cities, representing user interests across diverse location and regions.</p><p><strong>Step 1</strong> —<strong> Discover the finest approach and techniques for utilising city as a signal/feature and measure impact on model performance to optimise for different business objectives</strong>. And for that purpose — discover hidden connections between cities (representing users interests across different cities). Example of how demographics can influence targeting:</p><blockquote>1) Advertiser X might be more famous in South v/s Advertiser Y in North India.<br>2) Advertiser X, Y might be more famous in Tier 2 &amp; 3 cities v/s Advertiser Z in Tier 1 cities across same advertiser categories (e.g Food delivery apps).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kV8E2xodQAIq_f0o29VbBA.jpeg" /><figcaption><strong>Basic ML Flow + Vector representation of city feature</strong></figcaption></figure><h3>Navigating the Aggregation Problem?</h3><p>As we delved deeper into the problem, we encountered the aggregation problem. <strong>Identifying the right relations between two cities demanded skilful city grouping to enable effective model training</strong>.</p><blockquote><strong><em>The Similarity Problem ??</em></strong></blockquote><p>We often come across data points and wonder how can one be similar to another. Aggregation &amp; dimensionality reduction techniques usually helps in discovering new entities which define <strong>entities of similar type/traits</strong>. Since we’ll be working on textual data, we need to define two things first to get best possible outcome:</p><ol><li><strong>The methodology employed to calculate similarities/aggregation</strong></li><li>The algorithm that will be used to transform text into an embedding, representing the text in a vector space for purpose of modelling</li></ol><blockquote><em>One of the best methods to find relations is through </em><strong><em>Graphs !!</em></strong></blockquote><p><strong><em>What is a graph and what it represents?</em></strong><br>The graph represents co-interactions and relations between data. If we consider a particular ecosystem, a graph generally represents the interaction between two or more entities. <strong>Machine learning models rely upon features. The better these features — the richer, deeper, and more complete they are — the better the ML model, Usually ! ;)</strong><br>And the graphs not only helps us to derive new and more enriched features but represent them in more enriched embeddings space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*W4FsM4tQvvJpnP30rbNpRQ.jpeg" /><figcaption><strong>Feature extraction using Graphs</strong></figcaption></figure><p>Accomplishing feature engineering can be challenging, specially when it comes to finding relationships in data. For e.g, a model may already possess information about a customer intending to purchase a product and, based on that, make predictions for a new customer. <strong><em>However, it might lack the graph component.</em></strong> <strong><em>For instance, the new customer may have coworkers or friends who are existing customers, which could serve as a crucial indicator for why they might make a purchase. Incorporating features derived from the graph can enhance the power and accuracy of models.</em></strong></p><p>A graph algorithm that aids in uncovering relationships in data is the <strong>Deep/Random Walk</strong>. Random Walk technique involves extracting sequences from a graph, and these sequences can be utilized to train a skip-gram model, enabling the learning of node embeddings.</p><p><a href="https://www.analyticsvidhya.com/blog/2019/11/graph-feature-extraction-deepwalk/">Learn How to Perform Feature Extraction from Graphs using DeepWalk</a></p><p>To understand importance of deep walk, it is important to understand word embeddings. <em>The process of translating relationships and network structure into a set of vectors is called node embedding</em>. Encoding entity relationships helps in capturing the context of each data point rather than just focusing on its attributes. <strong>And we all know that context is the King!</strong></p><h3>Leveraging the Power of LLM’s (ChatGPT)</h3><p>This journey was empowered by harnessing the immense potential of ChatGPT, an exceptional LLM. Instead of collecting large corpus of city descriptions and training a graph model (Random/Deep walks) to generate meaningful relations between cities. We harnessed the the power of LLM to find similar cities through prompting…!!</p><blockquote>Prompting is a technique used for both refining Large Language Models (LLMs) and to fine-tune tasks like tasks like text <strong>summarisation, segmentation</strong>, etc.</blockquote><p>Given ChatGPT trained on large corpus of data, it is an excellent source for information retrieval/search. Information retrieval can help in optimising the relation building part of the graph structures without any data gathering and pre-processing required beforehand. There can be two ways of leveraging LLM’s for this task:</p><ol><li>Using existing pre-trained ChatGPT models to fetch similar entities based on specificity.</li><li>Information retrieval with LLM’s and Vector Databases (Lang chain, LlamaIndex, etc) using custom data.</li></ol><p>After conclusive experimentations, we opted for the former! <strong><em>Instead of creating graph dataset and fetching similar cities using random walks, prompting was used to get similar cities and node embeddings generated for each city.</em></strong> Each city (word) is represented by a vector (sentence). To construct these sentences, each city is to be depicted by a group/list of similar cities. Multiple methods, including demographics, tier-based categorization, economic activity, etc., can be employed to group the cities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WdJEIQYI7KUZZIjljujHg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giOwSjnWGWSczxEw-NcA0w.png" /><figcaption><strong>Sample prompting to find similar cities based on given criterion !!</strong></figcaption></figure><blockquote><strong>NOTE: </strong>This is a real old prompt snippet from one of the early models of ChatGPT !!</blockquote><h3>Decoding the World of Embeddings</h3><p>Embeddings proved to be the heart of our project, serving as empirical features that effectively represented each city. These embeddings played a vital role in Natural Language Processing, enabling us to identify relationships between cities based on various characteristics, including demographics and tier categorisations.</p><blockquote>Embedding is a numerical fixed dimension vector representation of a token.</blockquote><p><em>How do we create Word Embeddings? — </em><strong><em>Word2Vec !</em></strong></p><ol><li>Train a simple neural network with a single hidden layer to perform a certain task. But then we’re not actually going to use that neural network for the task we trained it on ! Instead, the goal is actually just to learn the weights of the hidden layer — we’ll see that <strong>these weights are actually the “word vectors” that we’re trying to learn.</strong></li><li>This is similar to training an<strong> auto-encoder</strong> which compress an input vector in the hidden layer, and decompress it back to the original in the output layer. After training it, you strip off the output layer (the decompression step) and just use the hidden layer — it’s a trick for learning good image features without having labeled training data</li><li>We can use <strong>Skip-gram</strong> approach to find nearby words. The network is going to tell us the probability for every word in our vocabulary of being the “nearby word” that we chose</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*P0p-fni3-5tZrBWANLD9iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*pUBTVuwapTp8I4PgpC71jw.png" /><figcaption><strong>Skip-gram algorithm &amp; Embeddings generation</strong></figcaption></figure><p>4. The end goal of all of this is really just to <strong>learn this hidden layer weight. </strong>The output probabilities are going to relate to how likely it is to find each vocabulary word nearby the input word.</p><blockquote><strong><em>If you want to dig deeper into this space:</em></strong><em><br></em><a href="http://mccormickml.com/2016/04/19/word2vec-tutorial-the-skip-gram-model/"><em>http://mccormickml.com/2016/04/19/word2vec-tutorial-the-skip-gram-model/</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaOOfjTIqoBKPUn_LQd_wQ.png" /><figcaption><strong>Final feature representation</strong></figcaption></figure><h3>Results !!</h3><p>The model was evaluated using 2 set of metrics. Offline model performance (Recall) and A/B testing on live ad campaigns. We did observe positive improvements across KPI indicators and advertisers. Results of offline eval for different set of advertisers and aggregation criteria.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cq3I8YizSLfMqw-z8CAM0w.png" /></figure><h3>Conclusion.</h3><p>This data science odyssey has been nothing short of exhilarating. With ChatGPT and powerful embeddings, we successfully unveiled the hidden relationships between cities, offering valuable insights to advertisers and businesses seeking data-driven decision-making.</p><p>This project serves as a testament to the immense potential of data science, showcasing the seamless integration of LLM’s, machine learning models, and innovative approaches.As we venture into uncharted territories, we look forward to uncovering new opportunities and contributing to the ever-evolving field of data science.</p><h3>Future Directions &amp; Optimizations…</h3><p>Looking ahead, we set our sights on optimising the project for even greater impact. Expanding the embeddings, we explored additional dimensions of the data:</p><ol><li><strong>Implementing aggregation strategies over embeddings (mean, max, pooling) to capture relations more effectively</strong>.</li><li>Furthermore, customize the grouping method based on specific advertiser requirements, tailoring marketing strategies to address business objectives.</li></ol><h3>References</h3><ul><li><a href="https://arxiv.org/pdf/1403.6652.pdf">https://arxiv.org/pdf/1403.6652.pdf</a></li><li><a href="https://medium.com/analytics-vidhya/best-nlp-algorithms-to-get-document-similarity-a5559244b23b">https://medium.com/analytics-vidhya/best-nlp-algorithms-to-get-document-similarity-a5559244b23b</a></li><li><a href="https://medium.com/@b.terryjack/nlp-everything-about-word-embeddings-9ea21f51ccfe">https://medium.com/@b.terryjack/nlp-everything-about-word-embeddings-9ea21f51ccfe</a></li><li><a href="https://betterprogramming.pub/llamaindex-how-to-use-index-correctly-6f928b8944c6#:~:text=LlamaIndex%20">https://betterprogramming.pub/llamaindex-how-to-use-index-correctly-6f928b8944c6#:~:text=LlamaIndex</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=430012d879ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brand Audience Segments]]></title>
            <link>https://engg.glance.com/brand-audience-segments-ef3c4fb68563?source=rss-3f068b1e74dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef3c4fb68563</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[adtech]]></category>
            <dc:creator><![CDATA[Daood Shaheer]]></dc:creator>
            <pubDate>Mon, 26 Sep 2022 10:02:56 GMT</pubDate>
            <atom:updated>2023-01-17T08:18:41.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hlj0ZgMrj0Ln8dfZ.jpeg" /></figure><h3>What is Audience Segmentation?</h3><p>Audience segmentation is a process of segregating users into segments based on predefined criteria such as demographics, geography, product usage, and other parameters. In the ad-tech industry, audience segmentation is used for ad targeting.</p><h3>Overview</h3><p><em>Brand Audience Segments are user segments that are aimed at targeting a set of users which shows some affinity for a particular brand cohort. The brand cohorts are high level categories that define a specific target market.</em></p><p>Generally, user-segments are created for targeting a specific advertiser using demographic, geographic and behavioural features of users. <strong><em>Brand audience on other hand, focuses on creating a segment definition that could create a potential seed set for creating look-alike segments for each vertical.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*f_9VMT7z9Yxib_PY.png" /><figcaption><strong><em>Brand Segments Product Cycle</em></strong></figcaption></figure><p>Currently, there are 15 primary vertical (<strong><em>Fashion, Finance, OTT, E-commerce, Automobile, Travel, Ed-tech, CPG, Lifestyle, Food-tech, Health &amp; Fitness, Gaming, Sports, Beauty, Entertainment</em></strong>) for which we’ve created user segments which are divided into sub-categories (<em>High, Medium, Low</em>) based on user affinity scores to deliver more impact based targeting as per demand. Each of these segments can be drilled down into smaller sub-segments based on demographic and geographic requirements such as OEM, region, gender, etc.</p><h3>Problem Statement</h3><p>The primary objective is to create definitions and user segments for targeting users for ad campaigns. The aim is not to create an advertiser level segment but a brand/content cohort level category and find users belonging to these categories. The problem statement can be divided into 2 parts:</p><ul><li>Finding the right content cohort and definition</li><li>Finding the right set of users for targeting for each content cohort</li></ul><p>Also, users should not get recommended for a particular campaign based solely on their past interaction but based on behaviour and preferences. The users segments should be large enough to create sub-segments and rapidly update definitions and supply segments based on the demand.</p><h3>Solution Approach</h3><p>Brand Segments are created using Look-alike modelling technique to build models that aggregate user behaviours and preferences. The goal of a Look-alike model is to find an audience that “looks” similar to a known set of users. Creating a basic Look Alike segment generally involves specifying two pieces of information -</p><ul><li><strong>Seed Set: </strong>Which is set of users should the Look Alike audience be based off of?</li><li><strong>Segment Size: </strong>How large should the audience be? A larger audience means a broader reach, but less overall similarity to your seed set.</li></ul><p>Currently, brand audience segments are build using supervised lookalike modelling approach using user interaction and behaviour data. There are 15 cohort based live segments subdivided into 45 sub-segments.</p><h3>Look-alike Modelling</h3><h4>What is it?</h4><p>Look-alike modelling is a technique for finding similar users from a smaller user set, are quickly revolutionising the online programmatic advertising industry. Look-alike modelling presents an interesting new direction for recommender systems. Traditionally, given a single user, we want to recommend some small number of items for that particular user. For example, this could mean recommending the most relevant movies, news articles, songs, etc. for a single user given their preferences. With look-alike modelling, given a large set of users, we would like to create another, even larger, expanded set of users who have similar behavioural patterns to our input set of users. The datasets in these contexts exhibit extremely sparse feature spaces on a massive scale, so traditionally, the state-of-the-art look-alike models have used pairwise similarities to construct these similar user sets. We can define our objective as follows:</p><ul><li>Assume <strong>u</strong> is a user representation in the form of a feature vector in a <em>d</em>-dimensional space<em>.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*kwcxTHngb5Wfo1nP.png" /><figcaption><strong>Let the initial set of users, called the ‘seed set’.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*KqxCBnM29bcASzof.png" /><figcaption><strong>A second set of users, where typically n &gt;&gt; m.</strong></figcaption></figure><ul><li>Return <em>L </em>⊆ <em>T</em> that includes the users that look like those in <em>S</em> according to some criteria.</li></ul><blockquote><strong><em>Why is it required?</em></strong></blockquote><blockquote><strong><em>Expanded audience</em></strong><em> — Every business needs not only needs to continue growing new customers to achieve success, but also to maintain it. But how do you identify those target groups of new people who will enjoy your products and services? Every company has their “ideal” customers. What could be better than finding users that behave like the potential customers they are already targeting? It is safe to assume that these users would be more receptive than the average user, thus providing a well-targeted audience. These additional users are called the lookalike users.</em></blockquote><blockquote><strong><em>Cold start problem</em></strong><em> — A simple strategy for new consumer acquisition: Use a lookalike audience builder to apply the data characteristics of your most valuable users to identify new audiences. In case of new brand campaigns, we can high level brand audience segments and niche segments to create a new segment that can be used for creating a more targeted audience. For e.g. A collection of high scoring users from Travel category can give a potential seed set/segment for a brand campaign of a new airline company.</em></blockquote><h3>Challenges</h3><ul><li>Look Alike modelling is typically done via a semi-supervised ML method. What this means is that Lookalike models are learned using information about users in the seed set (i.e. <em>positive</em> <em>set</em>), without any consideration for users who do <em>not</em> belong in the seed set (<em>negative</em> <em>labels</em>). In some cases the negative is a random sub-selection of user from the non-positive</li><li>Also, the state-of-the-art look-alike models have used pairwise similarities to construct these similar user sets. One of the key challenges of the similarity-based models is that they do not provide a way to measure the potential value of the users to an advertiser, which is crucial in an advertising context. We propose methods to score users within the expanded audience in a way which relates directly to the business metric that the advertiser wants to optimise. We present three scoring models and show that, through empirical evaluation using real-world, large-scale data, by incorporating the potential value of a user to an advertiser into our scoring model, we can significantly improve the performance of the look- alike models over methods which only use pairwise similarities of users.</li></ul><h3>Data Preparation</h3><ul><li><em>Segment Definition</em> — The aim is to define baseline standard definitions for creating the positive and negative seed sets for the brands segments in accordance with targeting verticals and content cohorts. Each segment is defined by historical interaction with sponsored glances data, glance categories, google categories strongly associated to a particular cohort. Each content cohort for segment generation would be defined by a mapping using the google categories/glance categories, interaction signals.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T5KXsgTbF0C8Oo9K.png" /><figcaption><strong>Sample Brand Segment Definition — Beauty.</strong></figcaption></figure><ul><li><em>Seed Set</em> — Two sets of users are created based on segment definition for a particular brand vertical — <em>Positive Set</em> and <em>Negative Set. </em>A positive set is the set of users that have performed either click, peek type interactions in the past with sponsored campaign glance cards belonging to a particular brand cohort as per the definition created. A negative set is a subset of non-interactive users for the same brand cohort.</li></ul><h3>Feature processing</h3><ul><li><strong>Glance &amp; User Level Aggregated Features</strong> — User interaction aggregated features over categories and glance level statistics features from centralised feature store (CFS) are used inside the user feature vector.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CQIom3qhkL5NZoav.png" /><figcaption><strong>User based features</strong></figcaption></figure><ul><li><strong>Feature Hashing</strong> — Feature hashing projects a set of categorical or numerical features into a feature vector of specified dimension (typically substantially smaller than that of the original feature space). This is done using the hashing trick to map features to indices in the feature vector. It is is a fast and space-efficient way of vectorising features, i.e. turning arbitrary features into indices in a vector or matrix. It works by applying a hash function to the features and using their hash values as indices directly, rather than looking the indices up in an associative array. E.g Thus, if our feature vector is [“cat”,”dog”,”cat”] and hash function is hash(xf)=1, if xf=”cat” and 2, if xf=”dog”. Let us take the output feature vector dimension (N) to be 4. Then output x will be [0,2,1,0]. A single-bit output hash function <em>ξ</em> be used to determine the sign of the update value, to counter the effect of hash collisions. A second hash function <em>ξ</em> is used to determine the sign of a feature&#39;s value, the expected mean of each column in the output array becomes zero because <em>ξ</em> causes some collisions to cancel out. E.g., suppose an input contains two symbolic features <em>f</em>₁ and <em>f</em>₂ that collide with each other, but not with any other features in the same input; then there are four possibilities which, if we make no assumptions about <em>ξ</em>, have equal probability, as listed in the table below. Multiple hash functions can be used to further reduce the risk of collisions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ka9yBs3G4n0FtOM2.png" /></figure><h3>System Architecture</h3><ul><li><strong>Training a two-tier classification model</strong> — The modelling technique used for creating brand segment is a two-level classification model. The model is trained and validated using a tuned Logistic Regression algorithm and performance is compared with a threshold performance score 0.70 AUC. If the model validation score is below the threshold value, a tuned Light-GBM model is used for training and prediction. Generally, it is observed that tuned Light-GBM performs better than an LR based model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UVdMXuhdkNTlC6WY.png" /><figcaption><strong>Model Architecture</strong></figcaption></figure><ul><li><strong>Feature Importance</strong> — Important feature for each brand segment are being captured and recorded for understanding the mapping and updating the segment definition for each cohort. Also, features relevant to each vertical would be helpful in further enhancing the models and building advertiser level user segments within the primary segments.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/0*PFOdP_yASG82e_pR.png" /></figure><ul><li><strong>Prediction</strong> — The model is used to generate user level prediction scores from the classification model for the universal user set. Based on prediction score the user segment is divided into sub-segments to do a more targeted reach. Each segment is divided into high, medium and low propensity sub-segments.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1KAQBnYULFqFg1Hm.png" /></figure><h3>Validation Strategy &amp; Results</h3><p>The brand audience segments validation currently uses two types of validation metrics. One to measure the performance of the model (Offline) and another to measure the performance of live segments (Online). Online measure (CTR) is much better strategy to evaluate segments, but it requires experiment to be running on live users. To understand model results w.r.t to the features we have used offline validation as well. Two types of validation strategy used are:</p><ul><li><strong>Validation Data</strong> — The data is divided into two parts: Training and validation set. The size of the datasets depends on the seed set data size which ranges from 97k-250k positive users and 584k-1 M negative users based on the user interaction density for a particular brand vertical.</li><li><strong>Validation Results</strong> — The model performance for different brand segment varied between the range of 0.69–0.78 validation AUC score. Also, different models were accessed before finalising upon the LR+LightGBM approach as best performing model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y5jyT3q-mz2JKU4E.png" /></figure><h3>Segment Monitoring</h3><p><strong>Segment Size Monitor Dashboard</strong> — A dashboard setup tracks the active number of users in each primary and sub-segment which helps in scaling and updating the segments based on demographic requirement. The dashboard shows 3 user counts against each segment –</p><ol><li>Users [Glance enabled state/DAU used at time of modelling]</li><li>Active_users [Current DAU]</li><li>Spons_active_users [Monetizable DAU — which see atleast 1 sponsored glance in a day].</li></ol><p>We can filter basis segment, sub_segment [high/medium/low], apikey to check OEM level scale. These have been built for both Xiaomi+Samsung user base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fPZdw22qDBpqBGZr.png" /></figure><ul><li><strong>Performance Tracker</strong> — An offline performance tracker is setup to track the segment definitions, size, seed set and overall performance of the live segments (CTR, Clicks, Impressions) which gets updated by the delivery team after every campaign for each particular vertical.</li></ul><h3>Future Work</h3><ul><li><strong>Score Look-alike Audience</strong> — Scoring look-alike audience based on the primary metrics (CTR, Clicks) instead of model accuracy scores will be the primary focus while building v2 of the Brand audience segments.</li><li><strong>Additional Creative Level Features</strong> — More glance level features like dominant colour, primary description, title and cognitive level tags, celebrity, landmark presence would be utilised to build more granular level glance-user level features.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef3c4fb68563" width="1" height="1" alt=""><hr><p><a href="https://engg.glance.com/brand-audience-segments-ef3c4fb68563">Brand Audience Segments</a> was originally published in <a href="https://engg.glance.com/">Glance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>