liveBook · Manning

What you will learn in Financial AI in Practice

A playbook for credit, fraud, and investment systems

by Taehun Kim

Chapter by chapter

Chapter 1: Introducing AI in finance

The chapter introduction establishes AI’s growing role in finance and defines a financial AI application as an end-to-end workflow rather than just a model or interface.

1.1 AI in the context of finance · 1.2 The new imperative: Why AI is no longer optional · 1.3 How AI is transforming finance · 1.3.1 Managing risk and ensuring compliance · 1.3.2 Extracting market intelligence for better investments · 1.3.3 Enhancing customer experiences · 1.3.4 Improving operational efficiency · 1.4 Core building blocks of financial AI applications · 1.4.1 Data asset layer · 1.4.2 Modeling layer · 1.4.3 Strategy and monitoring layer · 1.4.4 Application layer · 1.5 How the layers work together: A credit scoring example · 1.5.1 The data asset layer in credit scoring · 1.5.2 The modeling layer in credit scoring · 1.5.3 The strategy and monitoring layer in credit scoring · 1.5.4 The application layer in credit scoring · 1.6 Tools, data, and infrastructure you’ll need · 1.6.1 Programming language and frameworks · 1.6.2 Data and computing environment · 1.6.3 Orchestration and monitoring (optional) · 1.6.4 IDE and code access · 1.6.5 Costs, licensing, and flexibility · 1.7 Summary

What you learn in chapter 1 →

Chapter 2: From model to money: A strategist’s guide to real-world financial AI

The chapter introduction argues that financial AI projects need a clear business purpose and a defensible return on investment, not just powerful technology.

2.1 The survival guide for financial AI projects · 2.1.1 The hard truth: Why good models die · 2.1.2 Who this chapter is for · 2.2 The project spark: Launching Alpha Digest on a trading platform · 2.2.1 The business problem: Information overload at AlphaStream · 2.2.2 The AI solution: A personalized Alpha Digest · 2.3 The strategic crossroads: Defining the “why” before the “how” · 2.3.1 The offense play: Creating a new revenue stream · 2.3.2 The defense play: Boosting productivity and retention · 2.4 Measuring affect: The ROI boardroom test · 2.4.1 The ROI spectrum: From isolated pilots to enterprise-wide transformation · 2.4.2 Deconstructing value: Real-world use cases and their metrics · 2.5 Navigating the iceberg: Real-world obstacles and reality checks · 2.5.1 The unpredictable market · 2.5.2 The black box, hallucinations, and the ethical tightrope · 2.5.3 The human factor: Culture, talent, and augmentation · 2.6 The strategist’s bridge: From business “why” to technical “how” · 2.7 Summary

What you learn in chapter 2 →

Chapter 3: Working with generative AI in finance

The introduction contrasts earlier structured-data ML in finance with GenAI’s generative capabilities and explains why its adoption calls for both enthusiasm and guardrails.

3.1 The new playbook: AI engineering · 3.1.1 The great shift: From custom models to foundation engines · 3.1.2 Finance’s reality: New engine, same high-stakes fuel · 3.1.3 Five truths for the modern financial AI engineer · 3.2 The GenAI blueprint: Architecting for finance · 3.2.1 The core building blocks of a financial AI system · 3.3 The builder’s journey: Powering Alpha Digest step-by-step · 3.3.1 Step 1—Choosing the foundation: The model selection dilemma · 3.3.2 Step 2—Grounding the model in reality: Mastering RAG · 3.3.3 Step 3—Teaching our style: The art of fine-tuning · 3.3.4 Step 4—The next frontier: From AI agents to agentic AI · 3.4 Deployment strategies and future directions · 3.4.1 Phased rollouts and continuous feedback · 3.4.2 Cost and performance optimization · 3.4.3 Governance, open source, and the future · 3.5 Wrapping up: From proofs of concept to scalable impact · 3.6 Summary

What you learn in chapter 3 →

Chapter 4: Risk and compliance: Credit risk fundamentals

The introduction frames credit risk around the promise of repayment and the need to balance advanced analytics with responsible lending requirements.

4.1 From trust to scoring: How credit took shape · 4.1.1 The evolution from local judgments to standardized scoring · 4.1.2 The two pillars of repayment and the role of interest · 4.1.3 Modern channels: BNPL, micro-lending, and merchant cash advances · 4.2 Core domain concepts and the credit life cycle · 4.2.1 The loan life cycle: Personal and corporate · 4.2.2 Time-based performance and survival analysis · 4.2.3 Regional and product nuances · 4.3 A domain-driven four-layer framework · 4.3.1 Data asset layer · 4.3.2 Modeling layer · 4.3.3 Strategy and monitoring layer · 4.3.4 Application layer · 4.3.5 Why this matters and where we’re going next · 4.4 Essential metrics and techniques in credit scoring · 4.4.1 Revisiting core ML metrics: AUC, K-S, and PSI · 4.4.2 Binning and discretization: Fine classing vs. coarse classing · 4.4.3 Weight of Evidence and information value · 4.4.4 Handling special values, missing data, and outliers · 4.5 Why AI is indispensable and how it relates to building finance applications · 4.5.1 AI in strictly regulated, high-stakes lending · 4.5.2 Domain first, AI next: The best of both worlds · 4.5.3 The road to production: A preview of hands-on implementation · 4.5.4 The core takeaway · 4.6 Summary

What you learn in chapter 4 →

Chapter 5: End-to-end credit scoring for financial applications: A real-world AI approach

The chapter introduction previews a simplified end-to-end credit-scoring workflow, from BFSI data ingestion to model deployment, without explaining its steps.

5.1 Data pipeline: From raw data to credit-ready marts · 5.1.1 High-level BFSI data ingestion · 5.1.2 Constructing a credit data mart for lending · 5.1.3 A simple batch pipeline (Airflow) · 5.1.4 Feature stores: Evolving from batch pipelines to reusable assets · 5.2 Setting the stage: Realistic data and an end-to-end credit modeling flow · 5.2.1 Why tabular modeling dominates in BFSI · 5.2.2 Which datasets we’ll use and why · 5.2.3 Our end-to-end approach · 5.3 Implementing a basic credit model from scratch · 5.3.1 Starting our BFSI pipeline · 5.3.2 Data import and quick exploration · 5.3.3 WoE and IV calculation · 5.3.4 Executing WoE and IV, and then reviewing results · 5.3.5 XGBoost modeling with K-fold · 5.3.6 Visualizing ROC and a confusion matrix · 5.3.7 Credit score conversion · 5.3.8 Packaging and deploying the final BFSI model · 5.3.9 Beyond deployment: What “production-ready” really means · 5.4 Summary

What you learn in chapter 5 →

Chapter 6: Enhancing BFSI scoring workflows: Advanced binning, monitoring, and explainability

This introduction explains why a transparent, hand-built credit scoring workflow becomes difficult to scale and identifies automation and drift-monitoring tools that address those pressures.

6.1 Using OptBinning for automated binning and scorecards · 6.1.1 Automated binning with BinningProcess · 6.1.2 Building a scorecard (logistic model under the hood) · 6.1.3 Evaluating with ROC, CAP, and KS · 6.1.4 Monitoring model drift with ScorecardMonitoring · 6.2 Quick drift check with Evidently · 6.2.1 Creating the Evidently drift report · 6.2.2 Interpreting the Evidently dashboard · 6.3 Model interpretability: From black box to business dialogue · 6.3.1 Local explanations: Answering “Why me?” for the applicant · 6.3.2 Global explanations: Answering “How does this thing work?” for the auditor · 6.3.3 Putting explanations into practice · 6.3.4 Best practices for building trust · 6.4 Putting it all together: The four-layer framework in production · 6.5 The next frontier: GenAI and agentic workflows · 6.6 Summary

What you learn in chapter 6 →

Chapter 7: Understanding financial fraud and foundational detection strategies

The introduction frames fraud as a digital, evolving threat and AI as both a defense and a tool for fraudsters.

7.1 The criticality of fraud detection and prevention · 7.2 Demystifying financial fraud: Scope and typologies · 7.3 The distinctive nature of financial fraud · 7.4 Foundational approaches to fraud detection: The four-layer framework in action · 7.4.1 A glimpse into the framework: Foundational detection techniques · 7.4.2 Data asset layer for AI-powered fraud detection · 7.4.3 Modeling layer: AI techniques for fraud detection · 7.4.4 Strategy and monitoring layer: From scores to actionable intelligence · 7.4.5 Application layer: Deploying and operationalizing fraud defenses · 7.4.6 Synthesizing the layers: A blueprint for operational resilience · 7.5 Summary

What you learn in chapter 7 →

Chapter 8: Building AI fraud detectors: From supervised scoring to anomaly identification

The introduction scopes this chapter to single-transaction fraud detection, contrasts its two modeling tasks with network analysis, and emphasizes the need to handle fraud-data challenges rigorously.

8.1 Recognizing the known: The power and nuances of supervised learning in fraud detection · 8.1.1 The cornerstone: Acquiring, managing, and wrestling with labeled data · 8.1.2 Beyond binary labels: Achieving contextual understanding in fraud classification · 8.1.3 Practical realities: The ongoing vigilance in supervised fraud modeling · 8.2 Data preparation and initial exploration for supervised modeling · 8.2.1 Loading and understanding our dataset: The Kaggle credit card fraud data · 8.2.2 Essential preprocessing: Scaling features and splitting the data · 8.3 Supervised fraud classification in action: Training and tuning a LightGBM model · 8.3.1 Defining the modeling pipeline and hyperparameter search space · 8.3.2 Training the model with randomized hyperparameter search · 8.3.3 Evaluating the tuned model: Comprehensive metrics on the test set · 8.3.4 Strategic insight: Analyzing performance at top-N% prediction thresholds · 8.4 Finding the unknown: Unsupervised anomaly detection with autoencoders · 8.4.1 Autoencoders: Learning normality to detect deviance · 8.4.2 Preparing data for the autoencoder · 8.4.3 Building and training the autoencoder model · 8.4.4 Calculating and examining reconstruction errors · 8.4.5 Visualizing reconstruction error distributions · 8.4.6 Setting practical thresholds in an unsupervised world · 8.4.7 Deploying real-time fraud scoring models: Practical considerations · 8.5 Summary

What you learn in chapter 8 →

Chapter 9: Unveiling hidden connections: Graph-based analytics for advanced fraud detection

Introduces why graph analytics can reveal coordinated fraud that transaction-by-transaction detection may miss.

9.1 Why graph analytics are now essential in BFSI fraud detection · 9.2 Fundamentals of graph data in finance · 9.2.1 Core components: Nodes, edges, and properties · 9.2.2 Types of graphs in fraud detection and prevention · 9.2.3 The fundamental process for creating graph data for fraud analytics · 9.3 Hands-on: Building and analyzing a transaction graph with NetworkX · 9.3.1 Loading and initial inspection of the transaction dataset · 9.3.2 Constructing the multi-entity graph with NetworkX using parallel processing · 9.3.3 Community detection using the Louvain algorithm · 9.4 Toward advanced graph-based techniques: Graph Neural Networks · 9.4.1 Key design considerations for GNNs in fraud detection · 9.4.2 Hands-on: A simplified GNN for transaction fraud detection with PyTorch · 9.5 Synergistic fraud defense: Combining GNNs, LLMs, and future directions · 9.6 Summary

What you learn in chapter 9 →

Chapter 10: Building the quantitative engine: Market direction prediction with machine learning

The introduction shifts the book’s focus from protecting capital against credit and fraud losses to pursuing market-beating investment returns.

10.1 Architecting our AI-powered investment strategy · 10.1.1 Architecting our strategy: Aligning the playbook with the four-layer framework · 10.1.2 Defining our scope: A practical path to powerful results · 10.2 The data foundation: The lifeblood of a quant strategy · 10.2.1 The universe of financial data: A practitioner’s reality check · 10.2.2 Our strategic choice: Why ETFs as economic proxies? · 10.2.3 Building the ETF toolkit: Selecting economic barometers · 10.3 Acquiring and preparing the ETF data · 10.3.1 Beyond simple APIs: Industrial-strength data architecture · 10.4 Feature engineering: Crafting predictive signals · 10.4.1 Step 1: Defining the target variable (Y-label) · 10.4.2 Step 2: Engineering quant-grade predictive features · 10.4.3 Feature engineering realities · 10.4.4 From features to alpha: Next steps · 10.5 Predictive modeling: Selecting and validating robust ML methods · 10.5.1 The accuracy myth: Why high predictions demand scrutiny · 10.5.2 Our model choice: Why random forest excels for financial signals · 10.5.3 Time-series cross-validation: The foundation of intellectual honesty · 10.5.4 Building a robust validation scheme · 10.5.5 Training the final model with optimized parameters · 10.6 From signal to strategy: Next steps · 10.7 Summary

What you learn in chapter 10 →

Chapter 11: Building the qualitative engine with news analysis and LLMs

The introduction explains why financial news can complement market data and frames the proposed qualitative engine as a grounded research aid rather than an automated trader.

11.1 The new playbook: From market numbers to market narratives · 11.1.1 The hard truth: A reality check on LLMs in investment research · 11.1.2 Our philosophy: The LLM as a probabilistic analyst, not a deterministic oracle · 11.1.3 The strategist’s hunt for alpha: Where qualitative signals shine · 11.1.4 Designing the qualitative engine architecture · 11.2 Implementing the news ingestion and processing pipeline · 11.2.1 The data sourcing reality: Building our own information infrastructure · 11.2.2 Our pragmatic toolkit: A four-source blend · 11.2.3 Implementing the fetcher functions · 11.3 Building the RAG feature pipeline: From raw news to retrieval-ready vectors · 11.3.1 Data unification and cleaning · 11.3.2 Chunking strategy: Choosing the right granularity · 11.3.3 Text embedding with OpenAI · 11.3.4 Vector database storage with ChromaDB · 11.3.5 Verification: Trust, but verify the pipeline · 11.4 Building the LLM Analyst: From retrieval to quantified signals · 11.4.1 Retrieval strategy: A two-step process for context and precision · 11.4.2 Structured prompt engineering: The art of instructing an analyst · 11.4.3 The final output: A structured, auditable signal · 11.5 Summary

What you learn in chapter 11 →

Chapter 12: Augmenting investment decisions: LLM-guided portfolio allocation

The introduction explains why quantitative and qualitative signals need interpretation together, positions the LLM as a constrained decision advisor, and limits what the chapter’s historical simulation can establish.

12.1 The synthesis challenge: From separate engines to unified decisions · 12.1.1 The information asymmetry problem · 12.1.2 The synthesis workflow in our four-layer framework · 12.1.3 The role of macroeconomic indicators · 12.1.4 News sentiment vs. structured macro data · 12.2 Setting up the simulation infrastructure · 12.2.1 Defining the portfolio universe · 12.2.2 Timing assumptions · 12.3 Designing the system prompt · 12.3.1 Bounded discretion under constraints · 12.3.2 No date information · 12.3.3 Output structure · 12.4 Quantitative signal generation · 12.5 The LLM portfolio advisor · 12.6 Running the historical simulation · 12.6.1 What this simulation does and doesn’t show · 12.6.2 Path dependence, not learning · 12.7 Results and interpretation · 12.7.1 Interpreting the tradeoff · 12.7.2 Visualizing strategy behavior · 12.7.3 The decision log as audit trail · 12.8 Human oversight and the production gap · 12.8.1 Why automation isn't the goal · 12.8.2 The recommended workflow · 12.8.3 What this simulation omits · 12.8.4 Extensions and the path forward · 12.9 Summary

What you learn in chapter 12 →

Chapter 13: Enhancing customer experience: Building a personalization engine

The introduction explains why financial personalization must account for an ongoing, risk-sensitive customer relationship rather than copy e-commerce recommendations.

13.1 The unique context of financial personalization · 13.1.1 From “add to cart” to “investment discovery”: The economics of attention · 13.1.2 Architecting the pipeline: From raw logs to a User 360 mart · 13.1.3 Understanding the AlphaStream dataset · 13.2 From rules to vectors: Modern user representation · 13.2.1 The engine of meaning: How to choose an embedding model · 13.2.2 Hands-on: Creating the Financial DNA vector with embeddings · 13.2.3 Discovering tribes: Using clustering to identify hidden user segments · 13.3 Matching intelligence: From user DNA to content discovery · 13.3.1 The content pipeline: From raw feed to vectors · 13.3.2 Hands-on: Real-time semantic matching · 13.3.3 Expanding horizons: Beyond simple vectors · 13.4 Strategy and governance: From algorithms to business impact · 13.4.1 Beyond clicks: Measuring financial success · 13.4.2 The fiduciary filter: Ethical guardrails · 13.4.3 From insights to organization-wide action · 13.5 Summary

What you learn in chapter 13 →

Chapter 14: Driving operational efficiency: Building autonomous retention agents

The chapter introduction contrasts reactive personalization with proactive retention and emphasizes the need for oversight when financial AI agents act.

14.1 The agent era: Extending the four-layer framework · 14.1.1 From rule-based automation to agentic reasoning · 14.1.2 The four-layer framework in the agent era · 14.1.3 The AlphaStream retention challenge · 14.2 Architecture: The retention intelligence pipeline · 14.2.1 The cost-aware design principle · 14.2.2 Pipeline components in detail · 14.2.3 Data flow and timing · 14.3 Hands-on: Building the retention copilot · 14.3.1 Loading data and filtering high-risk users · 14.3.2 Designing the tool interface · 14.3.3 Implementing the agent loop · 14.3.4 Testing the agent · 14.3.5 Batch processing multiple users · 14.3.6 Aggregating results by cluster · 14.4 Connecting to operations: Slack integration · 14.5 Human-in-the-loop and governance · 14.5.1 The Draft-Approve pattern · 14.5.2 Governance policies and guardrails · 14.6 Measuring agent impact · 14.6.1 Defining success metrics · 14.6.2 Experimental design for agent evaluation · 14.6.3 Return on investment calculation · 14.7 Summary

What you learn in chapter 14 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.