<?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 Edward Kibardin on Medium]]></title>
        <description><![CDATA[Stories by Edward Kibardin on Medium]]></description>
        <link>https://medium.com/@infalco?source=rss-cd7b5a2b87e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*8xHqzYhfQWwzKMn73TIivA.png</url>
            <title>Stories by Edward Kibardin on Medium</title>
            <link>https://medium.com/@infalco?source=rss-cd7b5a2b87e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:06:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@infalco/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[What 6.5 million of #coronavirus tweets and Deep Topological Analysis reveal about people’s…]]></title>
            <link>https://medium.com/data-science/what-6-5-million-of-coronavirus-tweets-and-deep-topological-analysis-reveal-about-peoples-3354b7442690?source=rss-cd7b5a2b87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3354b7442690</guid>
            <category><![CDATA[topological-data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Edward Kibardin]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 14:28:40 GMT</pubDate>
            <atom:updated>2020-06-15T14:54:59.992Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What 6.5 million of #coronavirus tweets and deep topological analysis reveal about people’s thoughts during the pandemic</strong></h3><h4><strong>We apply Topological Data Analysis and Deep Learning to a large volume of textual data to reveal hidden patterns in discussions</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16T_709demtHcUB0rkAc8A.png" /></figure><ul><li><strong>6.5 million tweets under #coronavirus analysed using Deep Topological Analysis</strong></li><li><strong>US-centered themes dominate the discussion</strong></li><li><strong>For every 1 tweet against, there are 20 pro-lockdown</strong></li><li><strong>‘Thanks to key workers’ is the highest positive sentiment, followed by friends and birthdays</strong></li><li><strong>‘Stay home, save lives’ tops negative sentiments as people complain about others not following the rules</strong></li><li><strong>For a short time #cancelstudentdebt</strong> <strong>hashtag was the most prominent spike</strong></li><li><strong>Dataset is available to </strong><a href="https://datarefiner.com/feed/covid-twitter"><strong>download</strong></a></li></ul><h3>The problem</h3><p>Text analysis is a complex task, especially if we’re talking about large volumes of text. Unlike numerical data, text needs to be transformed in ways that require heavy computation and complex models before we can extract any insight.</p><p>This information should be presented to users in a simple form for analysis. A user should be able to interact with the platform and understand the data quickly.</p><p>In this article I’m covering an example with Twitter data, but the same approach has been applied to user comments, corporate documents or<a href="https://towardsdatascience.com/using-topological-text-analysis-for-covid-19-open-research-challenge-184d44bb92a6"> COVID-19 scientific papers</a>.</p><p><a href="https://towardsdatascience.com/using-topological-text-analysis-for-covid-19-open-research-challenge-184d44bb92a6">Using topological text analysis for COVID-19 Open Research Challenge</a></p><h3>The solution</h3><p><a href="https://datarefiner.com/">DataRefiner</a> was designed as a simple and powerful platform to analyse complex data such as customer activities, sensors in IoT or texts:</p><p><a href="https://datarefiner.com/">Data analytics and segmentation platform for IoT, user activity or texts</a></p><p>At its core is Deep Topological Analysis — a method that unlike traditional business intelligence tools allows to display complex, multi-dimensional data in an easy-to-understand form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*ijjKVayYwZFMCBjSARfYlA.gif" /><figcaption>3D projection of topological structure</figcaption></figure><p>Topological analysis together with Deep Learning and language models like <a href="https://github.com/google-research/bert">BERT</a> deliver the best results for text analysis. It helps to segment words into themes and shows the links between them.</p><h3>#coronavirus data</h3><p>A few months into the COVID-19 pandemic, we analysed 6 556 683 tweets under the #coronavirus hashtag using Deep Topological Analysis (DTA) on the DataRefiner platform. If you’d like to have a go yourself, the dataset — Twitter messages, posted between 8 March and 24 April 2020 in the English language, — can be downloaded from <a href="https://datarefiner.com/feed/covid-twitter">https://datarefiner.com/feed/covid-twitter</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G78_nAF5W7oQ0k-qN9JiBw.png" /><figcaption>Number of tweets per hour. People talked about #coronavirus in March much more than in April</figcaption></figure><h3>Topological Map for 6.5 million tweets</h3><p>As we uploaded the dataset onto the DataRefiner platform, it automatically created a topological map of tweets where every dot on the map is at least one tweet or a number of tweets with very similar content. While the system segmented the dataset in a completely unsupervised manner, analysts are able to zoom in to a single tweet or cluster of tweets to understand the results better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zprGNVzhKkTrT7pLDanXg.png" /><figcaption>Topological map of 6.5 million tweets under the #coronavirus hashtag</figcaption></figure><p>All of the tweets were segmented into 30 main themes that you can see on the map plus 170 themes all grouped in the ‘General discussion’ cluster. The sizes of clusters on the map reflect the popularity of the topics. Neighbouring clusters have a similar content and keywords. Generic clusters are in the centre of the structure, while specific and unusual content is on the periphery.</p><p>The largest cluster “General discussions” contains a lot of smaller themes that do not contain any specific sets of keywords and, thus, are hard to segment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*Ljms_xlnt5tn9fSh8KJ2og.gif" /><figcaption>DataRefiner user interface for text analysis</figcaption></figure><h4>Retweets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlWO7wCR8TH3aIXuKaB7bQ.png" /></figure><p>Most retweets are in the “News: specific patients / cases” cluster, which consists of news about Boris Johnson (UK PM) and other confirmed cases.</p><h3>Sentiment analysis</h3><p>Twitter sentiment analysis is a popular request, and we offer sentiment analysis on the DataRefiner platform. It’s no surprise that “Thanks to key workers” tops the positive sentiments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBhAiAXE7MGjrLiIpXgtvQ.png" /><figcaption>Topological map with sentiment_positive parameter presented as colours</figcaption></figure><p>If we zoom in, here’s what people said in their tweets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZ4JwtU7f1CZKXb6pET-yQ.png" /><figcaption>The most representative tweets in selected clusters are displayed for user review under the text summary tab.</figcaption></figure><p>DataRefiner sentiment analysis provides 3 levels: (negative, neutral and positive). To compare sentiments across all clusters, we plotted the relative positive score on a bar chart. Usually, neutral sentiment is the most common one, so an average positive sentiment value of around 28% is a pretty good result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYnkk9kyaL3e7VkKkCD70Q.png" /></figure><p>Unfortunately, or perhaps as the topic of COVID-19 dictates, the level of negative sentiments were significantly higher than the positive ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOJ7TuAd4TkxJQ1L7hlCOw.png" /></figure><h4>Stay home — stay safe</h4><p><strong>‘</strong>Stay home — stay safe’ theme emerged at the top of the negative sentiments. One of the reasons is multiple comments by people blaming others for breaking the lockdown rules. Also it looks like the system picked up a passive aggressive tone of pro-lockdown messages by some commentators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCc9jqtgDrTw2eaw3h1KAQ.png" /><figcaption>“Stay home — stay safe” cluster analysis</figcaption></figure><h4>President Trump / <strong>Vice President </strong>Pence</h4><p>There are often heated discussions around President Trump. It can be either liberals blaming the government or conservatives blaming liberals. Either way, it always gets very messy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7F2KIaLzTHPYG2t0zhlskw.png" /><figcaption>“President Trump / Vice President Pence” cluster analysis</figcaption></figure><h3>Pro lockdown / against lockdown discussions — <strong>active learning case study</strong></h3><p>In this analysis we wanted to find out how many people were pro lockdown and how many were against.</p><p>Here are a couple of example tweets against lockdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*AV6aIEvXRBFg18s0Vo5ypw.png" /><figcaption><a href="https://twitter.com/MWORLEY09775126/status/1253663993731977217">Original tweet</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*L9zLMatfT2zVQKGuoclweA.png" /><figcaption><a href="https://twitter.com/HarryLaneGroup/status/1253643906870321152">Original tweet</a></figcaption></figure><p>Examples pro lockdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*9Q_8GqGQYPQty7DOF9pJgA.png" /><figcaption><a href="https://twitter.com/truthrox/status/1253773183523700738">Original tweet</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*3VAKdq3kvkS48sv7hDh8ig.png" /><figcaption><a href="https://twitter.com/RMufc20/status/1253496663597027331">Original tweet</a></figcaption></figure><h4>Active learning</h4><p>As you can see from the tweets above, the language in these examples can vary a lot. In reality there are much more vibrant discussions going on on this topic. It would be impossible to distinguish these two classes using just topology and clusterisation, so I used supervised machine learning.</p><p>To speed up the process I used an active learning approach:</p><ol><li>users add labels to a number of initial samples;</li><li>the classifier learns the model and applies it to the rest of the data;</li><li>the classifier identifies new samples which it is most unsure of and asks the user to classify them.</li></ol><p>This process repeats until the model has learned a good representation. This approach helps users to focus on the most challenging samples and speed up the training. Here a diagram to explain the approach:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*QN8hK5O_oONKiAP8.png" /><figcaption>Schematic process of active learning. Source: <a href="https://blog.cloudera.com/a-guide-to-learning-with-limited-labeled-data/">blog.cloudera.com</a></figcaption></figure><h4>Results on the map</h4><p>To our surprise, most of the pro-lockdown discussions happened in the “Stay home — stay safe” cluster, which we’ve discussed previously. In this case the topological approach was able to automatically identify language related to pro-lockdown in an unsupervised way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44RZN1n2CH8oChvWDepkdw.png" /><figcaption>Pro-lockdown parameter value overlaid over topological map</figcaption></figure><p>To prove this we can plot it as a bar chart per cluster:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahQV8J4beFi5GlUOUqNzzw.png" /></figure><p>… and, for comparison, the graph relating to tweets against lockdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qjewr8ou3WxBXS58829ng.png" /></figure><p>Please note, the scales of the axes of these plots are different. <strong>Contrary to popular belief, there are significantly less tweets against lockdown versus pro-lockdown, almost 1 : 20.</strong> Tweets against and pro-lockdown are grouped at the same cluster “Stay home — stay safe” as mentioned before.</p><h3>Discussions over time</h3><p>Another important part of this research is to identify trends per cluster and how they change over time. In this part we remove cluster “General discussions” from the analysis and focus on the main themes, extracted by our topological structure. A stacked area chart of these discussions is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qp7ofcy5HYB5-z83MjdQmw.png" /></figure><p>This is the relative number of tweets per cluster over 1.5 months of data for all 30 clusters. You can see there are a lot of spikes in discussions. Below is an alternative view as a line chart with the highest spikes annotated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16T_709demtHcUB0rkAc8A.png" /></figure><p>There is a lot going on here, so let’s review some of these clusters separately.</p><p>As well as the cluster called “Emergency in New York”, there are other emergencies captured here. One of them is a significant spike in relation to lifting the blockade in Yemen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6fFPWC__vjphZrjJN71uQ.png" /></figure><p>CDC (Centers for Disease Control and Prevention) in the US played a major role in public communication and tackling the crisis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WQao1qJBAqdJMoLtMpxYtA.png" /></figure><p>Most of the time discussion of mental health was relatively muted, however for a few hours there was a noticeable spike of discussion, linked to the it <strong>#cancelstudentdebt</strong> hashtag. This represented the most prominent spike across all clusters throughout the entire period of analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMmcXrG3WtdcQvH2S3oQcA.png" /></figure><p>WHO (World Health Organisation) is part of the United Nations, and played a significant part during the pandemic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqlLRns1lBEXkL9z3PoM-Q.png" /></figure><p>The discussions related to WHO and UN actions were reflected in many other clusters, but most overlaps were within the “President Trump / Pence” cluster. Trump is always in twitter discussions and there are a lot of trends and subtopics going on here. I’ve highlighted the two most important ones:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_R1327iDoc3got8fpVrSBA.png" /></figure><p>The most important activity spikes about the UK are both related to Boris Jonson being tested positive and later his hospitalisation and intensive care treatment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zadi1fLW3w9J28BKrPK5gw.png" /></figure><h3>Conclusion</h3><p>The emergence of modern Natural Language Processing and Deep Topological Analysis allows us to have a new look on the popular task of Twitter data mining. Text data holds a lot of information and it’s important to allow users to access it and to understand it.</p><p>There is no other approach on the market, which allows users to process this volume of data and at the same time provide such visual fidelity for analysis of these complex data sets. This technology is proven to give exceptional results for many industries.</p><p><strong>Original: </strong><a href="https://datarefiner.com/feed/covid-twitter"><strong>https://datarefiner.com/feed/covid-twitter</strong></a></p><p><a href="https://datarefiner.com/">DataRefiner.com</a> is a UK based company that specialises in analysis and segmentation of complex data like user activity, sensor or texts. The DataRefiner platform is the result of many years of refining approaches discussed here, but is applied across a wide variety of industries, including aviation, social networks, fraud detection and more. For more information regarding your industry, contact us on ed@datarefiner.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3354b7442690" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/what-6-5-million-of-coronavirus-tweets-and-deep-topological-analysis-reveal-about-peoples-3354b7442690">What 6.5 million of #coronavirus tweets and Deep Topological Analysis reveal about people’s…</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[Using topological text analysis for COVID-19 Open Research Challenge]]></title>
            <link>https://medium.com/data-science/using-topological-text-analysis-for-covid-19-open-research-challenge-184d44bb92a6?source=rss-cd7b5a2b87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/184d44bb92a6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[tda]]></category>
            <category><![CDATA[data-mining]]></category>
            <dc:creator><![CDATA[Edward Kibardin]]></dc:creator>
            <pubDate>Tue, 24 Mar 2020 14:40:58 GMT</pubDate>
            <atom:updated>2020-04-09T12:25:49.154Z</atom:updated>
            <content:encoded><![CDATA[<h4>My take on COVID-19 Kaggle challenge analysis of scientific white papers. This research is a first step to help specialist in virusology, pharmacy and microbiology to find answers to the problem.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22zU5e42tFmBB36yobMD6w.png" /><figcaption>Visualisation of topological map using DataRefiner platform</figcaption></figure><p><strong><em>Note from the editors:</em></strong><em> </em><a href="http://towardsdatascience.com/"><em>Towards Data Science</em></a><em> is a Medium publication primarily based on the study of data science and machine learning. We are not health professionals or epidemiologists, and the opinions of this article should not be interpreted as professional advice. To learn more about the coronavirus pandemic, you can click </em><a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports"><em>here</em></a><em>.</em></p><p>On 12 March the White House and a coalition of leading research groups prepared the COVID-19 Open Research Dataset in response to the coronavirus pandemic. The dataset consists of over 44,000 scholarly articles, including over 29,000 with full text, about COVID-19, SARS-CoV-2, and related coronaviruses. This freely available dataset is provided to the global research community to apply recent advances in natural language processing and other AI techniques to generate new insights in support of the ongoing fight against this infectious disease. Kaggle page for this challenge can be found here: <a href="https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge">https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge</a></p><h3><strong>Calling all subject matter experts</strong></h3><p>If you are a specialist in virusology, pharmacy or microbiology, we would love to give you FREE access to the below analysis on DataRefiner platform to help speed up scientific research and tackle the virus. Please contact us on ed@datarefiner.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Z4lJXoAsPQxFm6C7KqAug.png" /><figcaption>The dataset was created by the Allen Institute for AI in partnership with the Chan Zuckerberg Initiative, Georgetown University’s Center for Security and Emerging Technology, Microsoft Research, and the National Library of Medicine — National Institutes of Health, in coordination with The White House Office of Science and Technology Policy</figcaption></figure><h3><strong>The challenge</strong></h3><p>The challenge have specified a number of questions for the community:</p><p><strong>What is known about transmission, incubation, and environmental stability?</strong><br>What do we know about natural history, transmission, and diagnostics for the virus? What have we learned about infection prevention and control?</p><p><strong>What do we know about COVID-19 risk factors?<br></strong>What have we learned from epidemiological studies?</p><p><strong>What do we know about virus genetics, origin, and evolution?<br></strong>What do we know about the virus origin and management measures at the human-animal interface?</p><p><strong>What do we know about non-pharmaceutical interventions?<br></strong>What is known about equity and barriers to compliance for non-pharmaceutical interventions?</p><p><strong>What do we know about vaccines and therapeutics?<br></strong>What has been published concerning research and development and evaluation efforts of vaccines and therapeutics?</p><p><strong>What do we know about diagnostics and surveillance?<br></strong>What has been published concerning systematic, holistic approach to diagnostics (from the public health surveillance perspective to being able to predict clinical outcomes)?</p><h3><strong>Data Preprocessing</strong></h3><p>We used both abstract and full text of the documents for this analysis. Often the documents in this dataset have only abstract or just full text. Merging them together helped to present the full picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssA2vpJLVNmiDACgL8GGFA.png" /><figcaption>Data quality dashboard from kaggle page for the challenge</figcaption></figure><p>Abstracts in scientific papers are normally quite complex and one way to analyse them is to split them into sentences. In this case each sentence is a small piece of information, which should be enough for automatic analysis.</p><p>This is an example of one of the abstracts:</p><blockquote>‘The basic reproduction number of an infectious agent is the average number of infections one case can generate over the course of the infectious period, in a naïve, uninfected population. It is well-known that the estimation of this number may vary due to several methodological issues, including different assumptions and choice of parameters, utilized models, used datasets and estimation period. With the spreading of the novel coronavirus (2019-nCoV) infection, the reproduction number has been found to vary, reflecting the dynamics of transmission of the coronavirus outbreak as well as the case reporting rate. Due to significant variations in the control strategies, which have been changing over time, and thanks to the introduction of detection technologies that have been rapidly improved, enabling to shorten the time from infection/symptoms onset to diagnosis, leading to faster confirmation of the new coronavirus cases, our previous estimations on the transmission risk of the 2019-nCoV need to be revised.’</blockquote><p>For our analysis we split it into sentences:</p><ul><li><em>The basic reproduction number of an infectious agent is the average number of infections one case can generate over the course of the infectious period, in a naïve, uninfected population</em></li><li><em>It is well-known that the estimation of this number may vary due to several methodological issues, including different assumptions and choice of parameters, utilized models, used datasets and estimation period</em></li><li><em>With the spreading of the novel coronavirus (2019-nCoV) infection, the reproduction number has been found to vary, reflecting the dynamics of transmission of the coronavirus outbreak as well as the case reporting rate</em></li><li><em>Due to significant variations in the control strategies, which have been changing over time, and thanks to the introduction of detection technologies that have been rapidly improved, enabling to shorten the time from infection/symptoms onset to diagnosis, leading to faster confirmation of the new coronavirus cases, our previous estimations on the transmission risk of the 2019-nCoV need to be revised</em></li></ul><p>As you can see, each sentence is actually enough to express a piece of information needed for researchers to at least partially answer a question. In total we’ve got 291281 sentences — that is enough for analysis.</p><h3><strong>Analysis of sentences</strong></h3><p>All sentences were analysed and presented as a topological map below, each point on the map is one or more sentences, similar sentences are placed close to each other. Clusters are formed automatically and represent different themes in the text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ymo8U3GkngJjw9_jpwY14g.png" /><figcaption>Topological map of all sentences from the dataset</figcaption></figure><p>As we trained the model, in addition to automatic clusterisation, we configured it to extract sentences with keywords like “origin”, “stability”, “evolution”, “risk” and “transmission”. We separated these clusters on the map manually using a semi-supervised approach.</p><p>Let’s have a look at the “origin” cluster and what knowledge we can extract from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1J5NeKgycYF_kDN5PJZZQg.png" /><figcaption>Top keywords for “origin” cluster</figcaption></figure><p>These top keywords were automatically extracted from the sentences, we show top 20 here, the rest will be used to find top summary sentences that describe the cluster the best way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVT6T_-iyD52MF7KiUWNdw.png" /><figcaption>Top sentences selected automatically for origin cluster</figcaption></figure><p>Top sentences describing the cluster ‘origin’ have been identified automatically too and are quite accurate.</p><p>Let’s take a look at another cluster, — this time the one, which was formed completely automatically, — “coronavirus sars / sars coronavirus / coronavirus mers”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6DAu--GrGmqkJnGo78r-hg.png" /><figcaption>Top keywords for “coronavirus sars / sars coronavirus / coronavirus mers” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gP9CTdIPw9mIwSeTP7ybkg.gif" /><figcaption>User investigates top summary sentences for automatically discovered cluster “coronavirus sars / sars coronavirus / coronavirus mers”</figcaption></figure><h3><strong>Analysis of sentences related to “transmission” keyword as a separate map</strong></h3><p>In addition to analysis on a whole set of sentences, the system is able to process sentences related to a particular keyword, for example “transmission”. Below is a map of 8198 sentences related to the keyword “transmission”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76bt1E1BsgHQ3oJGLc9w_Q.png" /><figcaption>Map for “transmission” keyword</figcaption></figure><p>The dataset consists not only of coronavirus white papers but a large number of papers about other recent viruses such as “SARS” (Severe acute respiratory syndrome-related coronavirus), “MARS” (Middle East respiratory syndrome-related coronavirus), “TGEV” Transmissible gastroenteritis virus and some other. We have reviewed different clusters separately to understand all the key nuggets of information about transmission of this and similar diseases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seg5PUq-AC_02SeYXaoxCg.png" /><figcaption>Description of “infectious disease / method use / use mathematical” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuRj4o3UY9IwziCjOe0nvg.png" /><figcaption>Description of “transmissible gastroenteritis / cell / virus” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBnRQtaOssmPIWcaRGObrQ.png" /><figcaption>Description of “disease outbreak / control effort / infectious disease” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pitIQKWCn1Uy3cH7LI_GOA.png" /><figcaption>Description of “estimate probability / model / rate / transmission rate” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2rn2LUBF4puJqNhYBxG_w.png" /><figcaption>Description of “control measure / reduce / human / sars” cluster</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfN6B_Ll1_L0e8_CnlgHDw.png" /><figcaption>Description of “infectious disease / number contact” cluster</figcaption></figure><p>The system automatically identified the clusters of key words and segmented the dataset among them. The closer the clusters are, the more similar terms and topics they have. This helps to understand high-level grouping and to find meta-clusters in the data.</p><h3><strong>Conclusion</strong></h3><p>Topological segmentation of text helps researchers to systematise the knowledge in a vast amount of textual information available right now. While performing the segmentation and analysing each segment, the whole volume of data gets split into clusters, which simplifies the analysis and understanding of the data. The identified keywords and summary sentences help to find the most representative pieces of information and speed up the search for an answer.</p><p>Analysis for this article was performed using the DataRefiner platform. We’ve been using this technology in a number of companies not just for text analysis but also for user activity and IoT segmentation. Get in touch if you’d like to learn more or book a demo.</p><p><strong>Original: </strong><a href="https://datarefiner.com/feed/covid-challenge"><strong>https://datarefiner.com/feed/covid-challenge</strong></a></p><p>****</p><p><a href="https://datarefiner.com/">DataRefiner.com</a> is a UK based company that specialises in analysis and segmentation of complex data like user activity, sensor or texts. The DataRefiner platform is the result of many years of refining approaches discussed here, but is applied across a wide variety of industries, including aviation, social networks, fraud detection and more. For more information regarding your industry, contact us on ed@datarefiner.com</p><ul><li><strong>What do we know about diagnostics and surveillance?</strong></li></ul><p>What has been published concerning systematic, holistic approach to diagnostics (from the public health surveillance perspective to being able to predict clinical outcomes)?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=184d44bb92a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/using-topological-text-analysis-for-covid-19-open-research-challenge-184d44bb92a6">Using topological text analysis for COVID-19 Open Research Challenge</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[AI for AI (artificial insemination) — Deep Topological Analysis for sensor data]]></title>
            <link>https://medium.com/data-science/ai-for-ai-artificial-insemination-deep-topological-analysis-for-sensor-data-9fceccb59bf?source=rss-cd7b5a2b87e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fceccb59bf</guid>
            <category><![CDATA[datarefiner]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[topological-data-analysis]]></category>
            <dc:creator><![CDATA[Edward Kibardin]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 12:03:13 GMT</pubDate>
            <atom:updated>2020-09-01T17:49:02.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI for AI (artificial insemination) — Deep Topological Analysis for sensor data</h3><h4>Find out how TDA and Deep Learning classifies events and discovers hidden patterns in IoT activity sensors’ data streams</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plPEjNmaOOX6s-GK95xDPg.jpeg" /><figcaption><a href="https://www.shutterstock.com/image-photo/four-funny-cows-looking-camera-481623085">Shutterstock</a></figcaption></figure><p>Suppose you have multiple sensor data streams, and you want to be able to classify events. It could be using sensors on an aircraft engine to detect suboptimal patterns or medical diagnostics to detect a disease.</p><ul><li>Position (compass data in three directions)</li><li>Velocity (gyroscope in three directions)</li><li>Acceleration (accelerometer in three directions)</li></ul><p>This type of data is impossible to analyse using popular Business Intelligence tools such as PowerBI or Tableau. Such systems will not be able to capture complex patterns in the data and will not allow you to explore them.</p><p>However, this is a good situation for Deep Topological Analysis (DTA) and visual understanding of complex patterns. DTA is an example of unsupervised machine learning, meaning you don’t need to label your data prior to analysis. The output is a clustering of behaviour which is faithful to the underlying data but is intuitive to the subject matter expert. This more refined method allows you to discover <strong>what you don’t know that you don’t know</strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*o3ERnLHSeMWk6gG97hx6Cg.png" /><figcaption>High-level representation of the process</figcaption></figure><p><strong>First, a human example</strong></p><p>A mobile phone is a typical source of movement data: position, velocity and acceleration in the x, y, z planes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*tbtVtfXcN4HmXTWE43uP_Q.gif" /><figcaption><em>Mobile phone activity clusterisation, includes the video provided by smartlab [1]</em></figcaption></figure><p>Running DTA on this data allows you to see how the algorithm works (see picture). Each dot is a short window in time, and the closer together two dots are, the more similar the behaviour occurring in that window. Natural clusters of behaviour emerge from the algorithm, and these clusters can easily be identified by the subject matter expert (in this case, we’re all familiar with moving around a house).</p><p>The broad clusters — standing, sitting and lying down are immediately apparent. But zooming into the visual shows much more interesting sub-structure, such as walking upstairs, walking downstairs and other types of interesting behaviour. This type of visual gives a broad distribution of clusters which makes sense to those that know the area, and in many cases, the sub structure<em> </em>augments understanding of the subject matter expert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJkhr7Y4l6BqGjYDo55yQQ.png" /><figcaption><em>Segmentation of activities, captured using mobile phone</em></figcaption></figure><p><strong>AI for a limping cow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/0*qEu4EHUYsBZxJIn0" /><figcaption>Not a limping cow, <a href="https://www.youtube.com/watch?v=5KaltD0Z6ww">dancing cow youtube video</a></figcaption></figure><p>A good farmer knows his cows, and can tell when they come into heat. But doing it remotely with a low cost collar is a multi-million dollar data science challenge. Each collar has a set of sensors installed that capture data 24/7 and send a snapshot of metrics every minute. Each sensor is generating 9 data streams:</p><ul><li>Position (compass data in three directions)</li><li>Velocity (gyroscope in three directions)</li><li>Acceleration (accelerometer in three directions)</li></ul><p>So there’s lots of data to analyse per cow, and we could be talking about thousands of cows.</p><p>A simple way to solve this problem would be to measure distance walked — cows cover a lot more distance when in heat. However, a more refined analysis involves inferring events and behaviours of said cow. This results in a much more complete picture of what the cows are doing and what state they are in. Importantly, this type of analysis allows you to discover activity that you <em>didn’t previously know about, </em>such as limping or disease<em>.</em></p><p>When data gets large, standard approaches quickly end up missing detail or failing altogether. Some approaches that don’t work are:</p><ol><li>Principal Component Analysis (PCA) — very fast, but often not applicable for human analysis as prone to generate blobs</li><li>Multidimensional scaling (MDS) — fails to identify structure, too slow and memory hungry for large data volumes</li><li>T-SNE — has some successes but often misses detail, or finds too much details and leads to fake clusters which misrepresent the actual structure of the data</li><li>UMAP — is a good recent algorithm, which performs better than t-SNE, although it doesn’t have enough learning power as deep learning to capture complex high-level patterns from the data</li></ol><p>Data from cow sensors was processed using discussed algorithms. All algorithms were executed with default meta-parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urp_d7qtJh5cLakMRP533A.png" /><figcaption><em>Embeddings provided by PCA, MDS, t-SNE and UMAP algorithms</em></figcaption></figure><p>As you can see, PCA and MDS fail to capture any structure from the data. t-SNE on the other side seems captures too much structure, most of which does not exist in the data. UMAP shows promising results, although the clusters are not as distinguished as DTA and the structure is somewhat blurry. Here the DTA result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4Qyn_yIXPmBCcjt1HqBHA.png" /><figcaption><em>Clusterisation of activities for 43 cows, clusters were discovered automatically, labelled by a subject matter expert</em></figcaption></figure><p>Every dot on this graph represents a 10 minutes window of every cow activity in the dataset. Dots placed together form clusters of unique activities.</p><p>By contrast, DTA maintains a lot of fine grained structure. We have evolved this approach over time and it’s our preferred method of dealing with clustering problems.</p><p>Having analysed cow sensor data at DataRefiner using DTA algorithms in a completely unsupervised way, we got a map of cow activity during several non-continues episodes. The total period was about 2000 minutes for each cow (or 83 hours); there are 43 cows on the map. Each dot represents a window of 10 minutes cow activity (sliding by minute). Separate clusters represent unique types of activity, — the further the clusters are from each other, the more different the activities are. We performed an extensive verification of the activity patterns and can confirm the segmentation is accurate.</p><p>As you can see, the cows spend the majority of their time lying and grazing/feeding but there are some other activities as well such as jumping or grass rolling.</p><p>This is how the cows are distributed across the activities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AnvjyRcpKR88G6VM62xYTg.png" /><figcaption><em>Activity distribution among clusters of 14 cows</em></figcaption></figure><p>We’ve coloured the map points according to the CowID (first 14 cows) leaving the rest grey for readability. Cows are not evenly distributed across activities and it seems each has her own preferences. By selecting a particular cow we can explore what the cow did and in which activity patterns she participated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8OlVNDhGSPMLWUR_" /><figcaption><em>Limping cow patterns animation (switch between cluster view and cow activity view)</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w8eIYAEeiDlEGHyV" /><figcaption>Cows in heat [2]</figcaption></figure><p>Cow6 had unusual activity patterns — she spent time between feeding from trough and an activity very close to walking. This is a separate cluster with a unique pattern, so after some review we found out that Cow6 was limping. She couldn’t cover long distance so her behaviour would not be normally classified as coming to a heat. However, we can see she was also active in the ‘Cow Mounting’ cluster (see pic) as they come to a heat. This way we know that we’ve got a limping cow that has come to a heat — a very refined result that might otherwise have been missed. Now it’s time for a different type of AI: artificial insemination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*psQlkOyxfhy_CldS2IuH4A.png" /><figcaption><em>The easy to use visual tool helps quickly identify the “Cow Mounting” cluster, which is a direct call to action in the farming industry.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIYXd_v2pBMMQIu851lu8w.gif" /><figcaption><em>Analysis of “Cow Mounting” cluster for limping cow6 in DataRefiner platform</em></figcaption></figure><p><strong>Deep Topological Analysis</strong></p><p>Deep Topological Analysis (DTA) is a combination of Topological Data Analysis (TDA) and Deep Generative models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZXiFVWz8UXDi_uda" /><figcaption><em>Four step process for traditional TDA calculation</em></figcaption></figure><p>The aim of the computation process is to get as close representation of multidimensional structure on 2D or 3D planes. General DTA process is the following:</p><p>1 Take cloud of points in original dimensionality and compute nested topological complexes. In this case we’ll be using Vietoris-Rips algorithm. This is a process of connecting nearby points into topological structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*EsB29R_TiTCc-yN_ExxzeA.gif" /><figcaption><em>Animation of Vietoris-Rips algorithm [3]</em></figcaption></figure><p>2 Using nested complexes compute topological persistence of this structure. Using created complexes from the previous step we can compute barcodes of the structure. These barcodes will help us to identify persistent elements of the structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*2l9We1VI7gDEN6c9Gbxz8w.png" /><figcaption><em>Generation of bar-codes from nested complexes [4]</em></figcaption></figure><p>3 Create data structure manifold using Morse theory. This step helps us to simplify the manifolds in original dimensions and allows us to transform the result for user to analyse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpoFp8Q7d4FAqLE4t8y5ig.gif" /><figcaption><em>Torus with the height function as the Morse function. On the left we see a plane indicating the level, in the middle the sub-level set and on the right the corresponding complex [5]</em></figcaption></figure><p>4 Extract Reeb graphs from multidimensional structure. Calculate 2D and 3D representations using results from Reeb Graph and Morse theory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnq8PDR_HcLeMF4bx7aC9Q.png" /><figcaption><em>Reeb graph computation through spectral clustering [6]</em></figcaption></figure><p>Steps 3 and 4 are very computationally expensive, especially for large volumes of data with large dimensionality. To make these steps feasible for real-life applications we have to perform approximation and estimations.</p><p>Here, instead of doing a simple approximation we use generative models to get not just a simple approximation, but also learn complex patterns from the data. This helps to get better clusterisation and pattern separation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M1oKtJG-NlPJfbSW" /><figcaption><em>Using GAN for Topological Calculations (A modified version of OpenAI’s GAN diagram [7])</em></figcaption></figure><p><strong>Conclusion</strong></p><p>At DataRefiner we’ve been using this technology in a number of companies not just for IoT analysis but also for user activity and text segmentation. Get in touch if you’d like to learn more or book a demo.</p><p>****</p><p><a href="https://datarefiner.com/">DataRefiner.com</a> is a UK based company that specialises in analysis and segmentation of complex data like user activity, sensor or texts. The DataRefiner platform is the result of many years refining approaches discussed here, but is applied across a wide variety of industries, including aviation, social networks, fraud detection and more. For more information regarding your industry, contact us on ed@datarefiner.com</p><p><strong>Original: </strong><a href="https://datarefiner.com/feed/ai-for-ai"><strong>https://datarefiner.com/feed/ai-for-ai</strong></a></p><p>References:</p><p>[1] Smartphone-Based Recognition of Human Activities and Postural Transitions, <a href="https://sites.google.com/view/smartlabunige">https://sites.google.com/view/smartlabunige</a></p><p>[2] NADIS. National Animal Disease Information Service. Cows in heat: <a href="https://www.nadis.org.uk/disease-a-z/cattle/fertility-in-dairy-herds/part-2-heat-detection/">https://www.nadis.org.uk/disease-a-z/cattle/fertility-in-dairy-herds/part-2-heat-detection/</a></p><p>[3] Vietoris-Rips algorithm animation: <a href="https://towardsdatascience.com/the-shape-that-survives-the-noise-f0a2a89018c6">https://towardsdatascience.com/the-shape-that-survives-the-noise-f0a2a89018c6</a></p><p>[4] Topological Data Analysis — Persistent Homology: <a href="http://outlace.com/TDApart1.html">http://outlace.com/TDApart1.html</a></p><p>[5] Mathijs Wintraecken: <a href="https://www-sop.inria.fr/members/Mathijs.Wintraecken/Mathematica.html">https://www-sop.inria.fr/members/Mathijs.Wintraecken/Mathematica.html</a></p><p>[6] Teng Ma ; Zhuangzhi Wu ; Pei Luo ; Lu Feng. Reeb graph computation through spectral clustering, 2011</p><p>[7] Original OpenAI GAN diagram: <a href="https://openai.com/blog/generative-models/">https://openai.com/blog/generative-models/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fceccb59bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/ai-for-ai-artificial-insemination-deep-topological-analysis-for-sensor-data-9fceccb59bf">AI for AI (artificial insemination) — Deep Topological Analysis for sensor data</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>