Skip to content
Dhruv Pithadia
<- All work

04 · Finance

Fulcrum

A credit analyst reading an annual report.

Annual reports in, a credit-risk review queue out. Two models, rule-aware review buckets, and a memo an analyst can argue with.

Status
Team capstone
Year
2026
Built with
FastAPI, Next.js, Gemini, scikit-learn, SSE

CreditA team capstone at NMIMS; the repository lives on a teammate's account. My commits cover the computed financial features, the first FastAPI, frontend and model setup, the demo companies and score registry, and a report.

The flow

  1. 01An annual report PDF comes in.
  2. 02Financial fields are extracted.
  3. 03Units are normalized to INR crore and validated.
  4. 04Ratios are engineered from the cleaned fields.
  5. 05A primary model and an audit model score them.
  6. 06Rule-aware logic sorts the result into review buckets.
  7. 07A grounded memo is written, and the report streams back with evidence and warnings.

The hard parts

  • Reports disagree on units, reporting basis, periods, and which fields exist at all. A convincing narrative on the wrong monetary scale is still wrong, so source and confidence stay visible.
  • Several years of the same company must never leak across training and evaluation. The split is by company, and cross-validation is grouped.
  • Threshold choice, calibration, imputation, and feature filtering all change who lands in the urgent queue. An AUC does not describe what the analyst actually sees.
  • The second model is a useful comparison, not independent validation. It was trained on the same data.

Numbers, with their limits

100 companies, 300 company-years: 50 wilful defaulters and 50 controls, split 70/15/15 by company. The primary engine, a histogram gradient boosting model, reports a test ROC-AUC of 0.9246 on 45 company-year observations. Five-fold grouped cross-validation gives a mean ROC-AUC of 0.9073, with a standard deviation of 0.0216.

This is a selected cohort, not a stream of future loan applications, and it is not a model of when a default will happen.

The boundary

Model disagreement and rule flags turn into urgent review, manual check, watchlist, or monitoring. The decisioning report itself flagged the urgent queue as too broad. The model sorts the queue. The credit decision stays with the analyst.