<?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 Anwar Said on Medium]]></title>
        <description><![CDATA[Stories by Anwar Said on Medium]]></description>
        <link>https://medium.com/@anwarsaid135?source=rss-4873fd0116ad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iZFX8ez-kigXpUCg</url>
            <title>Stories by Anwar Said on Medium</title>
            <link>https://medium.com/@anwarsaid135?source=rss-4873fd0116ad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:34:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anwarsaid135/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[Knowledge Graphs for Smarter Forecasting]]></title>
            <link>https://medium.com/@anwarsaid135/knowledge-graphs-for-smarter-forecasting-06b8e5da7858?source=rss-4873fd0116ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/06b8e5da7858</guid>
            <category><![CDATA[ai-in-finance]]></category>
            <category><![CDATA[ai-in-healthcare]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[healthcare-innovations]]></category>
            <category><![CDATA[graph-technology]]></category>
            <dc:creator><![CDATA[Anwar Said]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 14:51:39 GMT</pubDate>
            <atom:updated>2025-12-28T14:51:39.267Z</atom:updated>
            <content:encoded><![CDATA[<p>More and more, the most valuable insights in data may not be hidden in individual records, but in how things connect. Whether it is people moving money between accounts or patients moving through a healthcare system, relationships and sequences often tell a richer story than standalone data points. This is why representing data as graphs has become such a powerful and popular approach across both research and industry.</p><p>In this blog, we will explore how knowledge graphs help make sense of these connections and turn them into useful forecasts. We will look at what knowledge graphs are, why they matter, and how they are being applied in finance and healthcare to solve real problems like fraud detection and understanding patient journeys. Through simple and practical examples, you will see why knowledge graphs are often a natural and effective way to work with complex, connected data. Let us get started.</p><p>Let us begin with a familiar example from finance. Imagine a world where users hold multiple types of accounts across different banks. Each user has a history of transactions with other users, and every transaction happens at a specific moment in time. Now suppose we want to identify fraudulent users or suspicious transactions in this system.</p><p>We can also find a similar story in healthcare. Imagine a patient moving through a hospital system over time. They arrive with a symptom, receive a diagnosis, undergo labs, start a treatment, and later return for follow ups. Each of these steps is connected, ordered, and influenced by what happened before. Two patients may share the same diagnosis, yet their journeys can look very different depending on timing, comorbidities, medication changes, or care settings. Among many applications, one can try to find similar patient journeys to profile patients with risks, and readmission etc.</p><p>To perform modeling on such modalities, a common first step would be to extract user attributes for instance in the finance setting or transaction level features and train a machine learning model. While this approach may work in some situations, it often misses the bigger picture. Many fraud patterns do not live in individual attributes. They emerge from how actions are connected over time and how sequences of transactions unfold. Similarly, if we only compare patient attributes in isolation, or try to engineer features from journeys, we may not be able to capture the details which are important for modeling. Moreover, when studying patient journeys, we are rarely interested only in static attributes. What truly matters is the order of diagnoses, treatments, and outcomes, and how these sequences differ across patients.</p><p>In both finance and healthcare, the challenge may not be the lack of data, but the lack of structure that reflects how the real world works. This is where graph technology, and more specifically knowledge graphs, truly shine.</p><p>Knowledge graphs are designed to represent complex systems made up of different types of entities and relationships. Nodes can represent users, accounts, patients, or medications, while relationships describe how these entities are connected. Both nodes and relationships can carry their own properties, such as time, type, or value, adding rich context to the data.</p><p>Returning to our finance example, users and accounts naturally become nodes, while relationships like has account or transfers money capture how they interact. Transaction times, amounts, and categories can be stored directly on these relationships. This way, the data structure closely mirrors the real system it represents, making patterns easier to discover and reason about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*RsCddbeVppvxRx4VHgEX0w.png" /><figcaption>Financial Graph (taken from <a href="https://docs.cloud.google.com/spanner/docs/graph/schema-overview">Google Spanner Graph guide</a>)</figcaption></figure><p>In healthcare, electronic health record (EHR) data can be represented in a very similar way. Patients, organizations, diagnoses, procedures, providers, drugs, and claims can all be modeled as nodes, with relationships capturing events such as receives treatment, undergoes test, or files claim. Timing, dosage, costs, and care settings can be stored directly on these connections. When modeled this way, a patient record becomes more than a collection of tables. It becomes a connected story of care over time, making it much easier to follow patient journeys, compare similar cases, and forecast outcomes such as readmission risk, treatment response, or unexpected costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*JHaZzxqLmJGvSvcTMuxnrw.png" /><figcaption>EHR KG Example (taken from <a href="https://medium.com/neo4j/modeling-patient-journeys-with-neo4j-d0785fbbf5a2">here</a>)</figcaption></figure><p>So how does this kind of representation help with forecasting and decision making?</p><p>That is where the real value of knowledge graphs begins to unfold. When data is modeled as a knowledge graph, modeling becomes much more natural and effective. Consider the financial graph where persons and accounts are nodes, and relationships describe who owns which account and how money flows between them. In this connected view, fraud often reveals itself not through a single suspicious transaction, but through repeating patterns of behavior. For example, a small group of people may control many accounts, move money in tight loops, or transfer similar amounts across short time windows. These patterns are difficult to detect when data is flattened into rows and columns, because traditional models focus on individual records. In a knowledge graph, however, the relationships themselves become the signal. The model can reason over paths, sequences, and neighborhoods in the graph, allowing it to flag users not just for what they did once, but for how their behavior fits into a larger connected pattern. This may make fraud detection more robust, more explainable, and far closer to how real financial systems operate.</p><p>A very similar idea applies when we look at patient journeys in healthcare. A patient visits a clinic, receives a diagnosis, starts a treatment, undergoes tests, and later returns for follow up care. Each step is linked, timed, and influenced by what came before. When we view patients through this connected lens, similarity is no longer based on shared attributes alone, such as age or diagnosis code. Instead, patients are considered similar if their journeys through the healthcare system follow comparable paths. Two patients may start in different places but converge toward similar treatment sequences or outcomes. Knowledge graphs make it possible to compare these paths directly, helping analysts identify patients who are likely to respond similarly to treatments, face similar risks, or require early intervention. This kind of insight is difficult to achieve with traditional models, but becomes intuitive when patient data is represented as a connected story rather than isolated records. Work like this such as the one in <a href="https://neo4j.com/blog/healthcare/improving-patient-outcomes-algorithms-graphconnect/">AstraZeneca</a> with Neo4j and by <a href="https://info.tigergraph.com/hubfs/Collateral/TigerGraph-UnitedHealthGroup-Success-Story.pdf">United Health Group using TigerGraph</a> has already shown how effective knowledge graphs can be in real healthcare settings.</p><p>To support this kind of analysis in practice, choosing the right graph database plays an important role. Modern graph databases are designed to store, query, and scale knowledge graphs efficiently, even when the data becomes very large and complex. Solutions like Neo4j have become popular in industry thanks to a mature ecosystem, a strong community, and a rich set of tools, including a powerful graph data science library that makes it easier to run similarity, path based, and community level analyses directly on patient or financial graphs. At the same time, newer offerings like Google Spanner Graph are especially attractive for organizations already operating in the cloud. Since the graph layer sits directly on top of existing data in Spanner, there is no need to duplicate or move large datasets. This makes it possible to add graph capabilities while benefiting from exceptional horizontal scaling and strong consistency. Together, these platforms show that building and operating knowledge graphs at scale is no longer a research challenge, but a practical and accessible option for real world healthcare and financial systems.</p><p>To wrap things up, knowledge graphs offer a powerful and intuitive way to tackle complex forecasting problems across many domains. By focusing on relationships, sequences, and connected behavior rather than isolated attributes, they help uncover patterns that are much closer to how real systems actually work. While we explored examples from finance and healthcare, the same ideas apply far beyond these areas, from supply chains and cybersecurity to recommendation systems and smart cities.</p><p>Whether it is identifying fraudulent users through connected transaction behavior or understanding patient journeys through linked clinical events, knowledge graphs turn raw data into meaningful insight that supports better decisions at scale. In the next blog, we will take a hands on look at how to build a financial knowledge graph using Google Spanner Graph, and walk through practical design choices, data modeling, and scaling considerations. If you are curious about bringing graph intelligence into real world systems, stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06b8e5da7858" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>