Machine Learning for Stablecoin Depeg Risk
Advanced public monitor · Live capture from 2026-08-23; active development
Scope and evidence

What this project proves

My roleMSc dissertation research design and data analysis
AI contribution

AI assists the portfolio summary, copy editing, and visual presentation; research claims remain bounded by the dissertation analysis, temporal validation, and published limitations.

MaturityAcademic research
Evidence

Eight years of public market data, cross-model comparison, SHAP, event studies, three VaR methods, and out-of-time validation.

Evidence trail

See what is live, bounded, and still next.

The dissertation baseline, daily operating service, and Advanced interface are verified separately. The live page remains a diagnostic product rather than presenting historical models as an oracle.

Last reviewed2026-08-24
  1. 01Documented evidence

    Frozen MSc research baseline

    Checksums preserve the submitted baseline; later product work cannot rewrite the eight-year analysis, model comparisons, SHAP, events, or VaR findings.

  2. 02Documented evidence

    Daily precompute and numerical verification

    GitHub Actions runs the research pipeline, Supabase stores results, and the API reports verification figures while compute stays separate from viewing.

  3. 03Publicly verified

    Public Advanced risk monitor

    The public page exposes peg conclusions, model disagreement, historical stress, and provenance while retaining its active-development boundary.

  4. 04Explicit roadmap

    Broader assets and licensed data

    FDUSD, PYUSD, macro assets, and licensed data remain future scope and are not folded into current completion claims.

Publicly verifiedDocumented evidenceProtected boundaryExplicit roadmap
8 yearsMarket data, 2018–2025
3Stablecoin architectures
6.1–8.1×Modified vs Parametric VaR
01

Problem

Stablecoins appear low-volatility, yet conventional Gaussian risk measures can materially understate rare and severe depeg events.

02

Build

Use 2018–2025 data for USDT, USDC, DAI, and four benchmarks to build classification, time-series, event-study, SHAP, and tail-risk analyses.

03

Outcome

Model suitability proved architecture-dependent; Modified VaR exceeded Parametric VaR by 6.1–8.1×, while temporal validation exposed regime shifts after major events.

Interactive dissertation evidence

Three tests, one uncomfortable conclusion

Move through stablecoins and evidence layers to test model fit, fat-tail risk, and temporal robustness. Every figure comes from the frozen dissertation analysis, not a live market forecast.

Question 01

Does one model win everywhere?

Classification F1 score · dissertation sample

Collateral architectureFiat-backed
Random Forest0.47
Logistic Regression0.50

The linear model led narrowly; the small gap does not justify treating complexity as an advantage.

01

Architecture changes model fit

Compare the same two classifiers across fiat-backed and crypto-collateralised designs.

02

Quiet prices can hide violent tails

Switch from a Gaussian baseline to empirical and skew-adjusted risk estimates.

03

Time is the harder test

Chronological separation reveals whether a result survives a changing market regime.

Evidence boundary: Published figures are historical dissertation results; they are not investment advice, a live alert, or a guarantee of future performance.

Version evolution

Three product generations, not a reskin

The same research began as an operable Streamlit workbench, became a deployable Plain Monitor, and was then re-edited as an Advanced risk report with a deliberate reading order. All three remain visible so the productisation can be inspected.

In active development
Advanced / 2026-08-23 · active
Risk intelligence report

From displaying data to guiding judgement

Five evidence tiers organise current state, model disagreement, analytical basis, historical stress, and provenance. It is public and usable while numerical semantics and mobile behaviour continue to be reviewed.

  • Daily Peg Report with figure verification
  • Model disagreement remains visible
  • 289 parity checks reported by the API
What changed

Compute and presentation were separated in stages, allowing the same research to move from exploration tool to operating service and then to decision interface; each generation addresses the clearest constraint of the one before it.

What stayed true

The dissertation baseline remains read-only, and every public claim stays bounded by historical data, chronological validation, and numerical-integrity review; visual polish cannot turn a diagnostic tool into an oracle.

這是我的資料科學碩士論文項目。研究重點不是把機器學習包裝成預言工具,而是測試它能否更有效地揭示穩定幣背後隱藏的風險結構。

This is my MSc Data Science dissertation project. The goal was not to present machine learning as a crystal ball, but to test whether it can expose hidden structures in stablecoin fragility more effectively than conventional linear measures.

Research design

What the models revealed

Model choice was architecture-dependent. Logistic Regression performed better for the fiat-backed stablecoins, while Random Forest performed best for crypto-collateralised DAI. Peer-stablecoin volatility and cross-market stress signals were among the most informative depeg indicators.

Classification F1 score comparison across USDT, USDC, and DAI

The largest lesson came from the tails. Modified VaR estimates were 6.1 to 8.1 times their Parametric equivalents, showing how strongly a Gaussian assumption can understate stablecoin fragility.

99% Value at Risk comparison across stablecoins and benchmark assets

Honest limitation

Temporal validation showed that performance can collapse when the underlying risk-generating process changes. In one untuned robustness test, USDC Random Forest F1 fell from 0.83 to 0.09 after chronological separation. That result changed how I interpret the project: the models are most valuable as diagnostic systems, not as timeless forecasting engines.

Stack

Python, pandas, scikit-learn, TensorFlow/Keras, SHAP, yfinance, statistical event analysis, and reproducible chart generation.

Continue the conversation

From evidence to a useful next step.

See where this way of working fits, what I can contribute, and the boundaries I keep around responsible delivery.