<?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 Alex Held on Medium]]></title>
        <description><![CDATA[Stories by Alex Held on Medium]]></description>
        <link>https://medium.com/@helloheld?source=rss-a085c7ebee7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EoRDqg2BxYlZp9PXgMnRwQ.jpeg</url>
            <title>Stories by Alex Held on Medium</title>
            <link>https://medium.com/@helloheld?source=rss-a085c7ebee7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:49:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@helloheld/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[Making News Recommendations Explainable with Large Language Models]]></title>
            <link>https://medium.com/data-science/making-news-recommendations-explainable-with-large-language-models-74f119c7e036?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f119c7e036</guid>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 16:02:23 GMT</pubDate>
            <atom:updated>2024-11-30T16:02:23.113Z</atom:updated>
            <content:encoded><![CDATA[<h4>A prompt-based experiment to improve both accuracy and transparent reasoning in content personalization.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ASOYvGGW8pU5E5fVmFfKOw.png" /><figcaption>Deliver relevant content to readers at the right time. Image by author.</figcaption></figure><p>At <a href="https://www.spiegel.de/">DER SPIEGEL</a>, we are continually exploring ways to improve how we recommend news articles to our readers. In our latest (offline) experiment, we investigated whether <a href="https://vickiboykis.com/what_are_embeddings/">Large Language Models</a> (LLMs) could effectively predict which articles a reader would be interested in, based on their reading history.</p><p><strong>Our Approach</strong></p><p>We conducted a study with readers who participated in a survey where they rated their interest in various news articles. This gave us a ground truth of reader preferences. For each participant, we had two key pieces of information: their actual reading history (which articles they had read before taking the survey) and their ratings of a set of new articles in the survey. Read more about this mixed-methods approach to offline evaluation of news recommender systems here:</p><p><a href="https://towardsdatascience.com/a-mixed-methods-approach-to-offline-evaluation-of-news-recommender-systems-7dc7e9f0b501">A Mixed-Methods Approach to Offline Evaluation of News Recommender Systems</a></p><p>We then used the <a href="https://github.com/anthropics/anthropic-sdk-python">Anthropic API</a> to access <a href="https://www.anthropic.com/news/claude-3-5-sonnet">Claude 3.5 Sonnet</a>, a state-of-the-art language model, as our recommendation engine. For each reader, we provided the model with their reading history (news title and article summary) and asked it to predict how interested they would be in the articles from the survey. Here is the prompt we used:</p><pre>You are a news recommendation system. Based on the user&#39;s reading history, <br>predict how likely they are to read new articles. Score each article from 0 to 1000, <br>where 1000 means highest likelihood to read.<br><br>Reading history (Previous articles read by the user):<br>[List of previously read articles with titles and summaries]<br><br>Please rate the following articles (provide a score 0-1000 for each):<br>[List of candidate articles to rate]<br><br>You must respond with a JSON object in this format:<br>{<br>    &quot;recommendations&quot;: [<br>        {<br>            &quot;article_id&quot;: &quot;article-id-here&quot;,<br>            &quot;score&quot;: score<br>        }<br>    ]<br>}</pre><p>With this approach, we can now compare the actual ratings from the survey against the score predictions from the LLM. This comparison provides an ideal dataset for evaluating the language model’s ability to predict reader interests.</p><p><strong>Results and Key Findings</strong></p><p>The findings were impressively strong. To understand the performance, we can look at two key metrics. First, the <a href="https://www.evidentlyai.com/ranking-metrics/precision-recall-at-k">Precision@5</a>: the LLM achieved a score of 56%, which means that when the system recommended its top 5 articles for a user (out of 15), on average (almost) 3 out of these 5 articles were actually among the articles that user rated highest in our survey. Looking at the distribution of these predictions reveals even more impressive results: for 24% of users, the system correctly identified at least 4 or 5 of their top articles. For another 41% of users, it correctly identified 3 out of their top 5 articles.</p><p>To put this in perspective, if we were to recommend articles randomly, we would only achieve 38.8% precision (see previous <a href="https://medium.com/towards-data-science/a-mixed-methods-approach-to-offline-evaluation-of-news-recommender-systems-7dc7e9f0b501">medium article</a> for details). Even recommendations based purely on article popularity (recommending what most people read) only reach 42.1%, and our previous approach using an embedding-based technique achieved 45.4%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8qclsNuoVPOfSPJnfjqcA.png" /><figcaption>Graphic by author</figcaption></figure><p>The graphic below shows the uplift: While having any kind of knowledge about the users is better than guessing (random model), the LLM-based approach shows the strongest performance. Even compared to our sophisticated embedding-based logic, the LLM achieves a significant uplift in prediction accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y67XTMPkDPDDBdSn0ouymQ.png" /><figcaption>Graphic by author</figcaption></figure><p>As a second evaluation metric, we use <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html">Spearman correlation</a>. At 0.41, it represents a substantial improvement over our embedding-based approach (0.17). This also shows that the LLM is not just better at finding relevant articles, but also at understanding how much a reader might prefer one article over another.</p><p><strong>Beyond Performance: The Power of Explainability</strong></p><p>What sets LLM-based recommendations apart is not just their performance but their ability to explain their decisions in natural language. Here is an example of how our system analyzes a user’s reading patterns and explains its recommendations (prompt not shown):</p><pre>User has 221 articles in reading history<br><br>Top 5 Comparison:<br>--------------------------------------------------------------------------------<br><br>Top 5 Predicted by Claude:<br>1. Wie ich mit 38 Jahren zum ersten Mal lernte, strukturiert zu arbeiten (Score: 850, Actual Value: 253.0)<br>2. Warum wir den Umgang mit der Sonne neu lernen müssen (Score: 800, Actual Value: 757.0)<br>3. Lohnt sich ein Speicher für Solarstrom vom Balkon? (Score: 780, Actual Value: 586.0)<br>4. »Man muss sich fragen, ob dieser spezielle deutsche Weg wirklich intelligent ist« (Score: 750, Actual Value: 797.0)<br>5. Wie Bayern versucht, sein Drogenproblem unsichtbar zu machen (Score: 720, Actual Value: 766.0)<br><br>Actual Top 5 from Survey:<br>4. »Man muss sich fragen, ob dieser spezielle deutsche Weg wirklich intelligent ist« (Value: 797.0, Predicted Score: 750)<br>5. Wie Bayern versucht, sein Drogenproblem unsichtbar zu machen (Value: 766.0, Predicted Score: 720)<br>2. Warum wir den Umgang mit der Sonne neu lernen müssen (Value: 757.0, Predicted Score: 800)<br>6. Abitur als Lotterie? (Value: 601.0, Predicted Score: 650)<br>3. Lohnt sich ein Speicher für Solarstrom vom Balkon? (Value: 586.0, Predicted Score: 780)<br><br>Performance Metrics:<br>--------------------------------------------------------------------------------<br>Spearman Correlation: 0.673<br>Precision@5: 0.800<br><br>Claude&#39;s Analysis:<br>--------------------------------------------------------------------------------<br>1. Key patterns in user&#39;s reading history:<br>- Strong interest in social and political issues<br>- Regular engagement with lifestyle and personal development content<br>- Interest in health and wellness topics<br>- Frequent reading of articles about economic and financial matters<br>- Attraction to critical analysis and commentary pieces<br>- Interest in food and cooking content<br><br>2. Scoring explanation:<br><br>Highest scored articles:<br>- &quot;Wie ich mit 38 Jahren zum ersten Mal lernte, strukturiert zu arbeiten&quot; (850) - Aligns with the user&#39;s interest in personal development and lifestyle content<br>- &quot;Warum wir den Umgang mit der Sonne neu lernen müssen&quot; (800) - Matches interest in health and wellness topics<br>- &quot;Lohnt sich ein Speicher für Solarstrom vom Balkon?&quot; (780) - Corresponds to interest in practical advice and economic considerations<br><br>Medium scored articles:<br>- &quot;Man muss sich fragen, ob dieser spezielle deutsche Weg wirklich intelligent ist&quot; (750) - Fits pattern of interest in political commentary<br>- &quot;Wie Bayern versucht, sein Drogenproblem unsichtbar zu machen&quot; (720) - Matches interest in social issues and critical reporting<br>- &quot;Abitur als Lotterie?&quot; (650) - Aligns with interest in educational and social topics<br><br>Lower scored articles:<br>- &quot;Eine Brise Formel 1&quot; (550) - Limited sports content in reading history<br>- &quot;Reizender Absatz&quot; (450) - Less alignment with demonstrated interests<br>- &quot;Hier wird jetzt auf ganz, ganz hohem Niveau gemeckert&quot; (400) - Style and topic less aligned with user preferences<br><br>The scoring prioritizes articles that match the user&#39;s demonstrated interests in social issues, practical advice, and critical analysis while giving lower scores to sports and lighter content that appears less frequently in their reading history.</pre><p>Rather than operating as a black box, the system could articulate why it thinks a particular article might be interesting to a reader: <em>Because you frequently read articles about practical advice and economic matters, you might find this analysis about the cost-effectiveness of balcony solar storage particularly relevant.</em> This kind of transparent reasoning could make recommendations feel more personal and trustworthy.</p><p><strong>Conclusion</strong></p><p>While our results are promising, several challenges need to be addressed. Due to long prompts (hundreds of article summaries per user), the most significant is cost. At about $0.21 per user for a single recommendation run, scaling this to full readerships would be irresponsibly expensive. Testing high-performing <a href="https://ai.meta.com/blog/meta-llama-3-1/">open-source models</a>, could potentially reduce these costs. Additionally, the current implementation is relatively slow, taking several seconds per user. For a news platform where content updates frequently and reader interests evolve sometimes even throughout a single day, we would need to run these recommendations multiple times daily to stay relevant.</p><p>Furthermore, we used a single, straightforward prompt without any prompt engineering or optimization. There is likely (significant) room for improvement through systematic prompt refinement.[1] Additionally, our current implementation only uses article titles and summaries, without leveraging available metadata. We could potentially increase the performance by incorporating additional signals such as reading time per article (how long users spent reading each piece) or overall article popularity. Anyhow, due to high API costs, running iterative evaluation pipelines is currently not an option.</p><p>All in all, the combination of strong predictive performance and natural language explanations suggests that LLMs will be a valuable tool in news recommendation systems. And beyond recommendations, they add a new way on how we analyze user journeys in digital news. Their ability to process and interpret reading histories alongside metadata opens up exciting possibilities: from understanding content journeys and topic progressions to creating personalized review summaries.</p><h4><strong>Thanks for reading 🙏</strong></h4><p>I hope you liked it, if so, just make it clap. Please do not hesitate to <a href="https://www.linkedin.com/in/alex-held-1193b9234/">connect with me on LinkedIn</a> for further discussion or questions.</p><p>As a data scientist at <a href="https://www.spiegel.de/">DER SPIEGEL</a>, I have authorized access to proprietary user data and click histories, which form the basis of this study. This data is not publicly available. All presented results are aggregated and anonymized to protect user privacy while showcasing our methodological approach to news recommendation.</p><h4>References</h4><p>[1] Dairui, Liu &amp; Yang, Boming &amp; Du, Honghui &amp; Greene, Derek &amp; Hurley, Neil &amp; Lawlor, Aonghus &amp; Dong, Ruihai &amp; Li, Irene. (2024). RecPrompt: A Self-tuning Prompting Framework for News Recommendation Using Large Language Models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f119c7e036" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/making-news-recommendations-explainable-with-large-language-models-74f119c7e036">Making News Recommendations Explainable with Large Language Models</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Mixed-Methods Approach to Offline Evaluation of News Recommender Systems]]></title>
            <link>https://medium.com/data-science/a-mixed-methods-approach-to-offline-evaluation-of-news-recommender-systems-7dc7e9f0b501?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dc7e9f0b501</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[notes-from-industry]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 20:32:50 GMT</pubDate>
            <atom:updated>2024-10-11T20:32:50.083Z</atom:updated>
            <content:encoded><![CDATA[<h4>Combining reader feedback from surveys with behavioral click data to optimize content personalization.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p11gAo5g6STZt6wftn0DQQ.png" /><figcaption>Deliver relevant content to readers at the right time. Image by author.</figcaption></figure><p>In digital news, the decision to click on an article is influenced by various factors. From headlines and trending topics to article placement and even a reader’s mood, the complexity behind news consumption is both fascinating and challenging. Considering these different influences leads us to a critical question: how much does a reader’s past behavior shape their current choices?</p><p>At <a href="https://www.spiegel.de/">DER SPIEGEL</a>, we’re addressing this question as we develop a News Recommender System. Our goal is to deliver relevant content to readers at the right time. However, this objective comes with a challenge — how can we effectively evaluate and optimize our system before it goes live? Our solution is a mixed-methods approach to offline evaluation. By combining historical click data with news item preferences gathered through surveys, we’ve developed a methodology that aims to improve how we understand and predict reader behavior. Before we describe the details of this approach, it’s important to understand why traditional offline evaluation methods for news recommender systems can fall short.</p><h4>The Challenge of Evaluating News Recommender Systems</h4><p>Offline evaluation is a critical step in developing recommender systems. They help select the most promising algorithms and parameters before going live. By using historic click data of users, we can assess how well our recommender predicts the items that readers actually choose.[1] But evaluating news recommendation systems is challenging. Most news articles have a short shelf life and user preferences change rapidly based on current events. It’s also difficult to balance user interests, editorial priorities, and ethical considerations.</p><p>Conventional offline evaluations, which typically rely solely on historical click data, can fall short in capturing these factors. They can’t tell us if users actually liked the articles they clicked on, or if they might have preferred an article they didn’t click because they probably never saw it.[1] Moreover, classical approaches are often biased towards non-personalized, popularity-based algorithms.[2]</p><p>Nevertheless, offline experiments seem to be particularly appealing in the research and development phase. Academic research often relies solely on offline experiments, primarily because researchers rarely have access to productive systems for online testing.[3] Offline methods allow to compare a wide range of algorithms cost-effectively, without the need for real-time user interactions.[4] But it is also widely recognized, that online experiments offer the strongest evidence of a system’s performance, as they involve real users performing real tasks. Our approach aims to address this gap, providing robust offline insights that can guide subsequent online testing.</p><h4>Our Approach: Combining User Surveys with Behavioral Data</h4><p>To overcome the limitations of traditional offline evaluations, we’ve developed a mixed-methods approach that combines user surveys with behavioral data analysis. As seen in the paper <em>Topical Preference Trumps Other Features in News Recommendation </em>[5], researchers collected user responses about their topical preferences through surveys to understand their engagement with certain news articles. Inspired by this approach, we are using click histories merged with survey responses, instead of directly asking users for their preferences. Here’s how it works:</p><ol><li><strong>Article Selection</strong>: We developed a method for selecting articles for a survey based on both publish date and recent traffic. This approach ensures a mix of new and still-relevant older articles.</li><li><strong>User Survey</strong>: We conducted a survey with approximately 1,500 <a href="https://www.spiegel.de/">SPIEGEL.de</a> readers. Each participant rated 15 article teasers on a scale from 0 (low interest) to 1000 (high interest), with the option to indicate previously read articles.</li><li><strong>Behavioral Data Analysis</strong>: For each participant, we analyzed their historic click data prior to the survey. <a href="https://arxiv.org/pdf/2308.12767">We converted articles into numeric embeddings to calculate an average user embedding, representing the reader’s global taste</a>. We then calculated the cosine distance between the user preference vector and the embeddings of the articles rated in the survey.[6]</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFo1YVJrS9qd2HiVwjZB_A.png" /><figcaption>Screenshot of user survey.</figcaption></figure><p>Throughout the process, we identified several parameters that significantly impact the model’s effectiveness. These include: the types of articles to include in the click history (with or without paywall), minimum reading time threshold per article, look-back period for user click history, choice of embedding model, what/how content gets embedded, and the use of overall visits per article for re-ranking. To assess our approach and optimize these parameters, we used two primary metrics: the <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html">Spearman Correlation Coefficient</a>, which measures the relationship between article ratings and distances to the user preference vector; and <a href="https://www.evidentlyai.com/ranking-metrics/precision-recall-at-k">Precision@K</a>, which measures how well our models can place the highest-rated articles in the top K recommendations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtdUGRy-c7JuWebg8G4zhA.png" /><figcaption>Comparing the top-5 articles from the survey to different sorting methods. Image by author.</figcaption></figure><p>To explain our evaluation approach, we can think of four lists of the same articles for each user, each sorted differently:</p><ul><li><strong>Survey Ratings</strong>: This list represents our <em>ground truth</em>, showing the actual ratings given by a user in our survey. Our modeling approach aims to predict this list as good as possible.</li><li><strong>Random Sort</strong>: This acts as our <em>baseline</em>, simulating a scenario where we have no information about the user and would guess their news item preferences randomly.</li><li><strong>Overall Reach</strong>: This list is sorted based on the overall popularity of each article across all users.</li><li><strong>User Embedding</strong>: This list is sorted based on the cosine distance between each rated article and the user’s average embedding. The parameters for this approach are optimized through grid search to achieve the best performance.</li></ul><p>By comparing these lists, we can evaluate how well our user embedding approach performs compared to both the ground truth and simpler methods like random selection or popularity-based sorting. This comparison allows us to quantify the effectiveness of our personalized recommendation approach and identify the best set of parameters.</p><h4>Results and Key Findings</h4><p>Our mixed-methods approach to offline evaluation shows promising results, demonstrating the effectiveness of our recommendation system. The random baseline, as expected, showed the lowest performance with a precision@1 of 0.086. The reach-based method, which sorts articles based on overall popularity, showed a modest improvement with a precision@1 of 0.091. Our personalized model, however, demonstrated significant improvements over both the random baseline and the reach-based method. The model achieved a precision@1 of 0.147, a 70.7% uplift over the random baseline. The performance improvements persist across different k values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LdfmQYoJMcw9YqjvfrUCDw.png" /></figure><p>Another example: if we randomly select 5 from the 15 article teasers shown and compare these with the 5 best-rated articles of a user, we have an average precision of 5/15 = 33%. Since not every user actually rated 15 articles (some marked items as already read), the actual Precision@5 in our data is 38% (see upper chart). The average Precision@5 for the personalized model is 45%. Compared to the random model, this is an uplift of 17% (see lower chart). Note: As K increases, the probability that randomly relevant elements are included in the recommendation set also increases. Convergence to perfect precision: If K reaches or exceeds 15 (the total number of relevant elements), every method (including the random one) will include all relevant elements and achieve a precision of 1.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcDWGT01EaYwb7Bewz2X6A.png" /></figure><p>Besides Precision@K, the Spearman correlation coefficients also highlight the strength of our personalized approach. Our model achieved a correlation of 0.17 with a p-value less than 0.05. This indicates an alignment between our model’s predictions and the actual user preferences.</p><p>The described results suggest that there is a correlation between the item ratings and distances to the user preference vector. Although the precision is at a fairly low level for all models, the uplift is quite high, especially at low K. Since we will have significantly more than 15 articles per user in our candidate pool in productive operation, the uplift at low K is of high importance.</p><h4>Conclusion</h4><p>While our mixed-methods offline evaluation provides a strong foundation, we recognize that the true test comes when we go live. We use the insights and optimized parameters from our offline evaluation as a starting point for online A/B testing. This approach allows us to bridge the gap between offline evaluation and online performance, setting us up for a more effective transition to live testing and iteration.</p><p>As we continue to refine our approach, we remain committed to balancing technological innovation with journalistic integrity. Our goal is to develop a news recommender system where personalized recommendations are not only accurate but also <a href="https://www.semanticscholar.org/paper/Diversity%2C-Serendipity%2C-Novelty%2C-and-Coverage-Kaminskas-Bridge/0a2a1bfeea7a572a78cd12a79f3b00911aa9bba4">ranked for diversity</a>. This ensures that while we are optimizing for individual preferences, we also maintain a broad spectrum of perspectives and topics, upholding the standards of comprehensive and unbiased journalism that <a href="https://www.spiegel.de/">DER SPIEGEL</a> is known for.</p><h4>Thanks for reading 🙏</h4><p>I hope you liked it, if so, just make it clap. Please don&#39;t hesitate to <a href="https://www.linkedin.com/in/alex-held-1193b9234/">connect with me on LinkedIn</a> for further discussion or questions.</p><p>As a data scientist at <a href="https://www.spiegel.de/">DER SPIEGEL</a>, I have authorized access to proprietary user data and click histories, which form the basis of this study. This data is not publicly available. All presented results are aggregated and anonymized to protect user privacy while showcasing our methodological approach to news recommendation.</p><h4>References</h4><p><a href="#_ftnref1">[1]</a> Garcin, Florent &amp; Faltings, Boi &amp; Donatsch, Olivier &amp; Alazzawi, Ayar &amp; Bruttin, Christophe &amp; Huber, Amr. (2014). Offline and online evaluation of news recommender systems at swissinfo.ch. RecSys 2014 — Proceedings of the 8th ACM Conference on Recommender Systems.</p><p><a href="#_ftnref3">[2]</a> Cremonesi, Paolo &amp; Koren, Yehuda &amp; Turrin, Roberto. (2010). Performance of recommender algorithms on top-N recommendation tasks. RecSys’10 — Proceedings of the 4th ACM Conference on Recommender Systems.</p><p>[3] Castells, Pablo &amp; Moffat, Alistair. (2022). Offline recommender system evaluation: Challenges and new directions. AI Magazine.</p><p><a href="#_ftnref4">[4]</a> Janzen, Noah &amp; Gedikli, Fatih. (2023). NewsRecs: A Mobile App Framework for Conducting and Evaluating Online Experiments for News Recommender Systems.</p><p>[5] Knudsen, Starke, Trattner. (2023). Topical Preference Trumps Other Features in News Recommendation: A Conjoint Analysis on a Representative Sample from Norway Conference. Association for Computing Machinery (ACM) RecSys ’23.</p><p><a href="#_ftnref5">[6]</a> Rosnes, Daniel &amp; Starke, Alain &amp; Trattner, Christoph. (2024). Shaping the Future of Content-based News Recommenders: Insights from Evaluating Feature-Specific Similarity Metrics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dc7e9f0b501" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/a-mixed-methods-approach-to-offline-evaluation-of-news-recommender-systems-7dc7e9f0b501">A Mixed-Methods Approach to Offline Evaluation of News Recommender Systems</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Digital Map of DER SPIEGEL’s 2023 Journalism]]></title>
            <link>https://medium.com/@helloheld/a-digital-map-of-der-spiegels-2023-journalism-efa4ca5b072f?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/efa4ca5b072f</guid>
            <category><![CDATA[nomic]]></category>
            <category><![CDATA[digital-journalism]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 14:56:56 GMT</pubDate>
            <atom:updated>2023-12-28T14:56:56.704Z</atom:updated>
            <content:encoded><![CDATA[<p><em>To directly access the interactive map, </em><a href="https://atlas.nomic.ai/map/10e2f911-fc34-4469-aac0-f57dfa22daff/6a705f3f-473f-43e6-a571-0b825d65afe1?xs=-41.82115&amp;xf=42.70796&amp;ys=-24.44330&amp;yf=25.62278"><em>click here</em></a><em>.</em></p><p>21,432,901 words — some of them printed in our weekly magazine, and the entirety <a href="https://www.spiegel.de/">available online</a>. This is the number of words <a href="https://www.spiegel.de/">DER SPIEGEL</a> published throughout the year, a number that hasn’t changed much over the last decade. Devoting five hours daily to reading in 2023 would be required to cover every published word, and this doesn’t include our podcasts, stories, videos, and audio content. Even our most engaged 1% of subscribers spend half this time with our content daily. While some tech companies harvest our articles to feed their data-hungry language models, it’s unlikely any of our actual readers have fully digested every written word produced over the year. Going back to the 1980s, our tree-based magazine used to have around one million words over the course of one year. This vast corpus is the result of countless hours of work from our editorial teams and contributors.</p><blockquote><em>Sit now, and watch the words.</em></blockquote><blockquote><em>Open the window and let each article in. Let them flow into the room in a stream, all of the words, hundreds of thousands of them, let them fill the space, let them hang in the air, tiny sparkling motes of language. Let them drift, and organize. Let them be carried by eddies of usage and syntax until they find a place to rest. When they’ve settled, when they’ve coated every surface like ash, get up and walk the room, see each word and its neighbors, read the room like a map.</em></blockquote><blockquote><em>Jer Thorp, Living in Data (2021)</em></blockquote><p>This room of words is imaginary, but the map of meaning that defines it is real. <a href="https://medium.com/@helloheld/using-openai-and-machine-learning-to-discover-news-topic-preferences-57fe5f383244">I converted DER SPIEGEL’s textual output into computable numbers</a>. With the help of large language models, each article is assigned a vector that denotes its spatial relationship to other articles in the corpus. Such vectors are foundational to the emerging <a href="https://arxiv.org/abs/2106.08934">news recommendation systems</a> that <a href="https://arxiv.org/abs/2106.08934">numerous publishers are adopting</a>, set to change how readers interact with and perceive news platforms. Large language models play a pivotal role in this evolution, offering sophisticated and user-friendly methods to comprehend both content and user preferences. At the heart of these models are <a href="https://vickiboykis.com/what_are_embeddings/">embeddings</a>, which transform unstructured text into computable data, which then can be turned into (interactive) visualizations, rendering the vast array of content we produce more tangible to all, inside and outside of DER SPIEGEL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mq6gHwJjttQdkKU-eVCbGw.png" /><figcaption>Interactive Map of DER SPIEGEL’s 2023 Publications (Screenshot)</figcaption></figure><p><a href="https://atlas.nomic.ai/map/10e2f911-fc34-4469-aac0-f57dfa22daff/6a705f3f-473f-43e6-a571-0b825d65afe1?xs=-45.42236&amp;xf=48.67829&amp;ys=-25.46366&amp;yf=27.45708">Map of DER SPIEGEL Articles (2023) | Atlas</a></p><blockquote><em>Sit now, and watch the words.</em></blockquote><blockquote><em>Near the door, there’s a gathering of technology-related articles: topics like OpenAI, artificial intelligence, ChatGPT, and TikTok mingle with mentions of Elon Musk, Twitter, Apple and smartphones. Look upwards to the ceiling, and you’ll notice terms like mobility, SUVs, battery production, alongside energy infrastructure, car industry and Tesla. Directly beneath your seat, you’ll discover an array of articles on German politics, with elections densely grouped together. Close to the window, there’s a section dedicated to politicians, flanked by discussions about various political parties and controversies.</em></blockquote><p>In this room, each article has naturally gravitated towards those with similar themes, creating a unique spatial organization based on affinity. Sit now, and watch the words. You will probably find yourself in good company, recognizing familiar articles from your year’s reading, each a reflection of your interests and knowledge. You may also come across articles and topics you have missed amidst the endless flow of information. This is where news recommender systems can come in, as they guide you to content that aligns with your interests yet expands your horizons.</p><h3>On a technical note</h3><p>To create the interactive map, I used <a href="https://atlas.nomic.ai/map/10e2f911-fc34-4469-aac0-f57dfa22daff/6a705f3f-473f-43e6-a571-0b825d65afe1?xs=-41.82115&amp;xf=42.70796&amp;ys=-24.44330&amp;yf=25.62278">Nomic Atlas</a>, a platform designed to provide algorithms for dimensionality reduction, clustering, labeling and visualization. Initially, raw text or, in our scenario, preprocessed embeddings (<a href="https://medium.com/@helloheld/using-openai-and-machine-learning-to-discover-news-topic-preferences-57fe5f383244">read below for more context</a>), are fed into their system.</p><p><a href="https://medium.com/@helloheld/using-openai-and-machine-learning-to-discover-news-topic-preferences-57fe5f383244">Using OpenAI and Machine Learning to Discover News Topic Preferences</a></p><p>Currently tailored for the English language, I employed the <a href="https://platform.openai.com/docs/api-reference">OpenAI completion API</a> to generate custom labels. By submitting articles summaries of each cluster back to the API, I could create labels that accurately reflected the content. <a href="https://atlas.nomic.ai/map/10e2f911-fc34-4469-aac0-f57dfa22daff/6a705f3f-473f-43e6-a571-0b825d65afe1?xs=-41.82115&amp;xf=42.70796&amp;ys=-24.44330&amp;yf=25.62278">Nomic Atlas</a> generously incorporated these custom labels manually — a feature I hope will become automated in the future. The platform also allows for various metadata, such as text length, editorial department, or their inherent cluster labels, to be overlaid as a color layer to enhance the visualization. Due to the custom labels, I encountered some problems with the visualization legend displaying incorrect data. Nonetheless, the tool is exceptionally valuable for exploring textual data both fast and deep. When paired with a Large Language Models, Nomic becomes an even more powerful instrument for analysis.</p><h3>Thanks for reading!</h3><p>I hope you liked it, if so, just make it clap. Please don’t hesitate to <a href="https://de.linkedin.com/in/alex-held-1193b9234">reach out</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiWmOt3phhmXD3z_fNXPFA.jpeg" /><figcaption>My well-used copy of Living in Data (2021) by Jer Thorp</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efa4ca5b072f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using OpenAI and Machine Learning to Discover News Topic Preferences]]></title>
            <link>https://medium.com/@helloheld/using-openai-and-machine-learning-to-discover-news-topic-preferences-57fe5f383244?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/57fe5f383244</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[new-digital]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 15:25:45 GMT</pubDate>
            <atom:updated>2023-12-14T15:32:30.102Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: This is a (kind of personal) project to get deeper into LLMs. I’m working with DER SPIEGEL, and we&#39;re currently working towards a News Recommender System. This is definitely not its actual architecture.</em></p><p>Since the launch of DER SPIEGEL’s bookmarking feature two years ago, I have gathered more than 240 articles on my personal list, representing a rich history of what content I have found appealing. Can we use OpenAI to get a better understanding of what topics drive my attention? I came up with a four-step plan, described briefly below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOZ8bBp8dCluhGHVcdRWDQ.png" /></figure><h3>1. News articles as data source</h3><p>To initiate this project, I needed to access my personal bookmarks from <a href="https://www.spiegel.de/">DER SPIEGEL</a>. By simply right-clicking and downloading the <a href="https://www.spiegel.de/fuermich/merkliste">bookmarking page’s</a> HTML file and <a href="https://chat.openai.com/">prompting GPT-4</a>, I crafted a Python script to extract all article IDs from my bookmarks into a text file. Here are some examples of my bookmarked articles (in German):</p><pre>Petition an Olaf Scholz: »Die Hamas muss weg, aber nicht so«<br>Seit dem Angriff auf Israels Süden vermisst Yotam Kipnis zehn Familienmitglieder, darunter seine Eltern. Doch er findet, die Bewohner Gazas sollten nicht dafür leiden. Er hofft, dass Deutschland vermittelt.<br>----------------------------------------------------------------------------------------------------<br>Insekten zum Essen: »Heuschrecken sind wertvoller als Kaviar«<br>Grashüpfer, Käfer, Ameisen: Mit Proteinen aus Insekten ließe sich die Weltbevölkerung klimaschonend sattbekommen. In Thailand boomt das Geschäft bereits – wie schafft es der Trend nach Europa?<br>----------------------------------------------------------------------------------------------------<br>Geopolitische Perspektive: So blickt der Süden auf den Nahen Osten<br>Vielen Menschen in Afrika, Asien und Lateinamerika ist längst nicht klar, wer im Konflikt zwischen Palästinensern und Israel Opfer ist und wer Täter. Dem Westen wird Doppelmoral im Umgang mit Menschenrechten vorgehalten.<br>----------------------------------------------------------------------------------------------------<br>Manipulierte Trainingsdaten: Forscher entwickeln digitale Giftspritze für KI<br>Bisher versuchen Künstlerinnen und Autoren, sich juristisch gegen Firmen zu wehren, die ungefragt ihre Werke zum KI-Training verwenden. Nun gibt es ein Tool zur radikaleren Gegenwehr.<br>----------------------------------------------------------------------------------------------------<br>Neue Studie: Warum Immobilien heute erschwinglicher sind als vor 40 Jahren<br>Ein eigenes Haus oder eine eigene Wohnung? Davon fühlen sich viele Normalverdiener weit entfernt. Dabei rechnet ein Ökonom nun vor, dass die Finanzierung der Kaufpreise eigentlich günstiger ist als noch in den Achtzigerjahren.<br>----------------------------------------------------------------------------------------------------</pre><h3>2. Vector representation via OpenAI</h3><p>I converted all SPIEGEL articles from my bookmarks into vector representations using the <a href="https://platform.openai.com/docs/guides/embeddings/">OpenAI API</a>. The API provides embeddings that can serve as quantitative input for any machine learning algorithm. Embeddings are a form of language representation where words or phrases are mapped to vectors of real numbers, making it easy for machines to process it. You essentially make text computable, turning any word or text into a high-dimensional numeric space. Texts with similar content are represented by more similar numbers. With this numeric representation at hand, you can start computing distances and compare pieces of text. (To get a deeper understand of what embeddings are, I recommend Vicky Boykis’s <a href="https://vickiboykis.com/what_are_embeddings/">deep-dive into machine learning embeddings</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4CmBHVXNJBTcNUADS1lOg.png" /></figure><p>For my use case, each SPIEGEL article’s title, headline, and teaser (which acts as a brief summary) are inputted into the API, which then returns a vector of 1536 dimensions (numbers). Costs for getting the data via API lie under $1 for 75,000 articles and processing took about 3–4 hours. The resulting embedding data is about 2.6 gigabytes. Note: Article data is sourced from our internal database, but I’m confident it’s straightforward to script the extraction of necessary information from the texts HTML.</p><pre>df[&quot;combined&quot;] = (&quot;title: &quot; + df.title.str.strip() + &quot;; heading: &quot; + df.heading.str.strip() + &quot;; intro: &quot; + df.intro.str.strip())<br>df[&quot;embedding&quot;] = df.combined.apply(lambda x: client.embeddings.create(x, engine=&quot;text-embedding-ada-002&quot;))</pre><p>Once the text data is transformed into numeric vectors, we can use the t-SNE algorithm to reduce the data onto two dimensions, to be able to visualize it. Each dot is an article, the closer two dots are, the closer their meanings are. Editorial departments are represented by colors. This is how a sample of 10,000 articles from DER SPIEGEL looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygD30Ig8HuSZ1ccwAH3A4g.png" /></figure><p>Although information on editorial departments have not been used for generating embeddings, we still see groups of articles from the same departments being closer together in this two-dimensional space. Anyway, there are some outlier articles, being far away from their actual clusters. For example, the highlighted article from Kultur is in the center of Sports, this is because it is actually written by our cultural department but content is about Basketball (<a href="https://www.spiegel.de/kultur/tv/basketball-wm-deutscher-triumph-bringt-dem-zdf-top-quote-a-406f0930-5009-4428-8d80-626930f4f5f6"><em>WM-Gold: Deutscher Basketball-Triumph bringt dem ZDF Topquote</em></a>).</p><h3>3. Cluster analysis with KMeans algorithm</h3><p>Now I reduce this long list of SPIEGEL articles to the ones from my bookmarks. After selecting the according embeddings, KMeans clustering algorithm can be applied to sort articles into groups based on vector similarity. I came up with eight clusters, which seem to show good results. Additionally, I tracked down the distance between each article and its cluster centroid to know how well an article fits into its cluster (this is helpful for the next step).</p><pre>n_clusters = 8<br>kmeans = KMeans(n_clusters, init=&quot;k-means++&quot;)<br>kmeans.fit(matrix)<br>labels = kmeans.labels_<br><br>distances = kmeans.transform(matrix)<br>cluster_distances = distances[np.arange(len(matrix)), labels]<br><br>filtered_spon_embeddings[&quot;Cluster&quot;] = kmeans.labels_<br>filtered_spon_embeddings[&quot;distance_from_center&quot;] = cluster_distances</pre><h3>4. Cluster labeling via OpenAI</h3><p>Once clusters are formed, their interpretation is necessary for meaningful analysis. The <a href="https://platform.openai.com/docs/guides/text-generation/chat-completions-api">OpenAI API</a> is utilized again to generate descriptive labels for each cluster. A prompt is sent to the <a href="https://platform.openai.com/docs/guides/text-generation/chat-completions-api">GPT-4 completion API</a> with the question, “What do these articles have in common?” followed by the teaser texts of five articles from the cluster, sorted by distance to the cluster center.</p><pre># Selecting articles from the cluster<br>reviews = &quot;\n&quot;.join(<br>    filtered_spon_embeddings[filtered_spon_embeddings.Cluster == i]<br>    .sort_values(&quot;distance_from_center&quot;, ascending=True).head(rev_per_cluster)<br>    .combined.str.replace(&quot;Title: &quot;, &quot;&quot;)<br>    .str.replace(&quot;\n\nContent: &quot;, &quot;:  &quot;)<br>    .values<br>)<br><br># Generating a prompt for the OpenAI API<br>response = client.chat.completions.create(<br>    model=&quot;gpt-4&quot;,<br>    messages=[<br>        {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a helpful assistant designed to find common topics for multiple news articles. The response should be a 1-3 words (topic labels) that describes the similarities between the given articles.&quot;},<br>        {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: f&#39;Was haben die folgenden Nachrichten-Artikel gemeinsam? \n\nNachrichten-Artikel:\n&quot;&quot;&quot;\n{reviews}\n&quot;&quot;&quot;\n&#39;},<br>        ],<br>    temperature=0,<br>    max_tokens=64,<br>    top_p=1,<br>    frequency_penalty=0,<br>    presence_penalty=0,<br>)</pre><p>See the results for the eight clusters down below, accompanied by cluster labels and five exemplary articles. (I can truly say, that these topics represent some of my interest pretty well.)</p><pre>Cluster 0: Literatur, Interviews, Kultur<br>»Ein Roman kann wahrer sein als die Wirklichkeit«:   SPIEGEL-Gespräch mit Stuckrad-Barre<br>Der König von Ficki-Kacka-Pupsi-Land:   »Last Exit Schinkenstraße« von Heinz Strunk<br>Ein Buch in vier Kapiteln – Feuer, Wasser, Erde, Luft:   SPIEGEL Bestseller – Mehr Lesen mit Elke Heidenreich<br>»Ich wollte diesen Preis nicht«:   SPIEGEL-Gespräch mit Annie Ernaux<br>»Ich bin ein Gartenschlauch«:   Neue Doku über Carlos Santana<br>----------------------------------------------------------------------------------------------------<br>Cluster 1: Ernährung, Nachhaltigkeit, Lebensmittelindustrie<br>»Vor vegetarischen Würstchen kann man nur warnen«:   SPIEGEL-Event zum Kampf ums Essen<br>»Heuschrecken sind wertvoller als Kaviar«:   Insekten zum Essen<br>Die Lebensmittelretter:   Mit KI und Lastenrad gegen Verschwendung<br>Warum die Fast-Food-Riesen plötzlich wieder boomen – und keiner dort Salat essen will:   McDonald’s, Burger King und Co.<br>Bei Nestlé geht jetzt die Angst um:   Umstrittener Lebensmittelmulti<br>----------------------------------------------------------------------------------------------------<br>Cluster 2: Heizungsgesetz, Energiewende<br>Was das neue Heizungsgesetz für Hauseigentümer und Mieter bedeutet:   Abstimmung im Bundestag<br>Fernwärme statt Wärmepumpe – für viele Haushalte ist das die Heizung der Zukunft:   Energiewende<br>Staat fördert klimafreundliche Heizungen mit bis zu 70 Prozent:   Erste Details nach Einigung der Ampel<br>Was das Heizungsgesetz für Hauseigentümer und Mieter bedeutet:   Finaler Entwurf<br>Nachfrage nach Wärmepumpen und Dämmsystemen geht drastisch zurück:   Mögliche Folge von Heizungsgesetz<br>----------------------------------------------------------------------------------------------------<br>Cluster 3: Klimakrise<br>Es ist (wahrscheinlich) noch nicht zu spät:   Abschlussbericht des Weltklimarates<br>Taugt das Reisen noch zum Angeben?:   Urlaub in Zeiten der Klimakrise<br>Die »Oh Shit«-Momente häufen sich:   Mitten in der Klimakrise<br>Das Jahr der Klima-Anomalien:   Hitze, Dürre und Feuer 2023<br>Wie lange glühen die Alpen noch?:   Die Dolomiten in der Klimakrise<br>----------------------------------------------------------------------------------------------------<br>Cluster 4: Geopolitische Konflikte<br>So blickt der Süden auf den Nahen Osten:   Geopolitische Perspektive<br>»Wir wissen nicht, was wir tun sollen. Es gibt überall Verletzte«:   Explosion in Dschabalia<br>Warum der Westen jetzt Armenien schützen muss:   Konflikt in Bergkarabach<br>»Die Hamas muss weg, aber nicht so«:   Petition an Olaf Scholz<br>Alles auf Rückzug:   Bundeswehr in Mali<br>----------------------------------------------------------------------------------------------------<br>Cluster 5: Kindererziehung, Mediennutzung, Elternschaft<br>»Kinder sind viel robuster und kompetenter, als wir sie heute sein lassen«:   Familienforscher über Fehler in der Erziehung<br>Kinder, die auf Bildschirme starren:   Fernsehen, Handy, Spielkonsole<br>»Auf das, was nach der Geburt kommt, sind Eltern nicht vorbereitet«:   Hebamme über das Wochenbett<br>Kinder unter drei sollten nie vor Bildschirmen sitzen:   Ärztin über Medienkonsum<br>Smart ohne Phone?:   Kein Handy in der Kindheit<br>----------------------------------------------------------------------------------------------------<br>Cluster 6: Finanzen, Investitionen, Markttrends<br>Wer von der Elektrowende profitiert:   Aktien von Autoherstellern<br>Deutsche verschlafen Milliarden an Zinsen:   Weltspartag<br>Wo Sie jetzt wieder Zinsen auf Ihr Geld bekommen:   Bis zu vier Prozent<br>Und plötzlich ist Golf richtig aufregend:   Fusion der Profitouren<br>Strom zum garantierten Billigpreis von 15 Cent – kann das klappen?:   Angriff am Energiemarkt<br>----------------------------------------------------------------------------------------------------<br>Cluster 7: Künstliche Intelligenz<br>»Unsere KI baut keine Bomben«:   OpenAI-Chef<br>Eine KI, die lieber pöbelt, als Fragen zu beantworten:   Satiremagazin startet DeppGPT<br>»Wir werden nicht auf den KI-Zug aufspringen«:   Chefin der Signal-App<br>Forscher entwickeln digitale Giftspritze für KI:   Manipulierte Trainingsdaten<br>Ist Ihre Arbeit wirklich unersetzlich?:   Unterschätzte KI-Revolution<br>----------------------------------------------------------------------------------------------------</pre><h3>Bonus: Identifying articles similar to each cluster</h3><p>As an additional layer of analysis, the derived cluster centroids are used as reference points to find similar, yet unread, articles from DER SPIEGEL corpus. A <a href="https://community.openai.com/t/embeddings-utils-distance-formulas-where-did-it-move/479868/3">cosine similarity search</a> is conducted among a new set of articles, comparing their embeddings to the centroids (average embedding of articles from cluster), and articles with the highest similarity scores are selected. This gives me personalized recommendations for future reading based on my identified topics of interest. Find below three article recommendations for each cluster:</p><pre>Cluster 2: Heizungsgesetz, Energiewende<br>Einigung im Haushaltsausschuss: So viel Förderung soll es ab 2024 für Heizungstausch und Dämmung geben<br>Hybridheizung für Altbauten: Wärmepumpe plus Gaskessel – lohnt sich das?<br>Energiepreisbremsen auf der Kippe: Für wen Strom und Gas bald teurer werden könnten<br>====================================================================================================<br>Cluster 4: Geopolitische Konflikte<br>Israel und die Hamas: Warum ich in Deutschland nicht mehr über den Nahostkrieg spreche<br>Krieg in Israel und Gaza: Die Katastrophe im Gazastreifen muss gestoppt werden<br>Tote und Verletze nach Angriff auf Chan Junis: »Es gibt keinen sicheren Ort«<br>====================================================================================================<br>Cluster 5: Kindererziehung, Mediennutzung, Elternschaft<br>Wenn Eltern sich trennen: Wie sagen wir es den Kindern?<br>Bewusstseinsforschung: Wie fühlt es sich an, ein Baby zu sein?<br>Medizin: Zu klein für diese Welt<br>====================================================================================================<br>Cluster 7: Künstliche Intelligenz<br>Ein Jahr ChatGPT: Wann wird aus dem Werkzeug eine Kreatur?<br>Künstliche Intelligenz: KI-Angstmacher sind die nützlichen Idioten der Konzerne<br>Spekulationen über OpenAI-Projekt: Künstliche »Superintelligenz« ist laut Microsoft noch Jahre entfernt<br>====================================================================================================<br>Cluster 3: Klimakrise<br>Klimaschutz: Mehr Optimismus wagen<br>Heizung, Auto, Versicherung: Sieben Tipps, mit denen Sie sich gegen die Klimakrise wappnen<br>Klima-Monitoringbericht der Bundesregierung: Folgen der Erderwärmung verschärfen sich auch in Deutschland<br>====================================================================================================<br>Cluster 6: Finanzen, Investitionen, Markttrends<br>Energiepreisbremsen auf der Kippe: Für wen Strom und Gas bald teurer werden könnten<br>Lebensversicherungen: Garantiezins könnte erstmals seit Jahren steigen<br>Alles Gute vom SPIEGEL: Bei dieser Schweizer Bank kann man Zeit ansparen<br>====================================================================================================<br>Cluster 1: Ernährung, Nachhaltigkeit, Lebensmittelindustrie<br>Politik und Ernährung: Die Schlacht am Küchentisch<br>Neue Studie: Deutsche wollen sich gesund ernähren – schaffen es aber kaum<br>Gefahren der Landwirtschaft: Wie die Agrarkrieger unseren Planeten leiden lassen – und uns gleich mit<br>====================================================================================================<br>Cluster 0: Literatur, Interviews, Kultur<br>SPIEGEL Bestseller – Mehr Lesen mit Elke Heidenreich: Ein Buch für Oberlehrer und Goethe-Hasser<br>SPIEGEL-Bestseller – Mehr Lesen mit Elke Heidenreich: »Verdammt noch mal, es kann doch nicht nur Männer geben«<br>Schöner schreiben: Das (vielleicht) schönste Romanende der Welt</pre><h3>Thanks for reading!</h3><p>I hope you liked it, if so, just make it clap. Please don&#39;t hesitate to <a href="https://de.linkedin.com/in/alex-held-1193b9234">reach out</a>. Code for this project is <a href="https://github.com/held-alex-spiegel/spon_embeddings">here</a>. As a starting point, I recommend the <a href="https://platform.openai.com/docs/guides/embeddings">OpenAI use case page</a>. If you want to dig deeper, here are some of my favorite references:</p><ul><li><a href="https://vickiboykis.com/what_are_embeddings/">What are embeddings?</a></li><li><a href="https://medium.com/pinterest-engineering/pinnersage-multi-modal-user-embedding-framework-for-recommendations-at-pinterest-bfd116b49475">PinnerSage: Multi-Modal User Embedding Framework for Recommendations at Pinterest</a></li><li><a href="https://txt.cohere.com/combing-for-insight-in-10-000-hacker-news-posts-with-text-clustering/">Combing For Insight in 10,000 Hacker News Posts With Text Clustering</a></li><li><a href="https://dl.acm.org/doi/10.1145/3097983.3098108#sec-cit">Embedding-based News Recommendation for Millions of Users | Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</a></li><li><a href="https://medium.com/nzz-open/the-value-of-responsible-personalization-in-news-recommender-systems-9c6aedd1ea5c">The Value of Responsible Personalization in News Recommender Systems</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjkrNMKz9pWU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjkrNMKz9pWU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjkrNMKz9pWU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/953a9dcaae3ee374c6ce6a29e1bb3098/href">https://medium.com/media/953a9dcaae3ee374c6ce6a29e1bb3098/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57fe5f383244" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Der Spiegel Uses Machine Learning To Identify Its Most Valuable Potential Subscribers]]></title>
            <link>https://medium.com/@helloheld/how-der-spiegel-uses-machine-learning-to-identify-its-most-valuable-potential-subscribers-8af4007d3a66?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8af4007d3a66</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[news]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Thu, 03 Nov 2022 09:25:20 GMT</pubDate>
            <atom:updated>2022-11-03T09:25:20.995Z</atom:updated>
            <content:encoded><![CDATA[<p>If we consider the most active ten percent visitors on spiegel.de, less than a fifth of these users have subscribed with us, leaving us with a number of <strong>over one million seriously active users without subscription</strong>. That being the case, acquiring new users is expensive and a core challenge to most online news websites. Reducing customer acquisition costs by a small amount can result in a large increase in profit. This can be done through <strong>better identifying <em>potential customers, showing better-targeted ads, giving discounts at the right time, etc. — all of which are suitable tasks for ML</em>.</strong>¹</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XJfe0C_3hZBu8N-L" /><figcaption>Photo by <a href="https://unsplash.com/@heyerlein?utm_source=medium&amp;utm_medium=referral">h heyerlein</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Over the course of several audience research projects at <a href="https://www.spiegel.de/">Der Spiegel</a>, we suggest that <strong>the decision for a news subscription is not a sudden, instantaneous action, but is the informed decision based on the experience with our outlet</strong>.² This applies at least for visitors who outlast our free trial phase and are not solely interested in the content of a specific paywalled article.</p><p>As such, <strong>we propose effective engagement features to show that they are suitable for building a subscription prediction model</strong>.<strong> We developed a machine learning approach that can be used to predict lasting subscriptions and enables us to segment readers according to their affinity-to-subscribe.</strong> To outline the ML system we have built, this text is organized into (1) Data &amp; Features, (2) Model, (3) Evaluation, (4) ML Operations and (5) Next steps.</p><p><strong>Data &amp; Features</strong></p><p>As we plan to train a machine learning model to make predictions, we need a data source to learn from. Therefore, <strong>based on </strong><a href="https://www.spiegel.de/"><strong>spiegel.de’s</strong></a><strong> </strong><a href="https://experienceleague.adobe.com/docs/analytics/export/analytics-data-feed/data-feed-overview.html?lang=en"><strong>Adobe Data Feed</strong></a><strong>, the raw website tracking data from </strong><a href="https://www.spiegel.de/"><strong>spiegel.de</strong></a><strong>, usage features are derived at device level</strong>, where we currently developed four classes of input features:</p><ul><li>Engagement: web_visit, app_visit , avg_time_spent_article, avg_time_spent_article_across_sessions, mean_articles_read, mean_visit_duration, number_articles_read, paywall_loads, total_visit_duration, visit_subscription_page, number_of_visits</li><li>Location: federal states</li><li>Referrer: aggregated URLs</li><li>Editorial: department, type (text, audio, video) and format (op-ed, investigative, …)</li></ul><p>A long backlog of further potential features already exists, but the first step of development was primarily about the implementation of an end-to-end ML pipeline. To paraphrase the fourth rule of the Google ML Guide: <em>Keep the first model simple and get the infrastructure right. The first model provides the biggest boost to your product, so it doesn’t need to be fancy. But you will run into many more infrastructure issues than you expect.</em>³</p><p>Anyhow, building suitable features is only one part of feature engineering. With customer journey data involved, <strong>we also set sliding windows within our user journeys</strong>. For training data, <strong>we set lookback and lookahead windows</strong>, whereby data for inference only has the former. Accordingly, our features mentioned above are calculated over the last thirty days per user. For training data records, there is information as to whether a user has taken out a subscription, accompanied by the maximum number of days the subscription has been used after conversion. For this purpose, a maximum of forty days from purchase will be looked ahead. Together with our lookback window, <strong>we have a total sliding window of seventy days for training</strong>. Following this approach, the model is flexible so that a retention threshold can be set in such way that training solely considers subscriptions as a target value for which users have still used their subscription X days after the actual order. This makes it possible to train the model on predicting long-term subscriptions only, where readers stay with us over the trial phase. To be precise, <strong>we currently train the model on purchases where readers still used their subscription at least thirty-five days after conversion.</strong> Journeys who do not meet these criteria are getting removed from training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*YNfInnkCMl6d5KSrDC9yGA.png" /></figure><p>Apart from that, <strong>further journeys being discarded on a large scale</strong> before the model is trained, as <strong>this is necessary to achieve an appropriate predictive quality</strong> for the purpose for which the model was designed: the prediction of lasting subscriptions and identification of potential loyal customers. The <strong>main reason for removing users from training is because many journeys consist of very short and/or few interactions, including those journeys that led to a subscription.</strong> The absence of obligation to login without a subscription and the low data quality on cookie device level is causing these data quality problems. Therefore, <strong>at least seventy percent of user journeys that led to a conversion are not included in model training</strong> because they do not bring enough quality with them. It is also important to say, that even bigger numbers of user journeys who did not lead to a subscription are getting removed from the training dataset because they also include only very short and/or few interactions. These circumstances described above are one of the biggest challenge to this ML task.</p><p>Training our model on only a subset of positive cases naturally has an impact on inference, because the same short and incomplete journeys are also present in the classification dataset. This is important to keep in mind if the model gets validated on unseen data without subsetting it according to the training data, as we end up with something known as train-serving-skew, where the unseen data comes from a different distribution, so the model does not generalize well. For this reason,<strong> our model is not performing well in predicting the total sum of daily subscriptions</strong>, which was expected and is not the goal for our model. But on the other end it becomes <strong>accurate in predicting explicitly lasting subscriptions and even more important, identifying potential customers</strong>.</p><p>Finally, it is important to note, that our ML task on hand is a <strong>highly imbalanced binary classification problem</strong>, where we have more users who did not subscribe compared to journeys who end up in a subscription. Therefore, we <strong>sample down negative cases</strong> and with that removing high amounts of journeys from training data once more. We currently seeing best performance if we <strong>balance the training data one to nine</strong>, where for every journey with subscription we have nine journeys without subscription.</p><p><strong>Model</strong></p><p>Do we need ML at all to better identify potential customers and predict lasting subscriptions? ML solutions are only useful when there are complex patterns to learn and therefore, the question is the same as with every other ML system: Is the pattern complex and very challenging to manually specify? If so, instead of telling oursystem how to calculate the affinity-to-subscribe from a list of characteristics, we let our ML system figure out the pattern itself.⁴ Let’s paraphrase the Google’s ML Guide once more:</p><p><em>A simple heuristic can get your product out the door. A complex heuristic is unmaintainable. Once you have data and a basic idea of ​​what you are trying to accomplish, move on to machine learning. As in most software engineering tasks, you will want to be constantly updating your approach, whether it is a heuristic or a machine-learned model, and you will find that the machine-learned model is easier to update and maintain (see Rule #16 ).</em></p><p>Therefore, for our approach, <strong>a random forest model is trained</strong> on the features described earlier. The model is then used to provide all users with a model score between 0 and 100. The higher the value, the more subscription-affine the user. The training method used is <a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html">sklearn.ensemble.RandomForestClassifier</a>, which runs with a training time of less than three hours, from which cross-validation and feature selection take up most time. We have gone through a model experimentation phase, where we chose to discard the following approaches due to insufficient performance uplifts:</p><ul><li>Random Forest outperformes XGBoost</li><li>SMOTE with random undersampling of the majority class did not create any uplift to the model</li><li><a href="https://scikit-learn.org/stable/auto_examples/feature_selection/plot_rfe_with_cross_validation.html">RFECV (Recursive feature elimination with cross-validation)</a> outperforms other feature selection methods like SelectKBest() or SelectFromModel()</li><li>The basic RandomForestClassifier() outperforms RandomForestClassifier(class_weight=’balanced_subsample’) and BalancedRandomForestClassifier()</li></ul><p><strong>Evaluation</strong></p><p><strong>We applied recursive feature elimination in a cross-validation loop to find the optimal number and estimate the importance of individual features</strong>. As a result, from the feature list described earlier, <strong>only features from category engagement were considered relevant</strong> during this process. None of location, referrer or editorial features seem to have much predictive power.</p><p>With these features selected, the current model in production did perform as such during <strong>cross validation on training data: precision: 0.71, recall: 0.41, F1 score: 0.54 and accuracy: 0.93.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*2-akrrBytja0ODf1svqE-A.png" /></figure><p>If we look at the confusion matrix, the model can clearly identify most journeys that did not lead to a subscription. Also, identifying around forty percent of actual conversions (recall) seems like an acceptable outcome. Nevertheless, it is important to note, that we removed journeys with positive labels with few interactions before training as described earlier in the section data &amp; features. For this reason, our performance on recall is only assessable under these circumstances. Furthermore, a precision of 71% seems also satisfying, especially if we consider how useful false positives can be, as these users behave like potential subscribers, so they would be highly interesting to be targeted with specific campaigns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*KMDfa92R_EpWEgwCairXFg.png" /></figure><p>Apart from using a threshold to split the predicted model scores into a binary classifier where only journeys with a score &gt; 0.5 are conceived as successful subscriptions (like we did for the confusion matrix seen above), <strong>we use the model scores as actual probabilities of how likely it is that a user will subscribe with us</strong>. We found a well calibrated classifier, by putting the predicted model scores into buckets and compare them to the proportion of predictions in each bucket that were actual subscriptions. We observed that this proportion is higher for higher buckets, so that the probability is roughly in line with the average prediction for that bucket.⁵ It is important to note, that buckets with higher models scores contain significantly fewer users.</p><p><strong>ML Operations</strong></p><p>Our model is <strong>retrained on a monthly cadence</strong>, with all historical training data being used for retraining. Therefore, it <strong>becomes more accurate over time</strong> because it takes more input data into account over a longer period. <strong>Each trained model is versioned, and the training dataset and feature selection are saved with the model</strong>. In addition, there is an automatically created evaluation document for each model, which contains cross- and hold-out validation with most important key figures such as precision and recall.</p><p>We do not use any tools like <a href="https://dvc.org/">DVC</a> or <a href="https://mlflow.org/">MLflow</a> for versioning or experiment tracking but having <strong>the whole project wrapped up in a </strong><a href="https://www.djangoproject.com/"><strong>Django</strong></a><strong> app</strong>. This enables us to use management commands to control and serve the major daily workflows like data pre-processing and feature engineering, building the classification dataset and serving classifications via the model, uploading model scores to Adobe, or running monitorings. On a monthly cadence, we also trigger workflows to build the training dataset and train a new model. Furthermore, <a href="https://www.djangoproject.com/">Django’s</a> ability to initialize modules helps us to catch logs and monitor data on different levels from raw tracking data, to derived features or predictions.</p><p><strong>The model currently in production is serving predictions in batch mode, where all users who visited our website yesterday are getting new or updated scores</strong>. The scope of this project included the <strong>usability of the resulting model scores in </strong><a href="https://business.adobe.com/de/products/analytics/adobe-analytics.html"><strong>Adobe Analytics</strong></a> on a daily basis for accessible analysis from various stakeholders.<strong> From Analytics we then send segments for users with high scores to </strong><a href="https://business.adobe.com/de/products/target/adobe-target.html"><strong>Adobe Target</strong></a><strong> daily, to be able to personalize our product based on the model scores</strong>. For this purpose, we used the <a href="https://experienceleague.adobe.com/docs/analytics/import/data-sources/datasrc-how-data-sources-works.html?lang=en">Adobe Data Sources API</a>, to be able to attach scores on user-session level.</p><p>Finally, all components of the ML system are running in Azure. Raw data from the <a href="https://experienceleague.adobe.com/docs/analytics/export/analytics-data-feed/data-feed-overview.html?lang=en">Adobe Data Feed</a> is stored in binary parquet files in <a href="https://azure.microsoft.com/en-us/products/storage/blobs/">Azure blob storages</a> and data processing tasks are written in <a href="https://spark.apache.org/docs/latest/api/python/">PySpark</a>, to be able to use distributed batch processing. As compute infrastructure we rely on a mid-sized virtual machine and for code repositories and continuous integration we use <a href="https://azure.microsoft.com/de-de/products/devops/#overview">Azure DevOps</a>. Development is done in <a href="https://code.visualstudio.com/">VS Code</a> as it smoothly integrates with our Azure ecosystem.</p><p><strong>Next steps</strong></p><ul><li>Data distribution shift: News change, and so do user tastes. What’s trendy today might be old news tomorrow.⁶ We already have built features to capture editorial department usage, but they don’t show much predictive power yet. In building these features, we might need to consider fast and strong shifts in the training data which also means to rethink appropriate timings for retraining and feature engineering.</li><li>Return on investment: <em>Anecdotal reports claim that 90% of ML models don’t make it to production, others claim that 85% of ML projects fail to deliver value.</em>⁷ While having our model in production, we just starting to search for suitable approaches and campaigns to evaluate if our model was worth the investment.</li><li>Targeted surveys: Using our model scores to target visitors with specific surveys to find out what motives and attitudes separates them can be very insightful. This is extremely relevant if you think about <strong>the fraction of variance which cannot be explained by our features on usage behavior, but more qualitative factors like perceived price or added value of the subscription.</strong> In <a href="https://medium.com/@helloheld/combining-user-research-data-science-methods-e6fb9bbff369">another medium post</a> I wrote about how we combine user research and data science methods at <a href="https://www.spiegel.de/">Der Spiegel</a>.</li></ul><p><a href="https://medium.com/@helloheld/combining-user-research-data-science-methods-e6fb9bbff369">Combining user research &amp; data science methods</a></p><ul><li>Precision-Recall Trade-Off: We see potential in adjusting different probability thresholds in favor of precision or recall. Especially a higher number of false positives could be an interesting segment to work with, as they naturally behave like visitors who usually subscribe with us.</li><li>Switch to continuous predictions: Instead of a binary classifier, we can reframe our overall ML task as a regression problem, where we predict the number of days a user is going to keep his or her subscription.</li><li>Compare ML and RFV models: Solely engagement features were selected during the recursive feature selection process and none of location, referrer or editorial features seem to have much predictive power. This led us to the question, what the differences between much bespoke engagement scorings, like <a href="https://www.intotheminds.com/blog/en/the-financial-times-found-the-most-perfect-kpis-to-measure-success/">RFV models at the Financial Times</a>, and machine learning based scores are?</li></ul><h3>Thanks for reading!</h3><p>I hope you liked it, if so, just make it clap and <a href="https://twitter.com/helloheld">follow me</a> on Twitter.</p><h3>References</h3><p>[1], [4], [6] <a href="https://learning.oreilly.com/library/view/designing-machine-learning/9781098107956/">Designing Machine Learning Systems</a> (by Chip Huyen)</p><p>[2] <a href="https://www.researchgate.net/publication/317487843_Time-Aware_Subscription_Prediction_Model_for_User_Acquisition_in_Digital_News_Media">Time-Aware Subscription Prediction Model for User Acquisition in Digital News Media</a> (by H. Davoudi, M. Zihayat &amp; A. An)</p><p>[3] <a href="https://developers.google.com/machine-learning/guides/rules-of-ml">Rules of Machine Learning: Best Practices for ML Engineering</a> (by Google)</p><p>[5] <a href="https://pair.withgoogle.com/explorables/uncertainty-calibration/">Are Model Predictions Probabilities?</a> (by Google)</p><p>[7] <a href="https://arxiv.org/pdf/2209.09125.pdf">Operationalizing Machine Learning: An Interview Study </a>(by S. Shankar, R. Garcia, J. M. Hellerstein &amp; A. G. Parameswaran)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8af4007d3a66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combining user research & data science methods]]></title>
            <link>https://medium.com/@helloheld/combining-user-research-data-science-methods-e6fb9bbff369?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6fb9bbff369</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[audience-research]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[audience-engagement]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 06:10:42 GMT</pubDate>
            <atom:updated>2022-06-22T06:10:42.690Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Towards a more holistic approach to news audience research</strong></h4><p>The field of data science deals with large amounts of website usage data, even if these are considered personal data by means of userIDs, working with such data is usually destined by anonymity and pseudonymity. No human faces, no actual names, or any further socio-demographic information. Machine learning algorithms are trained to detect behavioral patterns in historic data to make assumptions about future actions. From predicting subscriptions and churn to personalizing editorial content or product information, casting the appropriate logic into self-learning systems is bread and butter to most data scientist and for this purpose our craft primarily work with colleagues from Analytics and IT departments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xAWaHRHqji2x5w03" /><figcaption>Photo by <a href="https://unsplash.com/@davideragusa?utm_source=medium&amp;utm_medium=referral">davide ragusa</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Nevertheless, <strong>there are actual humans behind pseudonymized user IDs, whose behavior is determined by motives and attitudes</strong>. But these topics rarely become subject of discussion, at least in the field of data science. It is rather the <strong>concern of user research departments and therefore undertaken by experts on surveys and interviews, which are still hardly intertwined to the data science</strong> <strong>world</strong>, where we rarely talk about “qualitative data” and even less about the people from whom we get the data from. Everything is wished to be automated, preferably in large quantities. No scalability is not an option.</p><p>The team of Spiegel Research is set up in such way, that it includes colleagues from qualitative and quantitative user research as well as analytics, data science and testing. In addition to working on machine learning problems, audience research plays a significant role to our work, in which we starting to discover the synergies of having various research disciplines on board. <strong>The possibilities for blending methods are multifaceted and we are only just beginning to find promising combinations and suitable workflows to a more holistic view of the audience. </strong>Scientific papers¹ and industry use cases² helped us to get started and develop a vision for our work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_ts_bc0ebGqk5OyEqhBZA.png" /><figcaption>The “What-Why Framework,” highlighting some methodologies in each quadrant. Source: <a href="https://spotify.design/article/simultaneous-triangulation-mixing-user-research-and-data-science-methods">Simultaneous Triangulation: Mixing User Research &amp; Data Science Methods</a></figcaption></figure><p><strong>How we combine User Research &amp; Data Science</strong></p><p>To get started with mixed method research, one of our first projects involved a methodological <strong>combination of website usage and survey data to shed light on the behavior and needs of spiegel.de’s young readership</strong>. Based on this use case, the following paragraphs explain our steps towards a more integrated user research strategy. I will outline an approach that gave us deep insights into:</p><ul><li><strong>the desires and attitudes of our young readers (through surveys)</strong></li><li><strong>as well as their reading behavior (by combining their survey answers to their cookie-based reading profiles)</strong></li></ul><p>It worked as follows: We are <strong>conducting a survey on spiegel.de</strong> that is particularly addressed at young readers. Using this survey, we collect age and other socio-demographic factors as well as attitudes and desires towards spiegel.de. To take part in the survey, readers must agree to our data protection form, so we are later able to <strong>link their reading profiles with their survey answers</strong>. Following this approach, we had the opportunity to link usage behavior of several months to the age indication from the survey, along with any other question answered. A cookie-based reading profile includes a reader’s page and article views from her browser or app cookie. All data gets deleted 90 days after the survey.</p><p>The acceptance among our users were surprising to us with over <strong>90% of our readers were willing to donate their reading history for this project</strong>. For now, the remaining 10% were unable to take part at the survey, but as soon as technically possible, we naturally want to give these participants the opportunity to also take part in our survey, to avoid any bias in the research results.</p><p>So, you wonder how this technically works? If a reader gets exposed to a survey on spiegel.de, she needs to confirm to donate her reading history via a data protection agreement. If she does so, her cookie-id — to which the reading behavior of a reader is mapped — automatically gets passed to our survey tool, where she answers the survey and her responses getting connected to her cookie-id. In this way we can later connect the reading behavior to the survey answers. By agreeing to the data protection form, we were allowed to access the reading profiles of the survey participants for the following 90 days. A total of almost 2.000 readers were willing to donate their reading profiles to our project. After we had sorted out incomplete or sparse reading profiles, we were left with <strong>around 800 rich reading profiles, most with several months of reading history.</strong> These 800 young readers alone made about 2 million page views on spiegel.de. To be able to evaluate the behavior not only within the young readership group, but also to have comparative values ​​to our average readership, we have also created a group of another 800 reading profiles with a comparable structure in terms of usage intensity and device usage, so that only the age indication between the two groups differed. A few hundred reading profiles might not sound lot, but they hold deep information which wouldn’t be possible to gain on a large scale.</p><p>We used the resulting dataset to r<strong>etrospectively evaluate which editorial topics and formats were particularly frequented by young readers</strong>. For example, we were able to determine which pieces of op-eds (columnists, guest writers and comments) or topics (political spiegel.de core topics or soft service journalism) are particularly valued by young readers. We also got interesting information about audio and video usage. Furthermore, any answers from the survey, like motives and thoughts around our subscription model, were used for deeper intersection and analysis.</p><p>Aside from analyzing usage data, we created hypotheses to be tested afterwards. Using our Adobe infrastructure to run A/B tests, we have validated whether formats that have worked particularly well with young readers in the past, also work under clean testing conditions in the present (live tested on our frontpage). For this purpose, <strong>we have targeted and intensified certain articles on the spiegel.de homepage to both the young target group</strong> and the comparison segment. To this process of A/B testing, the whole research process of<strong> finding young readers preferences became an ongoing cycle</strong> where we constantly evaluate their current needs.</p><p><strong>Where are we (going)?</strong></p><p>As initially stated, behind our project on young readers stands a larger question: Do traditional qualitative and quantitative user research methods and state-of-the-art data science approaches pursue the same goals and therefore must be thought together? In most media companies, we are seeing an increasing focus on data and algorithms. Ever more data points and complex models allow accurate predictions of user behavior. But analyzing and predicting usage data is only one approach to the audience. In my experience, the missing approaches to simple questions like young readers preferences draws from the team structures of web analysis departments at news websites, which are strongly oriented towards the pure analysis of website behavior data. Other teams also dealing with audience data, like user research, are often located in other departments and ideas is rarely thought together.</p><p>We have tried more combinations of research methods, involving even more qualitative aspects of user research, like integrating results from user interviews with surveys answers and usage patterns. I hope to share more about our journey to user research and the role of data science in near future.</p><p><strong>Thank you for reading this article!</strong></p><p>I hope you liked it, if so, just make it clap and <a href="https://twitter.com/helloheld">follow me</a> on Twitter.</p><h4>References</h4><p><a href="#_ftnref1">[1]</a> <a href="https://journals.sagepub.com/doi/full/10.1177/0894439319843669">https://journals.sagepub.com/doi/full/10.1177/0894439319843669</a></p><p><a href="#_ftnref2">[2]</a> <a href="https://spotify.design/article/simultaneous-triangulation-mixing-user-research-and-data-science-methods">https://spotify.design/article/simultaneous-triangulation-mixing-user-research-and-data-science-methods</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6fb9bbff369" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An in-depth reading experience]]></title>
            <link>https://medium.com/@helloheld/an-in-depth-reading-experience-7528c090f06d?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7528c090f06d</guid>
            <category><![CDATA[audience-engagement]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[news-articles]]></category>
            <category><![CDATA[ux-research]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 06:36:00 GMT</pubDate>
            <atom:updated>2022-03-31T06:36:00.020Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring the gap between actual and predicted consumption time of news articles</h4><p>From Skimming to scanning, from exploratory to critical reading, what type of reading experience does have an impact on the willingness to subscribe to a journalistic platform or website? At Spiegel, we are measuring an increasing number of visits, where readers solely scanning the front page and leave without opening any article. Our own surveys and interviews shed a light on their behavior, as readers seem to feel satisfied with just scanning article teasers, as their motive is to update themselves quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wZFMvLEwUjU0Yvdb" /><figcaption>Photo by <a href="https://unsplash.com/@rawkkim?utm_source=medium&amp;utm_medium=referral">rawkkim</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Compared to this behavior of front page skimming, in-depth reading allows the reader to increase his or her background knowledge about a topic, as it requires them to read for a narrower purpose, to understand the concepts or arguments of a text. This type of reading is also referred to as focused or deep reading.¹ We would all agree on the difference between scanning article teasers and having an in-depth reading experience, not to forget all the nuances of reading experience in between.</p><p>Researchers from various disciplines are investigating how reading is changing in the age of digitization. In a large analysis, they evaluated over fifty studies involving a total of more than 170.000 people. These meta-analyses, published in 2018 and 2019, all point in the same direction, as they show that the screen is inferior to the book when reading informational text.² Readers understand non-fiction better when there are no links, no multimedia content, no animations, just the printed text. When it comes to purely informational texts, the printed word on paper leads to a better understanding than reading it on screen, where readers tend to read more superficially and quickly, skimming the texts rather than reading it line by line continuously. This scanning leads to a feeling where readers are no longer able to delve deeper into a story.</p><p>The many links on the web put a strain on our working memory, as it is the part of our brain that stores information for a short time and processes it at the same time. When informational texts are interspersed with links, we must permanently suppress the impulse of clicking on them, and in doing so, we use up resources. I recommend using a trial version of the journalistic platform <a href="https://perspective-daily.de/">Perspective Daily</a>, as it is a suburb example of showing how a flawless and little interrupted reading experience looks like.³</p><blockquote>You are in flow when you have the feeling that you are completely absorbed in what you are doing.</blockquote><p>Hold on a moment and think about your own digital reading style. When was the last time you finished reading an article to its end? These moments are rare for most readers, especially for longer more engaging texts. But some stories still grab us every now and then. Aren’t these the crucial moments of exciting and tense reading, that increase our appreciation for a journalistic platform and therefore our willingness to pay for it, because we become aware of its actual value? More research needs to be done. First and foremost, we need to be able to define and measure what an in-depth reading experience looks like.</p><p>To get started, at Spiegel.de, <strong>we have developed an indicator called reading depth, which is defined as the ratio of reading time and text length. The reading depth is the percentage deviation between the actual and expected stay time on an article.</strong> The actual reading time is measured with our Web Tracking Tool Adobe Analytics and indicates the average length of stay in seconds for all readers per article. <strong>The expected stay time in seconds is calculated from the historical stay time of all articles with same text length.</strong> The deviation between actual and expected value can range between -100% and +100%. Regardless of the text length, an article can therefore be read particularly deep. <strong>A regression analysis (LOESS) determines the expected length of stay (red line)</strong>. Articles with less than 50 words are automatically given an expected value of 60 seconds. The same applies to long articles of 1500 words or more, which have an expected value of 300 seconds. Particularly low and high values ​​cannot be meaningfully determined from the regression due to the sparse data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu7WxkPMFdPPOTGyIJj_AA.png" /></figure><p>In addition to readers being disrupted by links, advertising and recommended next reads, editorial decisions can be the reason why readers do not delve particularly deeply into an article and therefore are not able to get into a situation of flow. Perhaps a text is not written in a gripping way or does not meet the readers expectations. At this point on our research roadmap, we move from measuring usage behavior to more qualitative factors like a reader’s motives and needs. Therefore, our team at Spiegel Research consists of experts from various methods, from qualitative research using interviews, to quantitative surveys, to the evaluation of user behavior with web analysis and data science methods. Because having knowledge of a user’s low reading depth does not give us an answer about the reasons for his or her behavior. Interviews and surveys help answering these “why questions”.</p><p>To conclude, the concept of reading depth is helpful to audit single articles beyond audience reach, as it makes texts more comparable, regardless of text length. It gives us a more qualitative indicator on the actual engagement with our content. Apart from that, being able to capture situations of pure reading flow, where a reader had a deep engagement with a longer story, could be a highly important factor for predicting subscriptions. Because in the end, besides readers being annoyed by hitting the paywall repeatedly, the probability of subscribing to a journalistic product is highly depended on the level of engagement, at least if a reader is out for a sustainable subscription. Building the right engagement metrics beyond article clicks and visits is a key factor for this machine learning challenge.</p><h4>Thanks for reading</h4><p>I hope you liked it, if so, just make it clap and <a href="https://twitter.com/helloheld">follow me</a> on Twitter.</p><h4>References</h4><p><a href="#_ftnref1">[1]</a> <a href="https://wisc.pb.unizin.org/esl117/chapter/focused-reading-and-note-taking">wisc.pb.unizin.org</a> &amp; <a href="https://omanajhoanacom.weebly.com/lesson-4-kinds-of-reading.html">omanajhoanacom.weebly.com</a></p><p><a href="#_ftnref2">[2]</a> <a href="https://www.deutschlandfunkkultur.de/leseforschung-buch-oder-bildschirm-100.html">deutschlandfunkkultur.de</a></p><p><a href="#_ftnref3">[3]</a> <a href="https://perspective-daily.de/">perspective-daily.de</a> &amp; <a href="https://perspective-daily.de/konstruktiver_journalismus/werbefreier_onlinejournalismus">perspective-daily.de/konstruktiver_journalismus</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7528c090f06d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Long Tail]]></title>
            <link>https://medium.com/@helloheld/the-power-of-long-tail-302e7ea02fa8?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/302e7ea02fa8</guid>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[evergreen-content]]></category>
            <category><![CDATA[audience-engagement]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 07:36:10 GMT</pubDate>
            <atom:updated>2022-03-10T07:36:10.256Z</atom:updated>
            <content:encoded><![CDATA[<h4>Finding Evergreen Content through Usage Behavior</h4><p>In botany, an evergreen plant retains its leaves through the year and into the following growing season. The counterpart are deciduous plants that lose all their leaves for part of the year. Like in botany, <strong>timeless journalistic pieces only slowly lose their leaves of information</strong> and are therefore called evergreens. Lasting content is rare but valuable, as most fast news items become outdated in no time at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qx1SqWU0rTifHxyB" /><figcaption>Photo by <a href="https://unsplash.com/@bhoogenboom?utm_source=medium&amp;utm_medium=referral">Brandon Hoogenboom</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The digital archive of <a href="https://www.spiegel.de/">Der Spiegel</a> is full of leafless plants, who lost their relevance after only short time. However, there are a few evergreen specimens slumbering beneath them, waiting to <strong>enrich current news events with greater reporting depth and background knowledge</strong>. Some timeless articles even manage to <strong>inspire readers repeatedly out of their own</strong>. Every article, both from spiegel.de and the tree-based magazine, is a <strong>potential candidate for future reutilization</strong>. To get started, let’s investigate a few reasons why this might be interesting:</p><ul><li>Certain topics come up frequently, such as explanatory articles about elections. So why reinvent the wheel for every election period when there is already an appropriate text in the archive and just needs to be uploaded to the front page again.</li><li>The principle of timeless articles also works without corresponding news events, as there are pieces that arouse the interest of readers, regardless of current topics. Such examples can be found regularly on the spiegel.de front page in the “Best of SPIEGEL+” section. Among other categories of journalistic content, timeless evergreens are placed here and persistently manage to generate a satisfactory number of visitors and subscriptions for Der Spiegel.</li><li>Furthermore, popular evergreen articles can be played frequently via social media channels.</li><li>Finally, SEO works consequently on optimizing Google rankings for timeless articles to generate a constant stream of visitor traffic.</li></ul><p>With the motives described above, articles are selected by employees and placed on internal and external channels accordingly. Der Spiegel currently has no technical solution to identify evergreen content from its archive and is therefore dependent on the knowledge of individuals. Besides evergreen articles identified by manual work, <strong>automated and personalized content placements via recommendation algorithms need to handle this task on their own</strong>. With machines in action, there are no gatekeepers, but also no human control mechanisms over what content is shown to the audience. Spiegel.de calculates personalized article recommendations for its readers based on a recommendation algorithm, but currently hardly integrates this service on its website. Only in the rarely used <a href="https://www.spiegel.de/fuermich/">for me section</a>, personalized editorial content is displayed with Adobe Target for logged-in users only.</p><p>Much has been written about recommendation algorithms and use cases from publishers are widely known.¹ To put it briefly, a recommendation algorithm is used to <strong>show readers these articles that other similar readers have already clicked on</strong>. Similarities between readers are calculated based on their reading history. The recommendation algorithm on spiegel.de works according to these principles.² For more information about this technology, I have listed some good reads at the end of this text.</p><p>This article is not about recommendation algorithms per se, but about the<strong> risk of recommending outdated articles to the audience</strong>. As you continue reading, I will outline an approach on how to tackle this challenge. The following text is divided into three parts:</p><ol><li>Problem statement</li><li>Approach</li><li>Criticism</li></ol><p><strong>Problem statement</strong></p><p>Irrespective of how sophisticated a recommendation algorithm might be, without any further logic, the <strong>audience will be exposed to articles who appear useful according to the personalization logic but who’s content became outdated</strong>. As it would be irresponsible to display outdated information on a news website, <a href="https://medium.com/@helloheld/a-fair-evaluation-of-audience-reach-e9a781537276">spiegel.de has its own team to keep the front page up to date all around the clock</a>.</p><p><a href="https://medium.com/@helloheld/a-fair-evaluation-of-audience-reach-e9a781537276">A Fair Evaluation of Audience Reach</a></p><p>Even though it could be an option for recommendation algorithms considering articles who have been published within the last few days (which may even make sense depending on the editorial goal), what if we want to <strong>re-publish timeless gems from the archive in a personalized way</strong>?³ There is no single logic to determine the timelessness of a journalistic item. It is the <strong>combination of different techniques that leads to a successful identification of evergreens</strong>. This present text outlines an approach to uncovering evergreen articles in archival holdings. More specifically, it is about <strong>using behavioral usage data to find lasting content</strong>. Before I detail this approach in the next section, here are a few alternative and complementary techniques to keep in mind:</p><ul><li>When creating an article, the <strong>editors specify meta information as to whether it is a timeless text</strong>. You might find this option obvious and trivial but would be surprised, how few publishers take advantage of this approach.</li><li>An article is considered evergreen if it regularly generates traffic via SEO. This is where the logic could go around in circles, since articles became timeless due to SEO editors optimizing for high rankings on Google.</li><li>The exclusion principle: Certain editorial products and topics (e.g. continuously updated articles) are excluded from automated curation because they are rarely timeless per se. Certain article groups are excluded from being displayed via product lines or keywords.</li><li>Data from Google trends. I have not seen many use cases on this promising approach but <strong>incorporating a trend indicator on topic level</strong> could be very useful in this context.</li></ul><p><strong>Approach</strong></p><p>This section describes how usage data can help uncover evergreen items in archival holdings. First, we introduce the <strong>concept of article lifetime, which describes the period in which content loses its relevance and becomes outdated</strong>. We calculate the lifespan of journalistic items as follows:</p><p><strong>The article clicks (e.g. hourly visitors) in the first seven days after publication are considered. Afterwards, it is determined after how many hours an article has reached ninety percent of its total visitors (dotted red line). The later an article reaches this point in time, the longer its lifespan.</strong> The graphs suggest three examples of article lifespans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_fVCLkRxrpXHDT2WqpBHQ.png" /></figure><p>Knowing how the lifespan of an article evolves can help determine the timelessness of an item. But how does the lifespan concept become a holistic approach for determining evergreens? To do so, we need to add some small extensions to the described functionality. This includes:</p><ul><li><strong>Items with a short lifespan getting excluded from the potential evergreen article selection</strong>. A descriptive analysis of all items and their lifetime helped us to define a cut-off value of 32 hours. All articles that had most of their visitors (&gt;90%) within this period are not considered evergreens.</li><li>If an article has a lifespan that is above the cut-off value and is therefore a potential evergreen, we can <strong>add another quality criterion, namely the number of visitors within the last seven days</strong>. This is particularly interesting for older journalistic items, but also carries a high risk of discarding too many actual evergreens. <strong>Coupled with the lifespan, these are two important factors for identifying evergreens.</strong></li><li>As already mentioned, the exclusion principle could be applied: Certain editorial products and topics (e.g. continuously updated articles) are excluded because they are rarely timeless per se.</li><li>A lifespan can only be calculated for articles published at least seven days ago or earlier. The use of such a methodology is therefore only suitable for data products who approach timeless archival articles <strong>without claiming quick results shortly after publication.</strong></li></ul><p>With this logic, around two to three thousand articles at Der Spiegel are defined as evergreens, depending on the analysis period (Note: Our tracking tool Adobe was introduced in January 2020). A reporting that is updated daily, allows us to view a table containing all evergreens and the associated metrics such as lifetime and visitors over the last seven days. <strong>A look at this table shows many actual evergreens, from exciting articles from the department of history or science, to timeless product tests, to valuable advices on career or travel destinations.</strong></p><p><strong>Criticism</strong></p><p>As already mentioned, the determination of evergreens via usage data is one of many approaches and only provides an approximation to the problem. The identification of evergreens with the logic described above is not free from misclassifications. The following section discusses the <strong>lessons learned with this approach</strong>:</p><ul><li>When applying the logic described, usage <strong>data must be available from the time the article was published</strong>, otherwise no lifespan can be calculated within the first seven days. The procedure is therefore not suitable for (older) items for which no usage data is available.</li><li>The logic has a certain error rate: In individual cases, a thematically timeless article has a short lifespan and is therefore not classified as an evergreen. This can be caused by the fact that articles with timeless content were <a href="https://medium.com/@helloheld/a-fair-evaluation-of-audience-reach-e9a781537276">displayed on the front page of spiegel.de for only a short time and therefore resulting in a fast visitor peak.</a></li><li>Even articles with a long lifespan lose their topicality at some point.</li><li>Articles can have several traffic peaks, e.g. if a topic becomes relevant again and an article is displayed on the front page or distributed via social media or newsletters again. According to the current approach, such articles usually automatically have a long lifespan.</li></ul><p>The procedure presented with this text outlines a method for filtering out long-lived articles from a corpus of journalistic pieces. The approach discussed provides an <strong>approximation for the identification of evergreens</strong> via usage data and should <strong>not be understood as a universal solution</strong>. This approach can be particularly promising in combination with other methods. Furthermore, reference is made to the <strong>little-discussed problem of article relevance that occurs when content is displayed automatically and personalized via recommendation algorithms.</strong> In many publishers use cases, (editorial) personalization is often described as a cure-it-all approach to solve the arising challenges with becoming a more subscription centered business. Therefore, this text is pointing out the common but rarely discussed problem of identifying timeless content in a journalistic corpus. Without taking care of this issue, most recommendation engines produce threatening results of outdated information to the audience.</p><p><strong>Do you agree?</strong></p><p>I would love to hear your opinion, just leave me a message in the comment section. If you liked it, make it clap and <a href="https://twitter.com/helloheld">follow me on Twitter</a>. I wouldn’t be writing this article if I wasn’t surprised myself of the promising results the presented approach produces.</p><p><strong>Further Reading:</strong></p><p><a href="#_ftnref1">[1]</a> <a href="https://open.blogs.nytimes.com/2015/08/11/building-the-next-new-york-times-recommendation-engine/">open.blogs.nytimes.com</a>, <a href="https://open.nytimes.com/how-the-new-york-times-is-experimenting-with-recommendation-algorithms-562f78624d26">open.nytimes.com</a> &amp; <a href="https://blog.codecentric.de/2021/07/bigquery-ml-schnelles-training-recommendation-modell/">blog.codecentric.de</a></p><p><a href="#_ftnref2">[2]</a> <a href="https://experienceleague.adobe.com/docs/audience-manager/user-guide/features/algorithmic-models/look-alike-modeling/understanding-models.html">experienceleague.adobe.com</a></p><p><a href="#_ftnref3">[3]</a> <a href="https://blog.zeit.de/dev/the-archivist-datengestuetzte-optimierung-unseres-evergreen-contents">blog.zeit.de/dev</a></p><p><a href="https://ahrefs.com/blog/evergreen-content">ahrefs.com</a></p><p><a href="https://moz.com/blog/the-true-power-of-evergreen-content-a-case-study">moz.com</a></p><p><a href="https://www.newslifespan.com/">newslifespan.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=302e7ea02fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Fair Evaluation of Audience Reach]]></title>
            <link>https://medium.com/@helloheld/a-fair-evaluation-of-audience-reach-e9a781537276?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9a781537276</guid>
            <category><![CDATA[digital-newspaper]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[audience-insights]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 06:33:44 GMT</pubDate>
            <atom:updated>2022-02-01T06:33:44.867Z</atom:updated>
            <content:encoded><![CDATA[<h4>Investigating Position Bias on Digital News Front Pages</h4><p>Given the amount of information on the web, it would be impossible to find what you are looking for, if there would not be any type of pre-sorting. That’s why Google’s ranking systems exist, as they crawl billions of web pages and present you the most relevant information in seconds. A series of algorithms decides on relevance and corresponding ranking. This will be known to most of us and associated problems of automated self-learning systems have been critically observed.¹ Although the important upper part of spiegel.de’s front page is not operated by machines, due to limited space, the <strong>challenge of relevance and ranking</strong> remains the same.</p><figure><img alt="Photo by National Cancer Institute on Unsplash. It shows Margaret Kelly." src="https://cdn-images-1.medium.com/max/1024/0*0_aPdJHJ215YSoOJ" /><figcaption>Photo by <a href="https://unsplash.com/@nci?utm_source=medium&amp;utm_medium=referral">National Cancer Institute</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To begin with, our front page gets updated, not by artificial intelligence but a large and diverse team of actual humans. Therefore, rules for topic selection and appropriate timing have been learned over years of work experience. It can’t be overstated how important their work is and how well it is executed. It is needless to say with the technology we know thus far, it is impossible replacing these jobs with self-learning systems or any type of artificial intelligence. Besides the possible ethical harms these systems could cause, technology is simply too far away from solving such sophisticated tasks appropriately.</p><p>In addition, the <strong>front page plays a key role </strong>to many departments at Spiegel, from newsroom, to advertising, to product management, it is as an <strong>indispensable tool of reader allocation</strong>. Compared to traffic from tech giants like Google or Facebook, our very own front page lets us independently decide on topic curation and timing. While selecting articles and their corresponding position on the front page with greatest relevance to our readers, a few challenges around the What, When and Where arise:</p><ul><li>We as a news website, offer valid information on time-critical topics with high journalistic standards, therefore <strong>content that is displayed on top of the front page will not likely stay there for too long</strong>.</li><li>With a daily growing corpus of articles, Der Spiegel draws on an archive of hundreds of thousands of articles that have been written for both Spiegel Online and the tree-based magazine, founded in 1947. Finding the right article from the archive on a topic that has just become relevant again is another exciting technical challenge that is not in scope for this article.</li><li>Although, most articles on the front page have been created a few days before or even on the same day they appeared on the front page, some news events allow the operating team to put up older content from the archive. Besides that, in the world of long-read journalism, hot items never sell out. Unlike the fast-moving news, <strong>evergreen content</strong> is usually there for the long-haul and <strong>can be brought back</strong> to the front page any given time, being an indispensable tool to attract readers and generate subscriptions.</li><li>In addition, our business model involves offering <strong>subscriptions</strong>. Besides journalistic decisions and audience reach, generating these <strong>play a key role in front page curation</strong>.</li><li>Space is limited, as there are usually around thirty articles on the curated part of the front page. <strong>Most readers don’t scroll too deep into the front page</strong> and lower placed articles won’t be seen by these visitors.</li></ul><p>As I already pointed out, there is a relevance ranking challenge and Spiegel, which launched its website in 1994, have been in this game much longer than, for example, Google, which domain has been registered in 1997.</p><p>This is our world, we are in control of making decisions about what is going to be displayed to our readers, when and where. Most other sources of supplying readers to our content, like via Google, are far from our responsibility, even though they are making quite large shares of visitor allocation. This is important because being in charge gives us the opportunity to <strong>measure effects of our own decisions</strong>, with tracking what content has been shown to readers when and where. I’m still surprised, how few news cooperation are actually taking advantage of this knowledge.</p><p>As you continue reading, I will outline an approach on how to make use of data coming from tracking your own front page. The following article is divided in four sections:</p><ul><li>Challenge</li><li>Data source</li><li>Research insights</li><li>Evaluation framework</li></ul><h4>Challenge</h4><p>It usually starts with a simple question. An editor wants to know how successful his or her story has been, in concrete terms: <em>How many visitors did the article reach?</em> This question can be answered with just a few clicks in well-known analytics tools. Depending on the number that pops up, what follows is:</p><ul><li>an editors’ response that lies somewhere between satisfaction and disappointment (most unconcerned editors don’t even bother to ask).</li><li>an attempt at quick classification: the article was probably played poorly (or well) on the front page. His or her text was visible on the front page for a particularly short or long time before it was “cleared”.</li></ul><p>Perhaps an article was even particularly high up on the front page, in best case on the first position, which is (something like) the digital counterpart to the cover of our print news magazine. Furthermore, the top position on the front page is accompanied by a comprehensive presentation of the article: big picture, rich headline, lots of attention. <strong>The article reach in terms of visitor count is therefore dependent on stay time, positioning, and teaser format. A fair assessment is taking such information into account</strong> because editorial departments are positioned differently on the front page, which results from urgency and exclusivity of respective topics.</p><p>In 2020, our team at Spiegel Research was commissioned by the editors-in-chief and management to determine articles and topics that have been successful in respective editorial departments. We worked methodically multifaceted, to be able to show not only quantitative audience reach, but also qualitative user engagement in terms of reading depth. We developed an index that sets reading time in relation to text length.² In addition, to go beyond pure usage behavior, interviews were conducted, and surveys were carried out to better understand perceptions, needs and motives of our readers. This present text does not cover our approach on intersecting research methods, neither it is about our reading depth index, it is about the already mentioned partial aspect of <strong>audience reach being depended on front page positioning and format and how to determine the accompanied position bias</strong>.</p><h4>Data source</h4><p>Without data there is no knowledge. A few scrapers would quickly be written, in order to save spiegel.de’s front page every five minutes along with article formats and positions. An adequate data set could later be built from this. But given the relatively short project duration of a few weeks, there would not be a particularly large history in our data base. Alternatives were needed, so we were lucky to find out that <strong>every previous state of our front page is historized as a JSON file when delivered</strong>. Et voilá, we now have access to every recent version of the front page, practically having our own wayback machine with all articles and their meta information, positions and formats as they appeared on the front page. A bunch of code was written to convert the ridiculously nested JSON’s into dataframes and then suddenly it showed up, a big table just screaming for analysis. For all we knew, no one at Spiegel had previously attempted such analysis. We neither had any knowledge of similar projects from other publishers. With a slightly different scope, there is an analysis on news front pages based on data from the New York Times. The NYT, of course. It’s always the NYT. An external developer analyzed topic coverage and stay times.³</p><p>Building on top of our historic front page data, our scope was to <strong>develop a new (engagement-by-position) metric. Depending on position and teaser format, it should inform us if a certain article has over or under performed</strong> on a CTR (click-through rate) basis. But what exactly does over or under performance mean in this context? The CTR of an article tells us about the ratio of readers on the front page and those who actually click on that article. An example illustrates: Yesterday between 9:00 and 9:10 a.m. spiegel.de had 1 million readers on the front page and 100.000 of them clicked on the first teaser, so this article had a CTR of 10%. The big advantage of CTR’s compared to absolute numbers like clicks is the temporal independence. For comparison: If we had 10.000 readers on our front page yesterday between 3:00 and 3:10 and 1.000 of clicked on the first article, it also had a CTR of 10%. The same CTR, regardless of time and visitor volume, represents the actual performance of various front page positions. In relation to our research project, we were interested in an article’s CTR and how the average CTR of articles with similar format and positioning compares to it. To put it simple: <strong>Does a certain article over or under perform if we keep positioning and format constant, and therefore eliminating position bias? Comparative values ​​in terms of historical CTR values ​​for certain position/format combinations (we would later call this the “baseline”) came from our newly created stay time database.</strong> As the database grows over time, the system learns and the average baseline CTR values ​​will become more accurate. An article could have reached many readers because it was placed prominently and in large format at a favorable time on the front page, but could still be evaluated to be an under performer in terms of CTR. This is essential information if we undertake a fair evaluation of articles and topics for the various editorial departments and lead our research project to success.</p><h4>Research insights</h4><p>Rooted on our data base, we carried out various analyses. At this point it should be mentioned that journalistic aspects such as the thematic relevance of articles did not concern our team. These aspects and their relationship to our findings were task of the editors-in-chief and management. For us, the key issue is to <strong>give more context to total numbers such as audience reach and feed untested hypotheses with data</strong>. With that in mind, let’s look at some of our findings:</p><ul><li>A frequently stated hypothesis is a “structural disadvantage” of certain editorial departments because their articles tend to appear on lower positions and therefore will be less visible. To clear the smoke, we aggregated all articles from the database per editorial department and position and added up their stay times. We clearly saw <strong>correlations between certain departments and positions</strong>. In addition, while summing up the overall stay times across positions and departments, dissimilarity became visible, which is partly due to the different number of published articles, since some departments are simply larger than others and have higher outputs. For better understanding, a number on paid articles could be helpful: On average, around 35% of all visitors on our paid content come from the curated news section of the front page, so it is a key feeding tool.</li><li>To move on, our study shows a clear <strong>difference between the CTR’s height and whether an article has been free or paid content</strong>. Since articles on the front page can be clearly differentiated by our specific paid icon (S+) and many readers already know about the payment barriers, they do not even click on these articles anymore.</li><li>Also, part of the study was the calculation of CTR values depending on front page positions. We also found <strong>deviating CTR values ​​for different positions</strong>. Regardless of whether it was a free or paid article, it can be observed that CTR values fall sharply after the first positions.</li><li>Further analysis shows CTR dependence on teaser format. Split up <strong>according to various teaser formats, we saw varying average CTR values</strong> along with significantly stronger performance of big openers. As I already mentioned earlier, a comprehensive presentation of the article on the front page with a big picture and a rich headline obviously gains more attention.</li><li>Combining the approaches described above, we calculated <strong>average CTR values for every combination of position, format and article type (paid/free) and saved a massive number of historic values to our data base</strong>. These data became highly valuable knowledge, as we can then calculate comparative values ​​for the performance of an article in comparison to similarly played articles (the “baseline”). With this framework in mind, it could be possible to deduce whether an article is over or under performing, keeping important factors like stay time constant and removing position bias to get a normalized total number of visitors.</li></ul><h4>Evaluation framework</h4><p>Building on top of our descriptive research insights, what does a comparison between an article’s CTR and its “baseline” look like? To put it simply, the following analysis is based on just a single article, whereby the logic can be applied to any other text. The graphic shows the CTR from the time the article first appeared on the front page at 5:25 p.m. until it was removed at 7:45 p.m. At a total of 2.15 hours, the article stayed for quite short on the front page and gained an average CTR of 0.67% (continuous black line). But was it still clicked well, and did it arouse the interest of our readers? The pure stay time is not enough ground for evaluation, but teaser format and position must also be considered. We also know from our analytics-tool, this article ended up with a low number of total visitors and subscriptions. If we would use only this information, the article would perform poorly on an editorial department audit, comparing it to all the other stories being published.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*aGlLaHhSRouOyS3eilg7vw.png" /></figure><p>For a fair evaluation, we compared the actual CTR (solid line) with his expected baseline (dashed line). Where the actual CTR is above the baseline the article has “over performed”. For our example, we see that <strong>the article ran quite as expected or even 20.8% better than the average article with the same position and format. </strong>For the subsequent evaluation of articles, the delta between baseline and actual CTR is exciting, something like a front page indicator emerges.</p><p>This use case is intended to show why your own data on front page positioning is of high value and how this data can be used in retrospective or even real-time evaluation of articles and topics. Next steps could involve going beyond descriptive analysis and simple metrics and use machine learning to measure and remove position bias from our data.⁴</p><h3>Thanks for reading!</h3><p>I hope you liked it, if so, just make it clap and <a href="https://twitter.com/helloheld">follow me</a> on Twitter.</p><h4>References</h4><p>[1] <a href="https://themarkup.org/series/google-the-giant">themarkup.org/google-the-giant</a></p><p><a href="#_ftnref3">[2]</a> <a href="http://devspiegel.medium.com/das-spiegel-radar-wie-wir-mit-kennzahlen-arbeiten-und-mit-welchen-d26610f60561">devspiegel.medium.com</a></p><p><a href="#_ftnref4">[3]</a> <a href="http://blog.tjcx.me/p/tracking-front-page-new-york-times">blog.tjcx.me</a></p><p><a href="#_ftnref5">[4]</a> <a href="https://static.googleusercontent.com/media/research.google.com/de//pubs/archive/46485.pdf">research.google.com</a>, <a href="https://medium.com/adobetech/evaluating-addressing-position-bias-in-adobe-stock-search-9807b11ee268">medium.com/adobetech</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9a781537276" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nutzung von Open Data im Rahmen der Radverkehrsstrategie]]></title>
            <link>https://medium.com/@helloheld/nutzung-von-open-data-im-rahmen-der-radverkehrsstrategie-9cf85a813c48?source=rss-a085c7ebee7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cf85a813c48</guid>
            <category><![CDATA[bike-sharing]]></category>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-journalism]]></category>
            <category><![CDATA[r-programming]]></category>
            <dc:creator><![CDATA[Alex Held]]></dc:creator>
            <pubDate>Tue, 18 Jul 2017 08:35:08 GMT</pubDate>
            <atom:updated>2017-07-18T09:04:12.182Z</atom:updated>
            <content:encoded><![CDATA[<h3>Nutzung von Open Data im Rahmen der Radverkehrsstrategie Hamburg</h3><p>Wie kann Open Data Hamburg zu einer fahrradfreundlicheren Stadt machen?</p><h4>Vision von SPD und Grünen für Hamburg: 25 Prozent aufs Rad</h4><p><em>“Wir wollen den Radverkehr in Hamburg weiter ausbauen. Unser Ziel ist es, innerhalb der 2020er Jahre den Radverkehrsanteil von 12 auf 25 Prozent zu steigern.”</em> Diese Zielsetzung haben SPD und Grüne für die Legislaturperiode 2015 bis 2020 in Hamburg im Koalitionsvertrag formuliert. Bis in die 20er Jahre soll der Radverkehrsanteil somit auf 25 Prozent in Hamburg steigen. Dazu sind viele bauliche Maßnahmen notwendig. Zum Beispiel sollen jährlich 50 Kilometer Radverkehrsanlagen gebaut oder saniert werden. [<a href="http://www.gruene-fraktion-hamburg.de/rad/de/fahrradstadt">Quelle</a>]</p><h4>Fahrradstadt Hamburg? Von wegen!</h4><p>Im ADFC-Fahrradklima-Test 2016 konnten Radfahrer bewerten, wie fahrradfreundlich ihre Stadt ist. Mit einer Gesamtnote von 4,2 (schlechtester Wert wie in der Schule: 6) landet Hamburg dabei auf Platz 31 — von 39 Städten. Mit einer krachenden 5,3 wurde die Falschparkerkontrolle auf Radwegen am negativsten bewertet, gefolgt von der Verkehrsführung an Baustellen und der (oft nicht ausreichend vorhandenen) Breite der Radwege. [<a href="http://www.zeit.de/hamburg/stadtleben/2017-05/elbvertiefung-22-05-2017">Quelle</a>]</p><h4>Qualitätssicherung und Erfolgskontrolle</h4><p>Auf Grundlage welcher Informationen werden Entscheidungen für die Radverkehrsstrategie in Hamburg getroffen? Hier sind drei Faktoren zu nennen:</p><ul><li>Das Radverkehrsaufkommen in Hamburg wird an 38 sogenannten Fahrradpegeln an einem möglichst repräsentativen Tag pro Jahr manuell erhoben. Auch unter Berücksichtigung der Streuung der Jahreswerte z. B. auf Grund der Witterung zeigt die aus diesen Pegelmessungen resultierende Kurve einen seit Jahren ansteigenden Trend, wobei die Grafik nur bis einschließlich 2014 geht (siehe Grafik unten).</li><li>Zur Ergänzung und Weiterentwicklung der Fahrradpegel wird die Einführung neuer Zähltechniken wie z. B. automatischer Dauerzählstellen geprüft; bei Erfolg sollen diese weiter ausgebaut werden. Auf Initiative des Bezirksamtes Hamburg-Mitte wurde im Oktober 2014 eine erste derartige Dauerzählstelle für den Radverkehr am Radweg An der Alster / Höhe GurlittInsel eingerichtet.</li><li>Der Anteil des Radverkehrs am Gesamtverkehrsaufkommen, d. h. an allen zurückgelegten Wegen (Modal-Split) wird über Haushaltsbefragungen ermittelt. Daten liegen nur für die Jahre vor, in denen die bundesweite Studie „Mobilität in Deutschland“ (MiD) durchgeführt wurde. Bei der letzten Befragung im Jahr 2008 wurde für Hamburg eben ein Radverkehrsanteil von 12,2 % ermittelt. Das Bundesministerium für Verkehr und digitale Infrastruktur (BMVI) bereitet zurzeit eine Aktualisierung der MiD-Studie für das Erhebungsjahr 2016 vor, deren Ergebnisse voraussichtlich im Jahr 2017 verfügbar sein werden (liegt Stand 15.07.2017 nicht vor). [<a href="http://www.hamburg.de/contentblob/4538022/f80b2806d74a33dba4f404dd319d10ce/data/fortschrittsbericht-2015.pdf">Quelle</a>]</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*1tSlB3vqwe8DTYfK.png" /><figcaption>Offizielle Grafik der Stadt Hamburg zum Fahrradverkehrsaufkommen bis 2014</figcaption></figure><p>Die letzte offiziell veröffentlichte Grafik zu den Messergebnissen der 38 Fahrradpegel entstammen dem Fortschrittsbericht der Radverkehrsstrategie für Hamburg aus dem Jahr 2015 und decken wie gesagt nur Daten bis 2014 ab (siehe Grafik oben). Aktuellere Zahlen finden sich aber in der Antwort des Senats auf eine schriftliche Anfrage des Abgeordneten Martin Bill (GRÜNE) vom 16.02.2017. In den hierzu veröffentlichten Daten finden sich die genauen Standorte der Messungen sowie Messergebnisse der 38 Fahrradpegel von 2011 bis 2016. [<a href="https://kleineanfragen.de/hamburg/21/8015-hamburger-fahrradpegel-messungen-2016">Quelle</a>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CasfY6dqK2s1say8.PNG" /><figcaption>Orte der 38 Fahrradpegel in Hamburg</figcaption></figure><p>Anhand der obigen Karte lässt sich zunächst erkennen an welchen Standorten die jährlichen Messungen durchgeführt werden. In mehreren Fällen werden an nur einer Kreuzung an bis zu vier Messpunkten Daten erfasst. Betrachtet man die Karte generell, kann eigentlich nur von einer sehr punktuellen Erfassungen des Radverkehrs geprochen werden. Betrachtet man weiterhin die Messergebnisse der einzelnen Stationen lassen sich keine eindeutigen Trends erkennen (siehe Grafik unten). Vielmehr zeigt sich ein sehr zufälliges Bild an den Messpunkten welches zwischen Auf- und Abwärtstrends sowie Kurvenbewegungen schwankt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q_bVJUYF3R8nPwx7.png" /><figcaption>Messergebnisse der 38 Fahrradpegel in Hamburg</figcaption></figure><p>Summiert man die Ergebnisse der 38 Fahrradpegel pro Jahr lässt sich der Aufwärtstrend der offiziellen Grafik nur bis 2014 bestätigen. Ab 2014 scheint die Zunahme des Radverkehrsaufkommens in Hamburg zu stagnieren, wobei man bei Betrachtungen der einzelnen Messpunkte generell schwierig überhaupt einen gemeinsamen Trend ausmachen kann (auch wenn es z.B. das <a href="http://www.abendblatt.de/nachrichten/article209774943/Zahl-der-Radfahrer-in-Hamburg-deutlich-gestiegen.html">Hamburger Abendblatt</a> trotzdem gerne tut).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g5TNQ19-inyFAjID.png" /><figcaption>Fahrradverkehrsaufkommen von 2011 und 2016 (Summe der 38 Fahrradpegel)</figcaption></figure><h4>Nutzung von Open Data im Rahmen der Radverkehrsstrategie</h4><p>Im Hamburgischen Transparenzgesetz (HmbTG) ist eine umfassende Veröffentlichungspflicht von bislang verwaltungsinternen Informationen festgelegt, um die vorhandenen Informationsmöglichkeiten zu verbessern, die Beteiligung der Bürgerinnen und Bürger zu fördern und die Kontrolle staatlichen Handelns zu unterstützen. Im Transparenzportal Hamburg stehen täglich neue Informationen zur Verfügung, die von der klassischen Verwaltung (z.B. Bezirksämter und Fachbehörden) und von öffentlichen Unternehmen (z.B. HafenCity Hamburg GmbH und Elbe-Werkstätten) für das Portal bereitgestellt werden. [<a href="http://www.hamburg.de/bkm/transparenzportal/">Quelle</a>]</p><p>Stellt sich nun die Frage wie die sogenannten “Offenen Daten” genutzt werden können um die Radverkehrsstrategie zu unterstützen? Eine erste Option sind die Daten von StadtRAD Hamburg, die über das Open-Data-Portal der Deutschen Bahn zur Verfügung stehen. Aus diesen Daten habe ich eine Karte erstellt. Die Karte nutzt zunächst die Buchungsdaten für den gesamten Monat Juni 2016. Je heller eine Straße desto mehr Leute sind diese Route gefahren. Die roten Punkte markieren die StadtRAD-Stationen. Ich habe ebenfalls eine <a href="https://github.com/kruse-alex/bike_sharing">interaktive Karte</a> erstellt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EBPP-0RA733yuANA.png" /><figcaption>Nutzung von StadtRAD Hamburg im Juni 2016</figcaption></figure><p>Eine zweite Option sind die Daten von Strava, einem sozialen Netzwerk zum internetbasierten Tracking von Radtouren. Die zurückgelegten Strecken können von den Nutzern über eine APP samt Informationen zur Dauer, der Steigung, der Geschwindigkeit, dem Krafteinsatz, der Temperatur oder dem Energieumsatz abgespeichert werden. Strava Metro, ein Ableger von Strava, stellt den Städten und deren Planern die Rohdaten zur Verfügung. 76 Städte und Regionen weltweit nutzen bereits die Daten von Strava Metro zur Planung der Fahrradinfrastruktur (Stand 2016). Die Karte unten zeigt einen <a href="http://labs.strava.com/heatmap/#12/-350.05085/53.57905/blue/bike">Ausschnitt der Strava Metro Daten für Hamburg</a>. [<a href="https://www.theguardian.com/lifeandstyle/2016/may/09/city-planners-cycling-data-strava-tracking-app">Quelle</a>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ohHp0v0gmVeyReCY.PNG" /><figcaption>Strava Daten für den Bereich Hamburg</figcaption></figure><p>Diese zwei Open-Data-Ansätze könnten bei der künftigen Planung der Radverkehrsstrategie für Hamburg berücksichtigt werden. Die Daten und der Code für die obenstehenden Grafiken sind auf meinem <a href="https://github.com/kruse-alex/hh_bike_usage#nutzung-von-open-data-im-rahmen-der-radverkehrsstrategie">Github</a> verfügbar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cf85a813c48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>