💡 Inspiration

Financial markets are heavily influenced by macroeconomic conditions, yet most investors rely on static strategies that ignore changing environments. We wanted to answer a simple but powerful question:

“What does the current macro environment actually mean for investment decisions?”

Inspired by institutional investing approaches, we built a system that detects macro regimes and translates them into actionable insights.


⚙️ What it does

Macro Regime Detector (MRD) is an AI-powered intelligence engine that:

  • Detects the current macroeconomic regime using machine learning
  • Analyzes asset performance across different regimes
  • Identifies historical analogues to predict future behavior
  • Estimates regime transition probabilities
  • Evaluates user portfolios via RegimeAllocator
  • Provides natural language explanations via RegimeMind (AI Copilot)

Instead of just showing data, MRD answers:

“What should I do in this market?”


🛠️ How we built it

Data Layer

  • 25+ macroeconomic indicators (growth, inflation, stress)

Modeling

  • PCA for dimensionality reduction
  • K-Means clustering for regime detection
  • Analogue detection using similarity in PCA space

Backend (Zerve + FastAPI)

  • Deployed API with endpoints:
    • /regime/current
    • /regime/history
    • /regime/analogues
    • /regime/insight

Frontend

  • Interactive dashboard for regimes and asset performance
  • Portfolio analysis module (RegimeAllocator)
  • AI chatbot (RegimeMind) powered by Perplexity + API grounding

⚠️ Challenges we ran into

  • Aligning multiple macro datasets with inconsistent timestamps
  • Interpreting clustering results into meaningful economic regimes
  • Deploying models in Zerve without local artifact access
  • Translating ML outputs into actionable financial decisions

🏆 Accomplishments that we're proud of

  • Built a full end-to-end system (data → ML → API → UI)
  • Created a regime-aware portfolio engine, not static analysis
  • Integrated an AI copilot for decision explanations
  • Delivered a production-like financial intelligence platform

📚 What we learned

  • Data is only valuable when translated into decisions
  • Interpretability is as important as model accuracy
  • Simple, clear insights outperform complex visuals
  • API-first design makes systems scalable and reusable

🚀 What's next for Macro Regime Detector (MRD)

  • Real-time macro data integration
  • Advanced models (HMM, LSTM) for regime prediction
  • Portfolio optimization + backtesting
  • Smarter AI copilot with deeper reasoning
  • Integration with brokerage platforms for automated execution

🔥 Elevator Pitch

An AI-powered engine that translates market regimes into portfolio decisions.

Built With

Share this project:

Updates