Skip to content
F

FinRisk.io

Quantifying Contagion. Engineering Stability.

Created on 8th February 2026

•

F

FinRisk.io

Quantifying Contagion. Engineering Stability.

The problem FinRisk.io solves

How It Makes Tasks Easier & Safer

  • For Regulators: The Systemic Early Warning System (F15, F2)
    Task: Monitoring 100+ institutions for potential collapse.
    Easier/Safer: Uses Random Forest ML to forecast collapse probability quarter-over-quarter, allowing for preemptive capital calls rather than expensive taxpayer bailouts.

  • For Risk Officers: The Strategic Copilot (F13, F7, F8)
    Task: Deciphering complex market fluctuations and deciding whether to "Lend" or "Hoard."
    Easier/Safer: A Hybrid AI Copilot (Gemini + Featherless) that answers versatile queries: "Why did my liquidity gauge turn red?" or "Who is my most dangerous counterparty right now?"

  • For Clearing Houses (CCPs): Dynamic Margin Tuning (F3, F10)
    Task: Setting margin requirements that protect the system without freezing the market.
    Easier/Safer: The Policy Engine simulates "Margin Hike" scenarios and recomputes the Nash Equilibrium (F14) to find the "sweet spot" where institutions remain profitable and solvent.

  • For Crisis Management: The Causal Narrator (F9, F12)
    Task: Understanding a fast-moving market crash.
    Easier/Safer: Uses Time-Travel Snapshots to rewind the crisis. The AI Narrator explains the domino effect: "T1: Bank A defaulted, T2: Bank B's margin failed, T3: System λmax breached safety limits."

  • For Strategic Planning: Counterfactual "What-If" Labs (F12, F10)
    Task: Evaluating a potential merger or a massive new credit line.
    Easier/Safer: Users can modify a single exposure in a saved state and compare the "Before vs. After" stability charts to see the mathematical impact on the entire financial infrastructure.

Challenges we ran into

  • Matrix Math Blocking the UI
    The Hurdle: Calculating Eigenvalues (λmax) for large matrices is CPU-heavy. Initially, this synchronous math blocked our FastAPI event loop, causing the dashboard and AI Chat to freeze.
    The Fix: Offloaded heavy linear algebra to Worker Threads using asyncio.to_thread. This kept the API responsive, allowing the AI to narrate the simulation while the math engine computed the next step in parallel.
  • The AI Context Gap
    The Hurdle: Standard LLMs don't understand raw numbers like λ = 1045.22. Initially, the AI gave generic financial advice instead of explaining specific causal loops in our graph.
    The Fix: Developed a Contextual Enrichment Layer. We pre-process the graph to identify top risk drivers and specific matrix bottlenecks, then inject this as a "Hidden System Prompt." This forced the AI to provide Causal Narrations (e.g., "Risk is high because Bank A owes 40% of the hub's capital") rather than generic summaries.

Tracks Applied (1)

Core ML

Spectral Feature Engineering (Unsupervised Learning) In Core ML, the most difficult task is "Representation." You aren't...Read More

Discussion

Builders also viewed

See more projects on Devfolio