<?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 Deven Vagal on Medium]]></title>
        <description><![CDATA[Stories by Deven Vagal on Medium]]></description>
        <link>https://medium.com/@dev.vagal?source=rss-9a4a9cfe5ef9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b0sPrPOPftYVTmspD1Mqug.png</url>
            <title>Stories by Deven Vagal on Medium</title>
            <link>https://medium.com/@dev.vagal?source=rss-9a4a9cfe5ef9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:50:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dev.vagal/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 Graph that Reasons the Air India Flight 171 Crash]]></title>
            <link>https://medium.com/datafluids/knowledge-graphs-that-reason-the-air-india-flight-171-crash-d22eabdedba7?source=rss-9a4a9cfe5ef9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d22eabdedba7</guid>
            <category><![CDATA[aviation]]></category>
            <category><![CDATA[graph-algorithms]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <dc:creator><![CDATA[Deven Vagal]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 03:32:46 GMT</pubDate>
            <atom:updated>2026-06-29T05:14:50.164Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On 12 June 2025, the Air India Flight 171 crashed 32 seconds after take off from the Ahmedabad Airport in India and claimed the lives of 260 people. While we wait for the Final report on the accident, there are many theories and hypotheses on the possible causes that could have led the Boeing 787–8 Dreamliner to fail. However we need to be cognizant that these are speculations and there is no solid evidence yet.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oemj6UryZm-qdZDlr-7SoQ.jpeg" /><figcaption>Wireframe Model of Boeing 787–8 Dreamliner illustrating Critical Systems (generated using leonardo.ai)</figcaption></figure><h3>TL;DR</h3><p>The goal of this paper is to adopt an unbiased approach, free of all preconceived notions on the <em>AI 171 air disaster</em>. It looks at the Boeing 787–8 Dreamliner as a network of interconnected components that work together cohesively, and model them as a Knowledge Graph. The nodes of the Graph represent system components and its edges indicate inter-dependencies and interactions between its components.</p><blockquote>A Graph data structure will help mitigate the risks of siloed research where the focus is only on how individual components work or fail. We apply Graph theory and Graph algorithms to identify systemic dependencies among components that could cause cascading failures.</blockquote><p>We will also leverage the concept of <em>PageRank</em> — a Math algorithm and a fundamental concept in Graph theory and Linear Algebra. <em>PageRank</em> can help us evaluate the importance of specific components in the aircraft by interpreting their connections and interactions with other components [19].</p><blockquote>PageRank can help answer a fundamental question: “Which system is the aircraft most DEPENDENT on?” — the single point of failure whose loss starves most downstream systems.</blockquote><p>The code used to generate the <em>Ontology,</em> construct the <em>Knowledge Graph</em> and execute <em>Graph Algorithms</em> are checked into this <a href="https://github.com/dvagal/Boeing-787-Ontology-Knowledge-Graph-Medium">Github repo</a> . It also includes guidelines to execute the code and the sequence of steps.</p><h3>1. Building an Ontology — A Mental Model</h3><p>Building an Ontology and eventually a Knowledge Graph helps us to measure interconnectedness of each system, subsystem or component and also discover new internal dependencies in the system that are not apparent in the data. I spent days trying different approaches to model the Dreamliner systems to finally realize that we need Ontologies at multiple levels — each level will have its own granularity. In this paper, we only focus on the coarsest grain — Level 1 (L1). There are opportunities to increase the breath and depth of our research and define Data models that are more granular.</p><blockquote>Our goal towards building an Ontology and a Knowledge Graph is to create a mental model to reason and extrapolate new information based on existing data.</blockquote><blockquote>Rather than cataloguing the Boeing systems exhaustively, our focus for the initial Ontology was driven by questioning the air disaster event. Every modeling choice was tested against — does this node or edge help explain how the AI 171 air disaster culminate, or how it could have been prevented?</blockquote><blockquote>This kept L1 small and legible while ensuring the structures that matter to the cascade — the convergence hubs and the propagation paths — are explicit [5][6].</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEKx1WyC3PyMoYgnzu-Quw.png" /><figcaption><strong>Figure 1: Ontology Level 1 — Interconnectedness between High Level Systems in Boeing 787</strong></figcaption></figure><pre># =============================================================================<br># ONTOLOGY LEVEL 1: INTER-CONNECTEDNESS BETWEEN HIGH-LEVEL SYSTEM<br># Boeing 787 Dreamliner - Coarsest Grain<br># =============================================================================<br><br>**Purpose**: Provides a bird&#39;s-eye view of how the 787&#39;s major systems relate to each other. Designed to be understandable by non-technical stakeholders<br><br>**Entity Classes**:<br>- `FlightCriticalSystem` -- Systems whose failure can cause aircraft loss<br>- `NonFlightCriticalSystem` -- Systems that degrade operations but shouldn&#39;t cause crashes<br>- `SharedInfrastructure` -- The coupling point connecting both categories<br><br>**Key Relationship Types**:<br>- `dependsOn` -- Power or data dependency<br>- `sharesInfrastructureWith` -- Common power/data coupling (creates correlated failure risk)<br>- `canPropagateFaultTo` -- Fault cascade path<br>- `providesBackupFor` -- Emergency/redundancy relationship<br>- `monitorsHealthOf` -- Health monitoring dependency<br><br>**Central Insight**: The Electrical Power System and Common Core System are identified as **shared infrastructure** -- the convergence hubs through which ALL other systems are coupled. A failure in either hub can propagate to any dependent system, regardless of whether that system is flight-critical or not.<br><br>**Instance Count**: 14 system instances, 5 relationship types, ~50 relationship assertions.</pre><h4>1. 1 Purpose &amp; Scope for the Level-1 Ontology</h4><p>The <em>L1 Ontology</em> is the coarsest grain of a potential three-level Data model that is driven by the question: W<em>hat architectural conditions led to the fatal sequence of events for the Air India 171 (AI 171) on 12 June 2025?</em>[5][6]. L1 is intentionally focused on a non-technical audience: it captures the major aircraft systems and their <em>dependencies</em> and <em>fault pathways</em> between them. More finer grained entities including <em>components, buses</em>, and <em>timelines</em> are outside the scope of<em> L1 Ontology</em>.</p><blockquote>The scope of L1 Ontology is based on the central thesis — that the 787’s &quot;<em>More Electric Aircraft</em>&quot; architecture couples systems that traditional designs keep isolated, so that a single disturbance can propagate across safety-criticality boundaries [1][2][5].</blockquote><p>The Ontology therefore had to make <em>dependsOn</em> (for coupling) and <em>canPropagateFaultTo</em> (for fault propagation<em>)</em> first-class, queryable <em>relationships</em> in the Knowledge Graph<em>.</em></p><h4>1.2 Methodology overview</h4><p>The L1 ontology was produced with an evidence-based, systems-failure research pipeline: (<em>a) source gathering → (b) question framing → (c) class design → (d) instance selection → (e) relationship-type design → (f)evidence-grounded assertion → (g) iterative refinement → (h) formal encoding and validation</em>. Each entity and edge in the Graph is required to trace back to at least one cited source or to an established engineering fact about the airframe [1][2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaQndJTpZ1clLgJEbTwBqQ.png" /><figcaption><strong>Figure 2: L1 Ontology Construction Process</strong></figcaption></figure><p>The formal modeling followed standard Ontology-engineering practice — enumerate the domain and scope, reuse a small upper class hierarchy, define classes before properties, and name individuals consistently — as described in Ontology Development 101 [16], and encoded in OWL/RDF serialized as Turtle per the W3C specifications [14][15].</p><h4>1.3 Source corpus — Evidence Base</h4><p>The L1 Ontology draws on four categories of source, all open-source:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4bZumVdYMmCAk-1puu0WA.png" /><figcaption><strong>Figure 3: L1 Ontology Evidence Base</strong></figcaption></figure><p>1. <em>OEM / type-design documentation </em>— the Hamilton Sundstrand 787 electrical system training course [1] and the FAA Special Conditions governing the 787’s electrical power conversion and distribution system [2]. These define the real systems, buses, and power architecture that become L1 nodes.</p><p>2. <em>Peer-reviewed reliability and fault-detection research</em> — data-driven reliability analysis of the 787 [3] and work on fault detection/isolation in<br>more-electric aircraft [4]. These justify treating the electrical and network layers as reliability-critical shared infrastructure.</p><p>3. <em>Incident-specific investigation material </em>— The Peninsula&#39;s reconstruction of the AI 171 electrical cascade [5], the AAIB India preliminary report [6], and the Safety Matters Foundation photogrammetric analysis of RAT deployment timing [13]. These ground the fault-propagation edges.</p><p>4. <em>Regulatory directives </em>— FAA AD 2020-06092 on the Common Core System 51-day stale-data vulnerability [7] (with independent analysis by IOActive<br>[8]), SAIB NM-18-33 on fuel-control-switch locking [9], AD 2019-19013 on the<br>stabilizer pivot pin [10], AD 2025-09-12 on water ingress into electronics<br>bays [11], and the NTSB APU battery-fire report [12]. These corroborate that the modeled systems have documented, recurring failure modes.</p><h4>1.4 <em>Class Hierarchy Design and Rationale</em></h4><p>A minimal three-tier class hierarchy was chosen:<br><br><em>‘AircraftSystem’ (root)</em></p><p><em>— ‘SharedInfrastructure’</em></p><p><em>— ‘FlightCriticalSystem’</em></p><p><em>— ‘NonFlightCriticalSystem’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BhPK5bS9UFK-_jnL0hdNMQ.png" /><figcaption><strong>Figure 4: L1 Ontology Class Hierarchy &amp; Rationale</strong></figcaption></figure><p><strong>Rationale for the Class hierarchy:</strong></p><ol><li>The <em>flight-critical / non-flight-critical </em>split mirrors the regulatory safety-criticality classification used in 787 type certification [2][6].</li><li>The crucial design decision was adding a third subclass — <em>‘SharedInfrastructure’</em>, for the Electrical Power System and the Common Core System.</li><li>Standard taxonomies would file these under one criticality bucket; but the AI 171 evidence shows their defining property is that they are shared by both critical and non-critical systems, making them the <em>convergence hubs </em>where coupling occurs [1][5].</li><li>Elevating &quot;<em>shared infrastructure</em>&quot; to its own class encodes the central architectural insight directly in the type system rather than leaving it implicit.</li></ol><h4>1.5 Instance Selection (the 16 systems)</h4><p>16 major systems were selected as individuals — two shared-infrastructure<br>hubs, eight flight-critical systems, and six non-flight-critical systems. The<br>selection criterion was *relevance to the cascade or to the aircraft&#39;s primary function, drawn from the electrical/architecture sources [1][2] and the incident record [5][6].</p><p>For example, the Fuel System and Engine Control (FADEC) are included because un-commanded fuel CUTOFF and dual-engine thrust loss are the proximate accident events [6][9]; the Nitrogen Generation System and Environmental Control System are included because their HVDC loads and moisture control were implicated in the arc event [5][11].</p><h4>1.6 Relationships Design &amp; Rationale</h4><p>Five <em>relationships</em> were defined, each chosen to capture a distinct risk-relevant relation rather than generic association:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JeznMVOoSRNjtXUZXcE-Qw.png" /><figcaption>Table 1: Relationships defined in L1 Ontology and what they capture</figcaption></figure><p><strong>Rationale for the Relationships:</strong></p><ol><li>Separating ‘<em>dependsOn</em>’ from ‘<em>canPropagateFaultTo</em>’ is deliberate:<br>dependency runs toward a resource, while a fault propagates away from a source — and the AI 171 analysis turns on that directional distinction (example: Power transients propagating out of the Electrical system into Fuel Control) [5].</li><li>Making ‘<em>sharesInfrastructureWith’</em> symmetric reflects that <em>shared buses</em> couple both partners equally [1].</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7XaiTdmXggxN1Ziz3yw0HA.png" /><figcaption><strong>Figure 5: Orphan Node refinement</strong></figcaption></figure><h3>2. Knowledge Graph Construction</h3><p>The Ontology scripts were validated by converting then into Cypher scripts and loaded into Neo4j Aura database. The Cypher scripts are checked into Github <a href="https://github.com/dvagal/Boeing-787-Ontology-Knowledge-Graph-Medium/tree/main/knowledge-graph/cypher">here</a>.</p><p>After you construct the Graph, you can validate the results by executing the code snippet below to return all the nodes and edges. Figure 6 illustrates the graph displayed in Neo4j.</p><pre>MATCH (n)<br>OPTIONAL MATCH (n)-[r]-&gt;(m)<br>RETURN n, r, m;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EPEzyE1d_65E9IlOHRyfQ.png" /><figcaption><strong>Figure 6: Knowledge Graph of Boeing High Level Systems as displayed in Neo4j</strong></figcaption></figure><h3>3. PageRank and Betweenness Centrality Measures</h3><p>In the context of networks, a high centrality measure like <em>PageRank</em> or <em>Betweenness Centrality</em>, can indicate <em>high risk, </em>because it indicates it’s greater interconnectedness within the network. This can cause a potential <em>Domino effect</em> where the default of one <em>highly central</em> component or subsystem could trigger defaults in other connected components or subsystems. This amplifies <em>systemic risk</em>, essentially because the more <em>central </em>a node is, the more its failure could ripple through the network and impact other nodes, increasing the likelihood of cascading defaults [18].</p><p>The following code snippet represents the cypher code used to determine <em>PageRank. </em>The<em> </em>system with the highest <em>PageRank</em> represents the most critical system in the aircraft. The complete code to execute <em>PageRank</em> is checked in <a href="https://github.com/dvagal/Boeing-787-Ontology-Knowledge-Graph-Medium/tree/main/graph-algorithms">here</a>.</p><pre>// ============================================================================<br>// L1 CENTRALITY ANALYSIS -- DEPENDS_ON relationship<br>// Boeing 787 high-level systems ontology (derived from L1_high_level_systems.ttl)<br>// Algorithms: PageRank + Betweenness   (Neo4j Graph Data Science, GDS 2.x)<br>//<br>// Question this answers:<br>//   &quot;Which systems is the aircraft most DEPENDENT on?&quot; -- i.e. the single points<br>//   of failure whose loss starves the most downstream systems.<br>//<br>// Prerequisites:<br>//   1. Load the L1 graph first:   cypher-shell -f ../ontologies/L1_high_level_systems.cypher<br>//      (but do NOT run its TEARDOWN / DETACH DELETE section).<br>//   2. Neo4j Graph Data Science library 2.x installed (CALL gds.version()).<br>//<br>// Run:  cypher-shell -f centrality_depends_on.cypher<br>// Full method notes &amp; interpretation: centrality_analysis.md<br>// ============================================================================<br><br>// ---- 0. Drop any previous projection of the same name (idempotent) ---------<br>CALL gds.graph.drop(&#39;l1_dependsOn&#39;, false) YIELD graphName;<br><br>// ---- 1. Project the DEPENDS_ON subgraph ------------------------------------<br>// Edges point  dependent --DEPENDS_ON--&gt; dependency.<br>// NATURAL orientation =&gt; nodes with many INCOMING DEPENDS_ON edges (the most<br>// depended-upon hubs, e.g. ElectricalPowerSystem) receive the highest PageRank.<br><br>CALL gds.graph.project(<br>  &#39;l1_dependsOn&#39;,<br>  &#39;*&#39;,<br>  { DEPENDS_ON: { orientation: &#39;NATURAL&#39; } }<br>) YIELD graphName, nodeCount, relationshipCount;<br><br>// ---- 2. PageRank -- WRITE (persist as node property pr_dependsOn) ----------<br>CALL gds.pageRank.write(&#39;l1_dependsOn&#39;, {<br>  maxIterations: 100,<br>  dampingFactor: 0.85,<br>  writeProperty: &#39;pr_dependsOn&#39;<br>}) YIELD nodePropertiesWritten, ranIterations, didConverge;</pre><p><em>Betweenness Centrality</em> is also determined and written (persisted) on the graph. The complete code to execute <em>Betweenness Centrality</em> is checked in <a href="https://github.com/dvagal/Boeing-787-Ontology-Knowledge-Graph-Medium/tree/main/graph-algorithms">here</a>.</p><pre>// ---- 3. Betweenness -- WRITE (persist as node property bc_dependsOn) -------<br>CALL gds.betweenness.write(&#39;l1_dependsOn&#39;, {<br>  writeProperty: &#39;bc_dependsOn&#39;<br>}) YIELD nodePropertiesWritten, centralityDistribution;</pre><p>Finally we need a combined view of both measures — <em>Page Rank</em> and <em>Betweenness Centrality.</em> The following code snippet returns a combined output of both metrics.</p><pre>// ---- combined view of both persisted scores ------------------<br>MATCH (n)<br>WHERE n.pr_dependsOn IS NOT NULL OR n.bc_dependsOn IS NOT NULL<br>RETURN n.id        AS system,<br>       n.label     AS name,<br>       round(n.pr_dependsOn, 5) AS pagerank,<br>       round(n.bc_dependsOn, 5) AS betweenness<br>ORDER BY pagerank DESC, betweenness DESC;</pre><p>The following output is returned in tabular form below.</p><pre>╒════════════════════════════╤═══════════════════════════════════════════════════════════╤════════╤═══════════╕<br>│system                      │name                                                       │pagerank│betweenness│<br>╞════════════════════════════╪═══════════════════════════════════════════════════════════╪════════╪═══════════╡<br>│&quot;ElectricalPowerSystem&quot;     │&quot;Electrical Power Generation &amp; Distribution System (EPGSS)&quot;│1.90732 │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;CommonCoreSystem&quot;          │&quot;Data Network (CCS/CDN)&quot;                                   │0.96317 │1.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;FuelSystem&quot;                │&quot;Fuel System&quot;                                              │0.25625 │3.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;NitrogenGenerationSystem&quot;  │&quot;Nitrogen Generation System (NGS / Fire Inerter)&quot;          │0.2226  │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;EnvironmentalControlSystem&quot;│&quot;Environmental Control System (ECS)&quot;                       │0.1925  │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;EngineControlSystem&quot;       │&quot;Engine Control (FADEC)&quot;                                   │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;FlightControlSystem&quot;       │&quot;Flight Control System (FCM)&quot;                              │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;HydraulicSystem&quot;           │&quot;Hydraulic System&quot;                                         │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;StabilizerSystem&quot;          │&quot;Horizontal Stabilizer System&quot;                             │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;NavigationSystem&quot;          │&quot;Navigation &amp; Flight Management&quot;                           │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;CrewAlertingSystem&quot;        │&quot;Crew Alerting &amp; Display System&quot;                           │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;APUSystem&quot;                 │&quot;Auxiliary Power Unit (APU)&quot;                               │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;InFlightEntertainment&quot;     │&quot;In-Flight Entertainment (IFE)&quot;                            │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;CabinSystems&quot;              │&quot;Cabin Systems (Lighting, Crew Call, Climate)&quot;             │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;CargoSystem&quot;               │&quot;Cargo Environmental Monitoring&quot;                           │0.15    │0.0        │<br>├────────────────────────────┼───────────────────────────────────────────────────────────┼────────┼───────────┤<br>│&quot;MaintenanceMonitoring&quot;     │&quot;Maintenance &amp; Monitoring (CMCF/ACMF)&quot;                     │0.15    │0.0        │<br>└────────────────────────────┴───────────────────────────────────────────────────────────┴────────┴───────────┘</pre><p>The output above indicates that the Electrical Power System (EPS) has the highest <em>PageRank</em> of 1.907 and the Fuel System has the highest <em>Betweenness Centrality</em> of 3.0. the Common Core ranks next.</p><blockquote>This means that the EPS is the <em>single point of failure</em> for the aircraft. The Fuel System on the other hand acts as a <em>critical bridge</em> in the system network.</blockquote><p>We can validate our results and dive deeper by running the following code snippet for EPS system.</p><pre>// ---- 7b. FOUR tiers deep, DEPENDS_ON only (both directions) ----------------<br>MATCH path = (eps {id: &#39;ElectricalPowerSystem&#39;})-[:DEPENDS_ON*1..4]-(neighbour)<br>RETURN path;</pre><h4>3.1 Interpretation of values of PageRank and Betweenness Centrality</h4><p>There are two relations types we consider for Centrality measures — <em>DEPENDS_ON</em> and <em>CAN_PROPAGATE_FAULT_TO</em>.</p><h4>3.1.1 ‘<em>DEPENDS_ON’</em> relationship</h4><ol><li>‘<em>ElectricalPowerSystem</em>` and `<em>CommonCoreSystem</em>` dominate <em>PageRank</em> — almost every system has an incoming `DEPENDS_ON` edge to them — the two act as convergence hubs of the more-electric / network-centric architecture (see Figure 1).</li><li><em>Betweenness Centrality</em> also highlights the `<em>CommonCoreSystem</em>` and the `<em>FuelSystem</em>`, which sits between its dependencies (Electrical, CCS, NGS) and its dependents — EngineControl andAPU (see Figure 1).</li></ol><h4>3.1.2 ‘<em>CAN_PROPAGATE_FAULT_TO</em>’ relationship</h4><ol><li>When determining <em>PageRank</em>, `<em>ElectricalPowerSystem</em>` and ‘<em>CommonCoreSystem</em>` are the most dangerous originators — faults there reach the widest set of systems. EngineControlSystem is a major sink — multiple paths (Electrical→…, CCS→…, Fuel→Engine) converge on it.</li><li>For <em>Betweenness</em> the <em>FuelSystem</em> is the most critical. After modeling it as `<em>Electrical/CCS → Fuel → Engine</em>`, it becomes the relay on the catastrophic path — quantitatively the central domino this paper has set out to demonstrate. ‘<em>CargoSystem</em>` by contrast, is a near-leaf sink (it relays<br> only to `CrewAlertingSystem`) and should show low betweenness — consistent with its modelling as an early-warning canary, not a causal pivot.</li></ol><h3>4. Limitations &amp; Caveats</h3><p>The following are some limitations and caveats of our Knowledge Graph approach:</p><ol><li>Our L1 Knowledge Graph is a relatively small graph (16 nodes). The <em>PageRank </em>and<em> Betweenness </em>metrics we determined are interpretable but coarse; ties are common. We need to treat rankings as ordinal, not precise magnitudes.</li><li>Our L1 Knowledge Graph is intentionally coarse. We need more fine grained Ontologies to model component- and event-level mechanisms and for consultation before drawing engineering conclusions.</li><li>Relationships are unweighted. Both relationship types (<em>DEPENDS_ON</em> and <em>CAN_PROPAGATE_FAULT_TO) </em>are modeled without weights, so every dependency / propagation path counts equally. If failure-rate or coupling strength data is factored in at a later time, we will need to pass `relationshipWeightProperty` to weigh them.</li><li>The fault-propagation edges encode the electrical-cascade hypothesis The hypothesis is that a power transient example, HVDC arc in the aft electrical bay can electrically actuate the fuel control switch solenoids or disturb their signaling. Supported by RAT deployment ~2.5 s before the switches moved, indicating electrical failure first. | [5], [6], [13]. The AAIB final report is not released at time of this writing, so these remain hypotheses pending investigation [6][9].</li><li>When the AAIB final report is released, we will need to compare its established cascade against the graph&#39;s predicted paths, update edges/weights, and cut a v2 artifact set. Because every fault edge is currently a hypothesis pending investigation, external ground truth is the ultimate validation.</li></ol><h3>5. Future Work</h3><ol><li>The immediate next step would be to close the above gaps (Section 4) first, then to extend the analysis, descend the grain, and finally operationalize the graph. They are ordered roughly by dependency and payoff.</li><li>Build a single <em>composite risk index </em>per system — Combine the measured metrics into one Ranked score: Risk = f(<em>importance = PageRank, vulnerability = reverse PageRank, pivotality =betweenness</em>)`[19]. <em>Normalize</em> <em>(min–max) </em>and rank all 16 systems. The rationale is that <em>PageRank</em> and <em>Betweenness</em> answer different questions.</li><li>Attach `relationshipWeightProperty` values — per-flight-hour failure<br>probabilities from the data-driven reliability analysis [3] and<br>MEL/AD severity for the directives already in the corpus. Re-run all<br>centrality in weighted mode. The rationale is that an unweighted graph treats a nuisance dependency and a catastrophic one equally; weighting makes the scores risk-proportional rather than merely topological.</li><li>Cycle / <em>strongly-connected-component</em> detection — Find <em>directed cycles</em>, especially in the dependency + monitoring sub-graph. The rationale is the fault-masking loop — the monitor (`<em>MaintenanceMonitoring</em>`) depends on the very `<em>CommonCoreSystem</em>` it monitors (`<em>monitorsHealthOf</em>` rationale) — is a feedback cycle. Detecting it algorithmically turns a narrative point into a verifiable graph property.</li><li><em>Community detection</em> (<em>Louvain / Leiden</em>) — Cluster the graph and compare the clusters to the hand-assigned class hierarchy. Rationale is to test whether the data independently reproduces the <em>SharedInfrastructure / flight-critical / non-critical</em> grouping — or reveals an unexpected tightly-coupled cluster crossing the criticality boundary, which would itself be a finding.</li></ol><h3>References</h3><p><em>[1] Hamilton Sundstrand Corporation. (2011). *Boeing 787 Electrical System: System &amp; Component Description/Operation, and Maintenance Training Course.* ECCN 9E991, Rev. 2011FEB16.<br><br>[2] Federal Aviation Administration. (2007). *Special Conditions: Boeing Model 787-8 Airplane; Electrical Power Conversion and Distribution System.* Docket No. FAA-2007-27656.<br><br>[3] Pandian, G., Pecht, M., Zio, E., &amp; Hodkiewicz, M. (2020). Data-driven reliability analysis of Boeing 787 Dreamliner. *Chinese Journal of Aeronautics*, 33(7).<br><br>[4] Liu, Q., Liang, T., Huang, Z., &amp; Dinavahi, V. (2019). Real-Time FPGA-Based Hardware Neural Network for Fault Detection and Isolation in More Electric Aircraft. *IEEE Access*. DOI: 10.1109/ACCESS.2019.2950918.<br><br>[5] The Peninsula. (2025). *Part 1: Air India 171 Crash — No-Go Fault, Electric Arc.* https://thepeninsula.org.in/blog/part-1-air-india-171-crash-no-go-fault-electric-arc<br><br>[6] Aircraft Accident Investigation Bureau (AAIB), India. (2025). *Preliminary Report: Air India Flight 171, VT-ANB, June 12, 2025.* (Released July 12, 2025.)<br><br>[7] Federal Aviation Administration. (2020). *Airworthiness Directive 2020-06092* (Model 787-8/-9/-10). Common Core System 51-day stale-data monitoring vulnerability. Effective April 7, 2020.<br><br>[8] IOActive. (2020). *A Reverse Engineer&#39;s Perspective on the Boeing 787 &quot;51 days&quot; Airworthiness Directive.* https://www.ioactive.com/reverse-engineers-perspective-on-the-boeing-787-51-days-airworthiness-directive/<br><br>[9] Federal Aviation Administration. (2018). *Special Airworthiness Information Bulletin NM-18-33.* Fuel control switch locking feature potential disengagement. December 17, 2018.<br><br>[10] Federal Aviation Administration. (2019). *Airworthiness Directive 2019-19013.* Boeing 787 horizontal stabilizer pivot pin assembly inspection.<br><br>[11] Federal Aviation Administration. (2025). *Airworthiness Directive 2025-09-12* (Model 787-8/-9/-10). Water leakage into electronics equipment bays. Effective June 18, 2025.<br><br>[12] National Transportation Safety Board. (2014). *Aircraft Incident Report: Auxiliary Power Unit Battery Fire, Japan Airlines Boeing 787-8, JA829J.* NTSB/AIR-14/01.<br><br>[13] Safety Matters Foundation of India. (2025). *Photogrammetric analysis of Air India Flight 171 RAM Air Turbine deployment timing.*<br><br>[14] W3C. (2012). *OWL 2 Web Ontology Language Primer (Second Edition).* W3C Recommendation. https://www.w3.org/TR/owl2-primer/<br><br>[15] W3C. (2014). *RDF 1.1 Turtle — Terse RDF Triple Language.* W3C Recommendation. https://www.w3.org/TR/turtle/<br><br>[16] Noy, N. F., &amp; McGuinness, D. L. (2001). *Ontology Development 101: A Guide to Creating Your First Ontology.* Stanford Knowledge Systems Laboratory Technical Report KSL-01-05.</em></p><p><em>[17] </em><a href="https://en.wikipedia.org/wiki/PageRank"><em>PageRank</em></a></p><p>[18] <a href="https://www.osti.gov/servlets/purl/1873839"><em>Identification of Critical Infrastructure via PageRank</em></a></p><p>[19] <a href="https://medium.com/neo4j/modeling-risk-in-supply-chain-networks-using-pagerank-ad19321908db"><em>Risk Modeling in Supply Chain Networks using Knowledge Graphs</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d22eabdedba7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datafluids/knowledge-graphs-that-reason-the-air-india-flight-171-crash-d22eabdedba7">Knowledge Graph that Reasons the Air India Flight 171 Crash</a> was originally published in <a href="https://medium.com/datafluids">Datafluids</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: How Cascading Electrical Failures Brought Down Air India Flight 171 — the Domino Effect]]></title>
            <link>https://medium.com/datafluids/part-1-how-cascading-electrical-failures-brought-down-air-india-flight-171-the-domino-effect-5427023665da?source=rss-9a4a9cfe5ef9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5427023665da</guid>
            <category><![CDATA[air-india-crash]]></category>
            <category><![CDATA[aeronautical-engineering]]></category>
            <category><![CDATA[pilot-training]]></category>
            <category><![CDATA[boeing-787-dreamliner]]></category>
            <category><![CDATA[aviation]]></category>
            <dc:creator><![CDATA[Deven Vagal]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 00:14:20 GMT</pubDate>
            <atom:updated>2026-06-26T08:00:30.311Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is multi-part series that includes a technical investigation into the 32-second chain reaction that killed 260 people — and what it reveals about the Boeing 787’s architectural vulnerability.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6sQ7AHh9CKZk9FyJiDRhg.jpeg" /><figcaption>Image generated using leonardo.ai</figcaption></figure><h3>TL;DR</h3><p>On June 12, 2025, Air India Flight 171 lifted off from Ahmedabad at 155 knots. Half a second later, the Ram Air Turbine deployed — an emergency device that only activates when the aircraft loses normal electrical power. Three seconds after liftoff, both fuel control switches moved to CUTOFF without pilot input. Within 32 seconds, the Boeing 787–8 struck the student hostels of B.J. Medical College, 1.7 km from the runway. 241 people on board perished, along with 19 on the ground. The cockpit voice recorder captured one pilot asking: “Why did you cut off?” The other replied: “I did not do so.”</p><blockquote>This is the story of how a chain of failures — some planted years before at the factory, others building silently over weeks — converged into 32 seconds of irrecoverable catastrophe. It is a story about an aircraft that was designed to be the future of aviation, and about the hidden cost of that ambition.</blockquote><h3>The Most Electric Aircraft Ever Built</h3><p>The Boeing 787 Dreamliner was revolutionary. When it entered service in October 2011, it was the first large commercial aircraft to replace traditional pneumatic bleed-air systems with electrical power for cabin pressurization, air conditioning, wing anti-ice, and engine starting. Boeing called it the “More Electric Aircraft.”</p><p>The numbers are staggering: the 787 generates <strong>1.45 megawatts</strong> of electrical power — five times more than a conventional aircraft of similar size. Four Variable Frequency Starter Generators (two per engine) produce 230V AC at variable frequency. Power is then converted and distributed across multiple voltage levels:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_HST7UFivGMWOnuKAarbg.png" /><figcaption>Table: Distribution of Bus Types</figcaption></figure><p>But the truly radical design choice was not the power system. It was the network.</p><h3>The Common Core System: One Network to Connect Them All</h3><p>Traditional aircraft use dedicated, isolated communication paths for each system. The 787 replaced this with a <strong>Common Core System (CCS)</strong> — a shared computing platform based on ARINC 664 (Avionics Full-Duplex Switched Ethernet). General Processor Modules host software for multiple systems. ARINC 664 Cabinet Switches route data between them.</p><blockquote>This network connects <strong>22 flight-critical systems</strong> (including engine control data paths) and <strong>28+ additional functions</strong> (in-flight entertainment, cabin lighting, crew call panels, cargo monitoring).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUHxBxUKslEsoxI3P6BWyQ.png" /><figcaption>Figure 1: Ontology of Critical Systems in Boeing 787 Dreamliner</figcaption></figure><p><em>Figure 1 illustrates the CCS/CDN connects flight-critical and non-critical systems through shared infrastructure. A degradation event on the common network does not respect safety-criticality boundaries.</em></p><p>Boeing’s own internal documentation acknowledged the risk: <em>“The loss of a single component within the common core system can affect multiple systems.”</em></p><p>The 787 design philosophy was efficient. It saved weight and simplified manufacturing. But it created something that traditional aircraft architectures deliberately avoid: <strong>coupling between cabin entertainment systems and the computers that control the engines.</strong></p><h3>VT-ANB: A “Terrible Teen” With a History</h3><p>The aircraft that would become AI 171 — registration VT-ANB — was Boeing 787 <strong>line number 26</strong>. It was delivered to Air India in January 2014.</p><p>Line number 26 placed it squarely within what the industry calls the <strong>“Terrible Teens”</strong> — early-production 787s (approximately line numbers 7–55) known for acute manufacturing quality problems. Former Boeing quality official Ed Pierson documented the deficiencies:</p><ul><li>Fatigued employees performing safety-critical work</li><li>Skipped installation plans</li><li><strong>Poor electrical bonding and grounding</strong></li><li><strong>Improperly installed wire bundles</strong></li><li>Unqualified staff performing electrical work</li><li>Rushed functional systems testing</li><li>Removal of long-standing quality inspections</li></ul><p>These deficiencies produce what Pierson called “gremlins” — latent defects that generate intermittent “No Fault Found” maintenance reports. They function normally under static conditions but fail under vibration, thermal cycling, or moisture exposure.</p><blockquote>VT-ANB had accumulated <strong>41,868 flight hours</strong> by the time of the crash. It had been carrying its factory-installed “gremlins” for over eleven years.</blockquote><h3>The Warning Signs Nobody Could See</h3><p>In the weeks before June 12, the gremlins were waking up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQAG3zeNxHFXf3xewZ7SqQ.png" /><figcaption>Table: Sequence of Warning Sign Events</figcaption></figure><p>The stabilizer failures on the morning flight were particularly ominous. The stabilizer EMCU receives power from the L2/R2 bus via the Power Conversion System. Sensor failures on the same power path meant upstream power quality was already compromised.</p><blockquote>But here’s the critical problem: VT-ANB’s fault-reporting system — the Central Maintenance Computing Function (CMCF) — <strong>was itself running on the degraded core network.</strong> The system designed to alert crews and maintenance to dangerous conditions was impaired by the very condition it should have been detecting.</blockquote><h3>Fifteen Minutes Before: A NO-GO Aircraft Takes Off</h3><p>At 13:23 IST (Indian Standard Time), fifteen minutes before the fatal takeoff, ACARS telemetry from VT-ANB transmitted the following fault state to Boeing’s monitoring hub in Belleville, Illinois:</p><p>Fault CodeSystemSignificanceBPCU OPS (L+R)Both Bus Power Control Units<strong>NO-GO</strong> — unable to synchronize 115V AC busesFCM OPS (L+R+C)All three Flight Control Modules<strong>NO-GO</strong> — fly-by-wire system compromisedCMCF OPSCentral Maintenance ComputingFault-reporting system degradedGPM OPSGeneral Processor ModulesCore computing platform unstableHYDIF OPSRight hydraulic EMPHydraulic backup compromisedSTAB POS XDCRStabilizer position transducerStabilizer sensors failing</p><p>The simultaneous failure of both BPCUs and all three FCMs constitutes an unambiguous <strong>NO-GO condition</strong> under any regulatory framework. This aircraft should not have taken off.</p><p>But the fault-reporting chain had gone dark. The ACMF, CMCF, and Electronic Flight Bag systems that would normally alert the cockpit crew were themselves compromised by the core network degradation. The article from The Peninsula notes: <em>“Fault-reporting chain went dark due to core network degradation.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZKfNMno-IYoPRtU3M-O0A.png" /><figcaption><em>Figure 2: The dangerous positive feedback loop</em></figcaption></figure><p>Figure 2 illustrates the dangerous positive feedback loop — the system that detects failures is itself failing silently, allowing the aircraft to be dispatched with hidden NO-GO conditions. The aircraft was cleared for takeoff at 13:25:15 IST.</p><h3>32 Seconds</h3><p>What happened next unfolded so fast that human reaction was irrelevant. The AAIB preliminary report, released July 12, 2025, provides the flight recorder data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9iUy57RbLS1kGLI3bOELA.png" /><figcaption>Figure 3: The 32 Second Timeline</figcaption></figure><p><em>The Figure 3 illustrates the complete flight recorder timeline of AI 171, from liftoff to impact. The RAT deployment 2.5 seconds before fuel switch movement is the key evidence proving electrical failure preceded engine loss.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RUDB1UpeJWjDtB1L4K0hw.png" /><figcaption>Table: Recorder Timeline of Flight AI 171</figcaption></figure><p>The critical finding: <strong>the RAT deployed 2.5 seconds BEFORE the fuel switches moved to CUTOFF.</strong></p><p>The RAT is an emergency device that drops into the airstream to generate hydraulic and electrical power. It deploys automatically when the aircraft’s normal electrical power is lost. It is not pilot-initiated.</p><p>This timing eliminates the theory that the pilots accidentally hit the fuel switches during takeoff. The electrical system failed first. Then — as a consequence of that failure — the fuel switches moved.</p><p>The throttle levers remained at takeoff thrust until impact. The pilots never reduced power. The engines were taken from them by an electrical cascade they could not see, could not understand, and had no time to fight.</p><h3>The Six Dominoes</h3><p>Based on ACARS telemetry, AAIB flight recorder data, physical evidence, and expert analysis, the following six-stage domino effect has been reconstructed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StvKsmAI_WCloZPj7Uvq0w.png" /><figcaption><em>Figure 4: The six stages of cascading failure</em></figcaption></figure><p><em>Figure 4 illustrates the six stages of cascading failure, from latent manufacturing defects planted years earlier to irrecoverable loss of control 32 seconds after takeoff.</em></p><h4>Stage 1: Latent Degradation (Weeks/Months Before)</h4><p>“Terrible Teens” manufacturing defects — poor electrical bonding, improperly installed wire bundles — created latent preconditions in VT-ANB’s wiring. These defects produced intermittent cabin and cargo faults that accumulated over weeks. By June 9, the core network was degrading. By June 10, the nitrogen generation system had failed.</p><h4>Stage 2: Active Deterioration (Morning of June 12)</h4><p>Power quality on the L2/R2 buses degraded visibly. The morning flight AI 423 experienced IFE failures, cabin climate fluctuations, and crew call button malfunctions. During descent, the right stabilizer EMCU and stabilizer sensors failed — the first flight-critical systems to fall.</p><h4>Stage 3: Critical Threshold (15 Minutes Before Takeoff)</h4><p>Both Bus Power Control Units lost synchronization. All three Flight Control Modules reported errors. The core network degraded further, and the fault masking loop took hold — the maintenance computing systems that should have flagged these NO-GO conditions were themselves compromised.</p><h4>Stage 4: Arc Event (0.5 Seconds After Liftoff)</h4><p>The aft zonal dryer had failed (ACARS message 167280002), meaning moisture control in the aft power distribution bay was lost. Water exposure degraded insulation on high-voltage components. At or near the moment of liftoff, a <strong>high-voltage arc</strong> ignited on the CMSC R2 inverter in the +/-270V HVDC system.</p><p>The arc sent massive voltage transients surging through every connected bus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9eRI8uqI3aQgmYDL76ZzQ.png" /><figcaption><em>Figure 5: The R2 power path</em></figcaption></figure><p><em>Figure 5 illustrates the R2 power path. A single arc fault at the CMSC R2 inverter threatens five safety-critical downstream systems simultaneously through shared power distribution.</em></p><h4>Stage 5: Cascading Propagation (3 Seconds After Liftoff)</h4><p>The arc-generated transients propagated through the interconnected power system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYi-8pQBBCCfz3PVbIBHqg.png" /><figcaption>Table: Propagation Path</figcaption></figure><p>The fuel control switches moved to CUTOFF — one second apart — cutting fuel to both engines. The one-second delay between switch movements is consistent with sequential electrical propagation, not a simultaneous mechanical event.</p><h4>Stage 6: Loss of Control (32 Seconds to Impact)</h4><p>The crew fought back. At +13 seconds, Engine 1’s fuel switch returned to RUN. The FADEC attempted an automatic restart — the engine re-lit and began spooling up. At +15 seconds, the captain opened the APU inlet door, attempting to start backup power manually.</p><p>But the APU couldn’t start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmY5NGJhLy-BL4gdshx7_A.png" /><figcaption><em>Figure 6: The lethal design trap</em></figcaption></figure><p><em>Figure 6 illusrates the lethal design trap — the APU requires a stable high-voltage source to start, but the arc event that made backup power necessary also destroyed the stable source the APU needs.</em></p><p>The APU start sequence requires:</p><ol><li>A stable high-voltage source</li><li>CMSC-mediated motor start control</li><li>Core network communication for isolation commands</li></ol><p>When the HVDC system is arcing, the BPCUs are faulting, and the CDN is corrupted, the APU’s own safety logic cannot verify safe conditions. It <strong>automatically inhibits its own start</strong> — eliminating the backup power that should save the aircraft.</p><p>Engine 2 re-lit at +17 seconds but its core speed continued falling. The FADEC introduced additional fuel attempting recovery, but the engine was decelerating. At +26 seconds, the crew transmitted MAYDAY: “lost thrust both engines.”</p><p>The aircraft reached a maximum altitude of approximately 625 feet. It was never enough.</p><p>At +32 seconds, the Enhanced Airborne Flight Recorder stopped recording. Impact.</p><h3>The Architectural Root Cause</h3><p>The AI 171 disaster was not caused by a single failed part. It was caused by an architecture.</p><p>The Boeing 787’s MEA design creates three coupling mechanisms that traditional aircraft deliberately avoid:</p><h4>1. Power Bus Coupling</h4><p>The shared R2 power path connects systems that would be isolated in conventional aircraft:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uarEhvMuLjhZ_zgxRyTK1A.png" /></figure><p>A single arc fault on the +/-270V HVDC bus threatens all five simultaneously.</p><h4>2. Data Network Coupling</h4><p>The CCS connects 22 flight-critical systems and 28 non-critical functions on the same network. Cabin entertainment, crew call panels, and cargo monitoring share infrastructure with FADEC data paths and flight control modules. A degradation event on the common network does not respect safety-criticality boundaries.</p><h4>3. Fault Masking</h4><p>The maintenance monitoring system (CMCF/ACMF) runs on the same core network it monitors. When the network degrades, the monitoring system degrades with it — creating a positive feedback loop where worsening conditions become increasingly invisible.</p><p>Boeing’s Fault Isolation Manual requires faults to be assessed <strong>in isolation</strong>. But the architecture creates <strong>correlated failures</strong>. The maintenance philosophy assumes independence; the design ensures dependence.</p><h3>Historical Precedent: The Warning Signs Were There</h3><p>The AI 171 failure mode did not emerge without warning. A decade of Airworthiness Directives documented the growing evidence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ao4F71O_SnMCx8M-DHQUDw.png" /><figcaption>Table: Historical Precedents</figcaption></figure><p>The 51-day CCS vulnerability (AD 2020–06092) deserves special attention. It revealed that after 51 continuous days of power, the CCS loses its stale-data monitoring function — silently. Combined with a network switch failure, this produces “several potentially catastrophic failure scenarios” including display of misleading attitude, altitude, airspeed, and engine data, and loss of stall/overspeed warnings.</p><p>This was classified <strong>Level A: Catastrophic.</strong></p><p>The FAA mandated repetitive power cycling of every 787 in the world. But the deeper lesson is architectural: the CCS has <strong>demonstrated, known vulnerabilities</strong> to progressive degradation that manifests as silent data corruption and loss of monitoring capability — precisely the type of degradation observed in VT-ANB in the days before the crash.</p><h3>The MEL Problem: Assessing Systems in Isolation That Don’t Fail in Isolation</h3><p>The Minimum Equipment List (MEL) allows airlines to dispatch aircraft with known deficiencies within defined time limits. For VT-ANB on June 12, 2025:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VtpwT14az7wqIILtH862UQ.png" /><figcaption>Table: System Risks</figcaption></figure><p>Each item, assessed individually, was within limits. But the MEL system has no provision for assessing <strong>combined effects</strong> when multiple deferrals exist on interconnected systems.</p><p>A degraded core network + a failed NGS + BPCU faults + FCM errors is not four independent problems. On the 787, it is one systemic crisis — and the compound risk far exceeds the sum of individual MEL assessments.</p><h3>What Must Change</h3><p>The AI 171 catastrophe exposes five urgent imperatives:</p><p><strong>1. Independent CCS Fault Containment Verification.</strong> No published independent analysis exists evaluating the full fault-propagation pathways through the 787’s Common Core System. Boeing’s safety assessment treats the CCS as providing adequate segregation. AI 171 proves it does not.</p><p><strong>2. Compound MEL Risk Assessment.</strong> The MEL philosophy must be updated for highly-integrated architectures. Multiple simultaneous deferrals on interconnected systems should trigger heightened assessment, not individual time-limit compliance.</p><p><strong>3. “Terrible Teens” Fleet-Wide Inspection.</strong> No public data exists on the remediation status of early-production 787 airframes (line numbers 7–55). The extent to which manufacturing defects have been identified and corrected across the active fleet is unknown.</p><p><strong>4. CCS-Independent Fault Monitoring.</strong> The 787 relies on the CCS for fault monitoring — the same system that can itself fail silently. An independent, hardware-based fault detection system (separate from the CCS) should be evaluated as a safety-critical backup.</p><p><strong>5. HVDC Arc Propagation Research.</strong> While arc behavior is well-studied in low-voltage aircraft systems, the 787’s +/-270V HVDC system operates at voltages where arc behavior is qualitatively different. The transient propagation paths through interconnected conversion systems have not been publicly characterized.</p><p>Each item, assessed individually, was within limits. But the MEL system has no provision for assessing <strong>combined effects</strong> when multiple deferrals exist on interconnected systems.</p><p>A degraded core network + a failed NGS + BPCU faults + FCM errors is not four independent problems. On the 787, it is one systemic crisis — and the compound risk far exceeds the sum of individual MEL assessments.</p><h3>References</h3><ol><li>Hamilton Sundstrand Corporation. (2011). <em>Boeing 787 Electrical System Training Course</em>.</li><li>Pandian, G., Pecht, M., Zio, E., &amp; Hodkiewicz, M. (2020). Data-driven reliability analysis of Boeing 787 Dreamliner. <em>Chinese Journal of Aeronautics</em>, 33(7).</li><li>Song, T., Li, Y., Song, J., &amp; Zhang, Z. (2014). Airworthiness considerations of supply chain management from Boeing 787 Dreamliner battery issue. <em>Procedia Engineering</em>, 80, 628–637.</li><li>Liu, Q., Liang, T., Huang, Z., &amp; Dinavahi, V. (2019). Real-Time FPGA-Based Hardware Neural Network for Fault Detection and Isolation in More Electric Aircraft. <em>IEEE Access</em>.</li><li>The Peninsula. (2025). Part 1: Air India 171 Crash — No-Go Fault, Electric Arc.</li><li>AAIB India. (2025). Preliminary Report: Air India Flight 171, July 12, 2025.</li><li>FAA AD 2020–06092. Common Core System stale-data monitoring vulnerability.</li><li>FAA AD 2025–09–12. Water leakage into electronics equipment bays.</li><li>FAA SAIB NM-18–33. Fuel control switch locking feature advisory.</li><li>Safety Matters Foundation of India. (2025). Photogrammetric analysis of RAT deployment timing.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5427023665da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datafluids/part-1-how-cascading-electrical-failures-brought-down-air-india-flight-171-the-domino-effect-5427023665da">Part 1: How Cascading Electrical Failures Brought Down Air India Flight 171 — the Domino Effect</a> was originally published in <a href="https://medium.com/datafluids">Datafluids</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ontologies for E-commerce Knowledge Graphs]]></title>
            <link>https://medium.com/datafluids/ontologies-for-e-commerce-knowledge-graphs-a216b3eee2ec?source=rss-9a4a9cfe5ef9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a216b3eee2ec</guid>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[graphrag]]></category>
            <dc:creator><![CDATA[Deven Vagal]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 08:58:39 GMT</pubDate>
            <atom:updated>2026-01-31T10:07:56.512Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92XYw0D5NxDj5mV7MNcwaA.jpeg" /><figcaption><strong>A sci fi image of E-commerce Orders generated using leonardo.ai</strong></figcaption></figure><p>I recently interviewed with an E-commerce client who asked me to create an <em>Ontology</em> to model <em>User</em> and <em>Produc</em>t interactions. Their end goal was to implement a <em>Labeled Property Graph (LPG)</em> to analyze <em>User behavior</em> and make <em>Product recommendations</em>. The Knowledge Graph would be used in a RAG pipeline to power AI Agents and run Graph algorithms.</p><p>Creating an <em>Ontology</em> is an intensive process and can involve several iterations to correctly capture the subject domain. For my interview, the expectation was to provide a semantic data model of <em>Users, Products </em>and their <em>relationship</em>s. It is always a good idea to provide a few alternative design patterns and compare the benefits and limitations of each.</p><h4>Why do we need an Ontology</h4><blockquote>Ontology is only a formal way of describing a knowledge domain (E-commerce in this case) and define entities (nodes) and their interactions (relationships) with each other. It provides a blue print to implement the physical data structures for the Graph database.</blockquote><p>An Ontology captures <em>institutional knowledge</em> about the domain — a prized asset based on experience of a few employees — and transform them into <em>entities, relationships </em>and<em> business rules</em>. I like to compare an <em>Ontology design</em> process with my <em>Dimensional Modeling</em> experience for Data warehousing because the design principles are the same. In a <em>Dimensional model</em>, <em>User</em> and <em>Product</em> being descriptive and qualitative represent dimensions and <em>Order</em> represents quantifiable Facts. The Entities in an Ontology are similar to <em>Dimension</em>s and <em>Relationships</em> are similar to <em>Facts</em>.</p><h4>Why use a Knowledge Graph for E-commerce</h4><p>Graph data structures have proven to be most efficient when modeling and implementing complex <em>User-Product interactions</em> that are common in E-commerce because the relationships already persist and can be indexed for improved query performance. They also enable running <em>Product recommendation</em> algorithms out of the box based on User persona. An <em>E-commerce Knowledge Graph</em> can also be combined with LLMs in a RAG pipeline for Agentic AI.</p><h4>My E-commerce Use case scenario</h4><blockquote>I was presented the following specific scenario: We need to design an Ontology for our E-commerce platform. We have Users who place Orders. Orders contain Products. A User can only buy upto 5 units of a given Product in a single Order.</blockquote><p>This scenario can be modeled using various approaches based on specific criteria and assumptions we make. Please note that most global E-commerce platforms can involve thousands of Products with complex hierarchies and millions of Orders placed for these Products on a daily basis. Therefore our <em>Ontology</em> should not be monolithic — it should scale for diverse Product types and support high volumes of Order transactions.</p><p>I have provided few common approaches to design an Ontology for our E-commerce use case — each approach has its strengths and limitations.</p><h4>General Principles for creating an Ontology</h4><blockquote>The general principle used in NLP (Natural Language Processing) and NER is to classify Nouns as Entities (Nodes). Verbs are generally modeled as Relationships in an Ontology.</blockquote><blockquote>Adjectives can be properties of a Node and quantitative adjectives as properties of a Relationship.</blockquote><blockquote>Many-to-many relationships between two given Node types are modeled using a third Node type (bridge node).</blockquote><blockquote>It is not recommended using Relationships as starting points in an Ontology for filtering. This is because indexes are used to find starting points in a Knowledge Graph, after which relationship traversal and filtering are used to perform the remainder of the pattern matching and to complete a query.</blockquote><h4>Design Pattern 1: <strong>User, Order and Product are Node types</strong></h4><p>This is a standard approach that is very popular because of its flexibility to adapt to diverse scenarios and can also scale for high volume data with complex <em>Product</em> hierarchies. In this design pattern, each <em>User, Product</em> and <em>Order</em> are modeled as Entities (Node types). There is a <em>many-to-many relationship </em>between <em>Order</em> and <em>Product</em>. To model this <em>many-to-many cardinality</em>, we use a<em> bridge node</em> (associate node) named <em>Order-Product</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wTvVWY3XYm-Ujyt6oeRAfw.png" /><figcaption><strong>Design Pattern 1: Modeling user, order and product as nodes with order-product as a bridge node</strong></figcaption></figure><h4>Benefits of Design Pattern 1</h4><ul><li>We can create labels on Node properties (auto indexed) and we can easily query data based on <em>Orders, Users or Product </em>nodes as starting points by filtering on <em>labeled</em> Node properties of any node.</li><li>This design pattern works well for complex <em>Orders</em> that include multiple <em>Product types</em> and hundreds of <em>Product</em> line item for each <em>Order</em>.</li><li>Aggregated dollar values for each order are directly available for query in the <em>Order node type</em> and line item values are indicated in the <em>Order-product node type</em>.</li><li>Since<em> Product</em> is modeled as a node type, it is convenient to model complex <em>Product hierarchies </em>and develop a <em>Product Taxonomy </em>or<em> Product Identity Graph </em>on its own or as part of the same Ontology (see example illustrated below) and apply in <em>Product recommendation</em> systems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*fWeW3IBm1KGQBhqztDOJkQ.png" /><figcaption>Example of a Product Taxonomy for Apparels</figcaption></figure><h4>Drawbacks of Design Pattern 1</h4><ul><li>In order to derive relationships between<em> User </em>and <em>Product </em>node type, we need to do a <em>multi-hop traversal</em> across few different Node types.</li><li>Since relationship attributes are not quantified, they are <em>unweighted</em>. Strength of a relationship between connected nodes need to be determined using other methods.</li></ul><h4>Design Pattern 2: Relationships matter ! <strong>Order-product is a relationship and not a node.</strong></h4><p>The main difference between this approach and Design Pattern 1 is that here <em>order-product</em> is a modeled as a <em>relationship </em>(in Design Pattern 1, <em>order-product</em> is a node).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pRHzdL1oFRzP6ez1YWR0Q.png" /><figcaption><strong>Design Pattern 2: Modeling user and product as nodes with order as a relationship</strong></figcaption></figure><h4>Benefits of Design Pattern 2</h4><ul><li>In this design pattern, <em>User</em> and <em>Product</em> interaction can be measured directly using <em>order-product</em> relationship in a single hop.</li><li>Since <em>order-product</em> relationship is <em>weighted</em> (using <em>product quantity</em> or <em>dollar value</em>), we can apply path finding and optimizing algorithms like Dijkstra’s Algorithm</li><li>This design pattern works well for E-commerce firms that sell only a single product type or each order can contain only a single product type.</li></ul><h4>Drawbacks of Design Pattern 2</h4><ul><li>In this design pattern, because each <em>Order-product</em> relationship connects to a single Product type (or product line-item), we need to aggregate multiple relationships (connections) to determine value of a complete order if it contains multiple product types.</li><li>Since the resulting graph can have a very high count of edges (for a high count of orders) relative to its count of nodes, it would be a <em>dense graph</em>.</li></ul><h4>Design Pattern 3: Product is a property of Order node type</h4><p>In this design pattern, Product and their quantities are modeled as a Order property and stored as<em> a list of dictionaries.</em></p><p><em>ProductQtyList = [{product-type-1:qty-1}, {product-type-2:qty-2}………{product-type-n:qty-n}]</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Br8COlIf21NFcaa-MHNN_A.png" /><figcaption><strong>Design Pattern 3: Modeling user and product and nodes with order as a relationship</strong></figcaption></figure><h4>Benefits of Design Pattern 3</h4><ul><li>In this design pattern, <em>User</em> and <em>Order</em> interaction can be measured directly using <em>places</em> relationship in a single hop.</li><li>Aggregated dollar values for each order are directly available for query in the <em>Order node type</em> and line item values are indicated in the <em>ProductQtyList property</em>.</li></ul><h4>Drawbacks of Design Pattern 3</h4><ul><li>In this design pattern, it is hard to query individual Product types for a given Order because they are nested in a single property.</li><li>Since relationship attributes are not quantified, they are <em>unweighted</em>. Strength of a relationship between connected nodes need to be determined using other methods.</li></ul><h4>Conclusion</h4><p>After having spent considerable time modeling Ontologies, I have realized that they cannot be set in stone — they will continue to evolve based on the dynamics of our source data. Mastering the art Ontology design is essential for anyone implementing Knowledge Graphs or creating domain models. Instead of using one massive and monolithic Ontology, it is advisable to create smaller, modular and self-contained Ontologies that can be combined or imported as needed. It is an iterative process and you need to ask the right questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a216b3eee2ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datafluids/ontologies-for-e-commerce-knowledge-graphs-a216b3eee2ec">Ontologies for E-commerce Knowledge Graphs</a> was originally published in <a href="https://medium.com/datafluids">Datafluids</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modeling Risk in Supply Chain Networks Using Neo4j]]></title>
            <link>https://medium.com/neo4j/modeling-risk-in-supply-chain-networks-using-pagerank-ad19321908db?source=rss-9a4a9cfe5ef9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad19321908db</guid>
            <category><![CDATA[pagerank-algorithm]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[supply-chain-network]]></category>
            <category><![CDATA[neo4j-graph-database]]></category>
            <category><![CDATA[graph-algorithms]]></category>
            <dc:creator><![CDATA[Deven Vagal]]></dc:creator>
            <pubDate>Wed, 21 May 2025 19:42:43 GMT</pubDate>
            <atom:updated>2026-01-31T09:34:11.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>Risk Modeling in Supply Chain Networks using Knowledge Graphs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qSUnUPIJxnohFo7VCDjk-A.jpeg" /></figure><p>The ability to identify and quantify <em>risk</em> in a Supply Chain network is a very popular research area and has wide applications to resolve problems like Supply Chain disruption and Risk mitigation.</p><h3>Background</h3><p>In this paper, <em>risk</em> refers to the potential of a single entity to cause disruption in the Supply Chain network in the event of its own failure. High <em>influence</em> in the network is also associated with high risk. <em>PageRank</em> algorithm becomes a natural choice for our use case, because it is a strong indicator of node influence.</p><p>For our purpose, we define an <em>entity</em> as a distinct supplier or buyer firm that collaborates with other suppliers or buyer firms for trading products or services. Entities associated with the highest risk score are those firms whose failure can have the most serious impact on the Supply Chain because of their direct or indirect connections to other entities in the network.</p><p>In order to measure risk, we will model the Supply Chain network as a Knowledge Graph. This will enable us to capture semantic information on how entities interact with their Supply Chain partners based on their trade relationships. Knowledge Graphs are a very intuitive way to determine the most influential entities in the network based on their connections to other nodes. Entities that have high counts of trade connections with their partners (other entities) or engage in high dollar volumes of trades can be treated as high risk.</p><h3>Assumptions</h3><p>We assume that economic failure of a given entity A in the supply chain will propagate to entity A’s direct and indirect connections in the network.</p><p>Buyers connected to entity A will be impacted adversely because they will no longer have access to products or services that entity A provides. Suppliers connected to entity A will affected because they will lose revenue resulting from lost sales to entity A. This is also known as a Domino effect. The magnitude of the impact will be directly proportional to the entity A’s risk score.</p><p>We will classify each entity in our Supply Chain network into one of the following three categories and leverage the PageRank and Reverse PageRank metric to determine its Risk score. Our approach is inspired by work done by Bill Kay, Hao Lu, Pravallika Devineni, Anika Tabassum, Supriya Chintavali and Sangkeun (Matt) Lee in their research paper <a href="https://www.osti.gov/servlets/purl/1873839">Identification of Critical Infrastructure via PageRank.</a></p><ol><li><em>Vulnerable entities </em>— These are bottom-most tier in the Supply Chain network and mostly include small businesses that supply sub-assemblies or small parts. These are likely to fail if any other entity in the network fails.</li><li><em>Important entities</em> — These are top-most tier in the Supply Chain network and mostly include ultimate buyers who assemble finished products. They are tier-0 in the network. If these entities fail, it can cause many other entities to fail and cause have adverse impact on the entire network.</li><li><em>Critical entities</em> — Entities that are both vulnerable and important are termed critical.</li></ol><blockquote><em>We will use </em>PageRank algorithm<em> to determine which entities are important and </em>Reverse PageRank<em> to determine which ones are vulnerable in the network. Therefore </em>PageRank<em> will be a direct measure of importance score. </em>Reverse PageRank<em> will be direct measure of vulnerability score. Risk score will be measured by the arithmetic average of importance and vulnerability score.</em></blockquote><h3>Why use PageRank for Risk Scoring in Supply Chain network?</h3><ul><li>It’s a global centrality measure that needs the entire network to measure the importance of one node.</li><li>Uses global information of the network and not local information like Degree centrality</li><li>Measures the importance of a node based on the importance of its neighbors.</li><li>Is based on an iterative process that uses global information to dynamically estimate node importance.</li></ul><h3>Graph Data Model</h3><p>We will model our Supply Chain network as a homogeneous Knowledge Graph consisting of a “Company” node type and a “SUPPLIES” relationship type. A Company can be either a supplier firm, buyer firm or both in the network.</p><p>We use the <a href="http://arrows.app/">arrows.app</a> application to develop the graph data model illustrated below. It indicates two properties on the Company node type: name and address. There are two properties on the SUPPLIES relationship type: volume and orders. Both volume (indicating dollar volume in Millions) and orders (indicating total count of orders) can be used to measure the strength of the SUPPLIES relationship between any two entities in the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/0*rR11C5PdwZEhXVLz" /><figcaption>Simplified representation of a Supply-Chain Knowledge Graph Data Model</figcaption></figure><h3>Knowledge Graph Implementation</h3><p>The physical implementation of our Knowledge Graph is done using Neo4j 5.x, which provides a Labeled Property Graph approach. It provides flexibility to label nodes and relationships and assign properties to each. Neo4j also offers a Graph Data Science (GDS) library that includes Graph algorithms out-of-the-box.</p><blockquote><em>For our use case, we leverage Node Centrality algorithms from the Neo4j GDS library to determine the relative importance of specific nodes in our Graph. Centrality Scores are important to identify key supplier-buyer relationships, influencers and critical nodes based on their connections to other nodes.</em></blockquote><p>The cypher code and the sample data used to load the graph is available in Github <a href="https://github.com/dvagal/sample-supply-chain-graph">here</a>.</p><p>After the cypher is executed and the graph is created, we can validate by executing the following query to return all nodes and relationships.</p><pre>Match (n)-[r]-&gt;(m)<br>Return n,r,m;</pre><p>The output of the query returns our entire graph illustrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jQPVke3fDy4QMOL8" /><figcaption>Sample Supply-Chain Knowledge Graph</figcaption></figure><h3>Graph Projection for PageRank algorithm</h3><p>In order to execute the PageRank algorithm from the GDS library of Neo4j, we must define a cypher projection named ‘SupplyChainProj’ of our Supply Chain Knowledge Graph.</p><p>We will use the relationship weights in our Projection including dollar volume of trade and order counts to factor them into the PageRank algorithm</p><pre>MATCH (source:Company)-[r:SUPPLIES]-&gt;(target)<br>RETURN gds.graph.project(<br>  &#39;SupplyChainProj&#39;,<br>  source,<br>  target,<br>  { relationshipProperties: { volume: r.volume, orders: r.orders}});</pre><h3>Importance score using PageRank</h3><p>Important entities have many inbound connections from supplier nodes and a complex nested supplier structure with several layers. The entities which receive a high PageRank are the ones with high importance score.</p><p>The following Cypher returns the top 7 entities in decreasing order of PageRank. PageRank score is normalized on a scale of 0 to 1 using the MINMAX scaler function.</p><pre>CALL gds.pageRank.stream(&#39;SupplyChainProj&#39;, {scaler: &quot;MINMAX&quot;})<br>YIELD nodeId, score<br>RETURN gds.util.asNode(nodeId).name AS CompanyName, score as PageRank<br>ORDER BY score DESC, CompanyName ASC<br>LIMIT 7;</pre><p>The output of PageRank algorithm in tabular form is illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/0*yiwnpaxe_fC49Eru" /><figcaption>Entities with highest values of PageRank aka Importance score</figcaption></figure><h3>Analyzing Important nodes</h3><p>We will drill down into the entity, “General Cars Inc” at tier-0, that has the highest PageRank.</p><p>General Cars Inc has only two direct inbound connections at tier-1 and has a degree centrality of 2. However the tier-1 nodes (Stanley Steel and Miro Auto Windows) are very significant with a high degree centralities from connections at tier-2. As we traverse deeper into the network at tier-3 and beyond, we will see more significant nodes with multiple connections. All this has a cumulative effect on the PageRank score aka importance score of General Cars Inc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yG41KwtlQYQqlLah" /><figcaption>General Cars Inc’s supplier network</figcaption></figure><h3>Reverse Graph for Vulnerability score</h3><p>Vulnerable entities are at the bottom tier of the Supply chain network and have many outbound connections to buyer nodes. Vulnerability score can be determined using Reverse PageRank. Reverse PageRank is derived by running PageRank on the “reverse graph” (a directed graph derived by reversing the edges in our original directed Supply Chain Knowledge graph).</p><p>The following cypher code is used to generate reverse edges on our original graph. The reverse edges are labeled as “BUYS” in our graph and they will inherit the same properties from the original edges.</p><pre>OPTIONAL MATCH (n)-[r:SUPPLIES]-&gt;(m)<br>FOREACH(x IN CASE WHEN n IS NOT NULL THEN [1] END |<br>    MERGE (m)-[r2:BUYS]-&gt;(n)<br>    SET r2 = properties(r)<br>);</pre><p>After factoring in reverse edges, our Supply Chain Knowledge Graph is illustrated below. The original “SUPPLIES” edges are shown alongside its reverse edges labeled as “BUYS”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*RpdUA3THf9dVUaID" /><figcaption>Knowledge Graph with SUPPLIES and BUYS edges</figcaption></figure><h3>Graph Projection for Reverse PageRank</h3><p>In order to execute the Reverse PageRank algorithm from the GDS library of Neo4j, we will define a new cypher projection named ‘ReverseSupplyChainProj’. This will also factor in the relationship weights using volume and orders as edge properties.</p><pre>MATCH (source:Company)-[r:BUYS]-&gt;(target)<br>RETURN gds.graph.project(<br>  &#39;ReverseSupplyChainProj&#39;,<br>  source,<br>  target,<br>  { relationshipProperties: { volume: r.volume, orders: r.orders}});</pre><h3>Vulnerability score using Reverse PageRank</h3><p>The following Cypher returns the top 7 entities in decreasing order of Reverse PageRank. Reverse PageRank score is normalized on a scale of 0 to 1 using the MINMAX scaler function. We use the same PageRank algorithm from the Neo4j GDS library but we run it using the reverse graph (only including reverse edges)</p><pre>CALL gds.pageRank.stream(&#39;ReverseSupplyChainProj&#39;, {scaler: &quot;MINMAX&quot;})<br>YIELD nodeId, score<br>RETURN gds.util.asNode(nodeId).name AS CompanyName, score as ReversePageRank<br>ORDER BY score DESC, CompanyName ASC<br>LIMIT 7;</pre><p>The output of Reverse PageRank algorithm in tabular form is illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/0*S_FHc1LvS5HS_kLG" /><figcaption>Entities with highest values of Reverse PageRank aka Vulnerability score</figcaption></figure><p>We will drill down into the entity, “Pfizer Equipments” that has the highest Reverse PageRank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*yTe5xwcYsDGVkP_v" /><figcaption>Pfizer Equipment’s Buyer network</figcaption></figure><h3>Criticality aka Risk Score</h3><blockquote><em>Entities that are both important and vulnerable are termed as critical. The average of the importance score and vulnerable score can be used to measure the criticality aka risk score in the network.</em></blockquote><p>Risk score = (Importance score + Vulnerability score) / 2</p><h3>Conclusion</h3><p>Running PageRank algorithm on our directed Supply Chain Graph will indicate which entities are important and running Reverse PageRank on our reverse directed Graph will indicate which entities are vulnerable. The average of the two scores can be used to measure the criticality aka risk score in the network.</p><p>These scores can be used as important node attributes to be used in downstream tasks like Link Prediction or Node embeddings using Graph Neural Networks.</p><p>This framework can be also leveraged to determine risk in crypto fraud, tax evasion involving partnerships, money laundering and other fraud detection use cases.</p><h3>References</h3><ul><li><a href="https://neo4j.com/docs/graph-data-science/current/algorithms/centrality/">https://neo4j.com/docs/graph-data-science/current/algorithms/centrality/</a></li><li><a href="https://neo4j.com/docs/graph-data-science/current/management-ops/graph-creation/graph-project-cypher-projection/">Neo4j Cypher Projection</a></li><li><a href="https://www.osti.gov/servlets/purl/1873839">Identification of Critical Infrastructure via PageRank</a></li><li><a href="https://neo4j.com/docs/graph-data-science/current/algorithms/page-rank/">https://neo4j.com/docs/graph-data-science/current/algorithms/page-rank/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad19321908db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/modeling-risk-in-supply-chain-networks-using-pagerank-ad19321908db">Modeling Risk in Supply Chain Networks Using Neo4j</a> was originally published in <a href="https://medium.com/neo4j">Neo4j Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>