brewen couaran

# project

RevFlōw

Transaction categorisation and money coaching, built in 24 hours for Revolut

Completed Hackathon Jun 2026 24 hours
RevFlōw

Built in 24 hours at HackDelft 2026 for the Revolut challenge. RevFlōw fixes vague merchant labels with keyword rules and a classifier on sentence embeddings, groups users by life stage, surfaces hidden subscriptions, and has Claude Haiku turn each insight into short advice with one-tap actions.

Highlights

  • Built a four-stage financial intelligence pipeline in 24 hours at HackDelft 2026 for the Revolut challenge
  • Designed a hybrid categoriser combining 18 Dutch keyword rules with CalibratedLinearSVC on MiniLM-L6 sentence embeddings across 12 categories
  • Achieved 75% ML accuracy and <50 ms inference with a confidence-gated fallback to prevent mislabelling
  • Implemented KMeans life-stage personalisation (Student, Family, Professional, Senior) with Bayesian re-weighting
  • Built a subscription forensic engine using Isolation Forest and cohort comparison to surface hidden recurring costs
  • Integrated Claude Haiku as an AI Money Coach generating concise per-insight advice with 1-tap action cards

RevFlōw is a financial intelligence platform built in 24 hours for the Revolut challenge at HackDelft 2026 with Team YUBRE. It categorises Revolut transactions, personalises the results per user, and surfaces subscription and spending insights through a four-stage pipeline.

  1. Categorisation

    • Keyword pre-pass with 18 Dutch merchant rules; a confidence of 1.0 short-circuits the ML stage

    • CalibratedLinearSVC trained on MiniLM-L6 384-d sentence embeddings plus one-hot features (entry method, merchant domain, amount) across 12 spending categories

    • 75% accuracy on high-confidence predictions (≥0.45); uncertain merchants fall back to Miscellaneous instead of a wrong label

    • Under 50 ms end-to-end inference latency

  2. Personalisation

    • KMeans clustering segments users into four life-stage cohorts: Student, Family, Professional, Senior

    • Per-category spend share re-weights the global model probabilities (P' ∝ P_global × f_user) to fit each user's life stage

    • Every categorised transaction carries a human-readable explanation grounded in the user's history

  3. Subscription insight engine

    • Six parallel detectors: 4-week z-score anomalies, CV and cadence subscription detection, new-merchant bursts, fraud flags (velocity, smurfing), cohort-versus-peers comparison, and Isolation Forest user profiling

    • Flags forgotten, overlapping, or creeping recurring charges before they add up

    • Emits structured insight objects (type, severity, metrics) that drive both the deterministic action cards and the AI coach

  4. AI money coach and command centre

    • Insights feed Claude Haiku for concise two-sentence advice, with a supplier-agnostic self-hosted path in production

    • Deterministic action cards for one-tap interventions: spending limits, recurring-charge cancellation, analytics drills

    • Revolut-styled React command centre with a transaction timeline, monthly budget ring, live insight cards, and voice query input

    • Deployed to Railway; live at revflow.brewen.dev

References

  • Aluffi, P. A., Jess, B., Bazzi, M., Kennedy, K., Arderne, M., Rodrigues, D., & Lotz, M. (2025). Categorising SME bank transactions with machine learning and synthetic data generation (arXiv:2508.05425). arXiv. https://doi.org/10.48550/arXiv.2508.05425
  • Bakumenko, A., Hlaváčková-Schindler, K., Plant, C., & Hubig, N. C. (2024). Advancing anomaly detection: Non-Semantic financial data encoding with large language models (arXiv:2406.03614). arXiv. https://doi.org/10.48550/arXiv.2406.03614
  • Braithwaite, D. T., Cavalcanti, M., McEver, R., Udagawa, H., Silva, D., Ramanath, R., Meneses, F., Yoshida, A., Wingert, E., Ramos, M., Zanfelice, B., & Gupta, A. (2025). Your spending needs attention: Modeling financial habits with transformers (arXiv:2507.23267). arXiv. https://doi.org/10.48550/arXiv.2507.23267
  • Busson, A., Rocha, R. H., Gaio, R., Miceli, R., Pereira, I., Moraes, D. D. S., Colcher, S., Veiga, Á., Rizzi, B., Evangelista, F., Santos, L., Marques, F., Rabaioli, M., Feldberg, D., Mattos, D., Pasqua, J., & Dias, D. G. (2023). Hierarchical classification of financial transactions through context-fusion of transformer-based embeddings and taxonomy-aware attention layer (arXiv:2312.07730). arXiv. https://doi.org/10.48550/arXiv.2312.07730
  • Capozzi, A., Vilella, S., Moncalvo, D., Fornasiero, M., Ricci, V., Ronchiadin, S., & Ruffo, G. (2025). FlowSeries: Anomaly detection in financial transaction flows (arXiv:2503.15896). arXiv. https://doi.org/10.48550/arXiv.2503.15896
  • de S. Moraes, D., Santos, P. T. C., Costa, P. B. D., Pinto, M. A. S., Pinto, I., Veiga, Á., Colcher, S., Busson, A., Rocha, R. H., Gaio, R., Miceli, R., Tourinho, G., Rabaioli, M., Santos, L., Marques, F., & Favaro, D. (2024). Using zero-shot prompting in the automatic creation and expansion of topic taxonomies for tagging retail banking transactions (arXiv:2401.06790). arXiv. https://doi.org/10.48550/arXiv.2401.06790
  • Dong, K., Jonnalagedda, P., Gao, X., Acharya, A., Kissa, M., Flores, M., Chawla, N. V., & Das, K. (2025). Transaction categorization with relational deep learning in QuickBooks (arXiv:2506.09234). arXiv. https://doi.org/10.48550/arXiv.2506.09234
  • Fan, X., Jiang, Z., Yeh, C.-C. M., Chen, Y., Dou, Y., Pan, M., & Zheng, Y. (2025). Enhancing foundation models in transaction understanding with LLM-based sentence embeddings (arXiv:2601.05271). arXiv. https://doi.org/10.48550/arXiv.2601.05271
  • Maddanu, F., Proietti, T., & Crupi, R. (2025). Anomaly detection in high-dimensional bank account balances via robust methods (arXiv:2511.11143). arXiv. https://doi.org/10.48550/arXiv.2511.11143
  • Maree, C., & Omlin, C. (2021). Clustering in recurrent neural networks for micro-segmentation using spending personality (arXiv:2109.09425). arXiv. https://doi.org/10.48550/arXiv.2109.09425
  • Nie, Y., Kong, Y., Dong, X., Mulvey, J. M., Poor, H., Wen, Q., & Zohren, S. (2024). A survey of large language models for financial applications: Progress, prospects and challenges (arXiv:2406.11903). arXiv. https://doi.org/10.48550/arXiv.2406.11903
  • Park, T. (2024). Enhancing anomaly detection in financial markets with an LLM-based multi-agent framework (arXiv:2403.19735). arXiv. https://doi.org/10.48550/arXiv.2403.19735
  • Polleti, G., Santana, M., & Fontes, E. R. (2025). Open banking foundational model: Learning language representations from few financial transactions (arXiv:2511.12154). arXiv. https://doi.org/10.48550/arXiv.2511.12154
  • Theerthala, A. (2025). Synthesizing behaviorally-grounded reasoning chains: A data-generation framework for personal finance LLMs (arXiv:2509.14180). arXiv. https://doi.org/10.48550/arXiv.2509.14180
  • Wang, Y., Han, Y., Qian, L., He, Y., Peng, X., Feng, D., Xie, Z., Zhang, V., Guo, R., Mo, F., Huang, J., Chen, Y., Liu, X., & Nie, J.-Y. (2026). Conv-FinRe: A conversational and longitudinal benchmark for utility-grounded financial recommendation (arXiv:2602.16990). arXiv. https://doi.org/10.48550/arXiv.2602.16990