Intelligent Document Processing for Mortgage Servicing Using Amazon Bedrock and Multimodal AI

onity_group · Finance · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Mortgage-servicing document processing

Onity Group needed to process millions of pages across hundreds of mortgage document types while extracting buried legal facts, handwritten values, notarization details, seals, appraisal comparisons, and credit-report data. Traditional OCR and custom AI/ML could digitize text, but struggled with semantic context, visual cues, untrained document types, and inconsistent formats.

Constraints:

Architecture

Onity built an intelligent document processing system that combines Amazon S3 ingestion, preprocessing, Amazon Textract, custom classification models, Amazon Bedrock foundation models, and persistence in operational databases and S3. Documents enter through S3 and preprocessing, Textract extracts initial content, a custom AI model classifies known document types when confidence is high, and unrecognized or complex cases route to Anthropic Claude Sonnet or other Bedrock text/vision models. Extraction rules are retrieved from an internal database, and the extraction application dynamically chooses Textract or Bedrock based on each document type and data element.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Amazon_S3_document_intake["Amazon S3 document intake"] --> Preprocessing_workflow["Preprocessing workflow"]
  Preprocessing_workflow --> Amazon_Textract["Amazon Textract"]
  Amazon_Textract --> Document_classification_application["Document classification application"]
  Document_classification_application --> Custom_AI_classification_model["Custom AI classification model"]
  Custom_AI_classification_model --> Amazon_Bedrock_classification_fallback["Amazon Bedrock classification fallback"]
  Document_classification_application --> Amazon_Bedrock_classification_fallback
  Amazon_Textract --> Document_extraction_application["Document extraction application"]
  Internal_extraction_rules_database["Internal extraction rules database"] --> Document_extraction_application
  Document_extraction_application --> Amazon_Bedrock_text_and_vision_models["Amazon Bedrock text and vision models"]
  Document_extraction_application --> Operational_databases["Operational databases"]
  Document_extraction_application --> Semi_structured_S3_output["Semi-structured S3 output"]
  Amazon_S3_document_intake --> Semi_structured_S3_output
  AWS_security_controls["AWS security controls"] --> Amazon_S3_document_intake
  AWS_security_controls --> Amazon_Bedrock_text_and_vision_models
  AWS_security_controls --> Operational_databases
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Amazon S3 document intake Receives uploaded mortgage documents and triggers automated processing workflows. Preprocessing workflow, Semi-structured S3 output
Preprocessing workflow Performs image enhancement, noise reduction, and layout analysis before OCR and model analysis. Amazon S3 document intake, Amazon Textract
Amazon Textract Extracts text, data, and document contents for classification and simpler extraction tasks. Preprocessing workflow, Document classification application, Document extraction application
Document classification application Orchestrates the three-step classification workflow and emits page document type and page number in JSON. Amazon Textract, Custom AI classification model, Amazon Bedrock classification fallback
Custom AI classification model Classifies known document types when confidence exceeds the predetermined threshold. Document classification application, Amazon Bedrock classification fallback
Amazon Bedrock classification fallback Uses Anthropic Claude Sonnet and other text/vision models to classify unrecognized document types without additional training. Document classification application, Custom AI classification model
Internal extraction rules database Stores document-type and data-element extraction rules used by the extraction application. Document extraction application
Document extraction application Retrieves extraction rules and dynamically routes extraction work between Textract and Bedrock based on content complexity. Amazon Textract, Internal extraction rules database, Amazon Bedrock text and vision models, Operational databases
Amazon Bedrock text and vision models Handle complex extraction tasks requiring contextual, visual, and textual understanding, such as notarization or appraisal checks. Document extraction application, Operational databases
Operational databases Store structured extracted information for downstream mortgage servicing processes. Document extraction application, Amazon Bedrock text and vision models
Semi-structured S3 output Stores semi-structured extracted information for further downstream processing. Amazon S3 document intake, Document extraction application
AWS security controls Protect sensitive financial documents with KMS encryption, TLS, IAM policies, and Bedrock security capabilities. Amazon S3 document intake, Amazon Bedrock text and vision models, Operational databases

Data flow

Documents are uploaded to Amazon S3, which triggers preprocessing and automated processing workflows. Textract extracts contents for classification. Onity's document classification application sends the extracted content to a custom AI model; if confidence clears the threshold, classification completes, otherwise the application routes the document to Anthropic Claude Sonnet in Amazon Bedrock. For extraction, the application queries an internal database for document-type and field-specific rules, then dynamically routes each extraction task between Textract and Bedrock foundation models. Extracted information is stored in structured operational databases and semi-structured S3 output.

4 supporting quotes
“Document ingestion – Documents are uploaded to Amazon Simple Storage Service (Amazon S3). Uploading triggers automated processing workflows.”article, stated
“The application uses Amazon Textract to extract document contents.”article, stated
“If the document isn’t recognized because the model isn’t trained with that document type, the application automatically routes the document to Anthropic’s Claude Sonnet in Amazon Bedrock.”article, stated
“The extracted information is stored in a structured format in Onity’s operational databases and in a semi-structured format in Amazon S3 for further downstream processing.”article, stated

Why this architecture

Onity chose a hybrid OCR/custom-model/foundation-model architecture because mortgage documents vary widely in complexity. Textract and the custom AI model handle known or simpler work cost-effectively, while Bedrock text and vision models handle unrecognized document types, context-heavy legal language, handwriting, seals, and notarization. Bedrock's model catalog keeps the system flexible as cost and accuracy tradeoffs change by document type.

4 supporting quotes
“This dual-model approach enabled Onity to address the scale and diversity of its mortgage servicing documents more efficiently, driving significant improvements in both cost and accuracy.”article, stated
“You can select the model that strikes the right balance of accuracy, performance, and cost efficiency for your specific application.”article, stated
“This dynamic routing of extraction tasks allows Onity to optimize the balance between cost, performance, and accuracy.”article, stated
““We needed a solution that could evolve as quickly as our document processing needs,” says Raghavendra (Raghu) Chinhalli, VP of Digital Transformation at Onity Group.”article, stated

Models used: Amazon Textract · Onity custom AI model · Anthropic Claude Sonnet · Amazon Nova Pro · Amazon Nova Lite · Amazon Bedrock foundation models · text and vision foundation models

Scale

Alternatives considered (roads not taken)

Use the previous OCR and AI/ML solution for mortgage document extraction

Rejected because: The prior approach struggled with dense legal text, handwriting, seals, and contextual interpretation, while the new solution reports lower costs and higher accuracy.

“traditional optical character recognition (OCR) and AI and machine learning (AI/ML) solutions struggled to handle effectively.”article, stated
“By using foundation models (FMs) provided by Amazon Bedrock, Onity achieved a 50% reduction in document extraction costs while improving overall accuracy by 20%”article, stated

Use only the custom classification model

Rejected because: The classification application falls back to Claude Sonnet when the custom model was not trained on a document type.

“If the document isn’t recognized because the model isn’t trained with that document type, the application automatically routes the document to Anthropic’s Claude Sonnet in Amazon Bedrock.”article, stated

Use Textract or OCR alone for all extraction tasks

Rejected because: Complex tasks such as notarization require deeper visual and textual analysis from Bedrock text and vision models.

“For example, verifying notarization requires complex visual and textual analysis. In these cases, the application uses the capabilities of Amazon Bedrock advanced text and vision models.”article, stated

Commit to a single foundation model for all document tasks

Rejected because: The Bedrock API lets Onity choose different models for the best balance of cost and accuracy by document type.

“The solution is built on the Amazon Bedrock API, which allows Onity to use different FMs that provide the optimal balance of cost and accuracy for each document type.”article, stated

Patterns

model-routing (architecture)

Onity routes classification and extraction work across a custom AI model, Textract, Claude Sonnet, and other Bedrock text/vision models based on document recognition and task complexity.

“If the document isn’t recognized because the model isn’t trained with that document type, the application automatically routes the document to Anthropic’s Claude Sonnet in Amazon Bedrock.”article, stated
“It then dynamically routes extraction tasks between Amazon Textract and Amazon Bedrock FMs based on the complexity of the content.”article, stated

confidence-thresholding (control)

The classification workflow accepts the custom model's classification only when confidence exceeds a predetermined threshold; otherwise it escalates to Bedrock.

“Extracted content is processed by Onity’s custom AI model. If the model’s confidence score meets the predetermined threshold, classification is complete.”article, stated

cost-aware-routing (operations)

The system reserves Bedrock foundation models for complex cases while using Textract or custom models where sufficient, balancing cost, performance, and accuracy.

“This dynamic routing of extraction tasks allows Onity to optimize the balance between cost, performance, and accuracy.”article, stated
“using both Onity’s custom model and the generative AI capabilities of Amazon, helps to optimally balance cost efficiency with speed to market.”article, stated

structured-output-contract (interface)

Classification and extraction prompts produce JSON outputs such as page type/page number, notarization fields, rider lists, appraisal explanations, and credit bureau score objects.

“The process outputs each page’s document type and page number in JSON format:”article, stated
“The following image is of a rider that includes text and a series of check boxes (selected and unselected). The document image is passed to the application with a prompt to extract both checked riders and other riders listed on the document in a provided JSON format.”article, stated

tool-use-orchestration (architecture)

The pipeline coordinates S3 triggers, preprocessing, Textract, custom models, Bedrock, internal extraction rules, operational databases, and S3 storage into one document-processing workflow.

“To address these document processing challenges, Onity built an intelligent solution combining AWS AI/ML and generative AI services.”article, stated
“Onity’s document extraction application employs an algorithm-driven approach that queries an internal database to retrieve specific extraction rules for each document type and data element.”article, stated

safety-policy-enforcement (governance)

Because mortgage documents contain sensitive financial information, the architecture uses KMS encryption, TLS, IAM, Bedrock security capabilities, and AWS FSI/security best-practice guidance.

“When processing sensitive financial documents, Onity implements robust data protection measures. Data is encrypted at rest using AWS Key Management Service (AWS KMS) and in transit using TLS protocols.”article, stated
“Access to data is strictly controlled using AWS Identity and Access Management (IAM) policies.”article, stated

Tradeoffs

Route between custom AI and Bedrock instead of sending every classification to a foundation model.

Chose custom model first with Bedrock fallback for unrecognized document types over Bedrock-only classification for all documents.

Rationale: The custom model handles recognized document types, while Bedrock provides flexibility and speed when the model was not trained for a type.

“If the document isn’t recognized because the model isn’t trained with that document type, the application automatically routes the document to Anthropic’s Claude Sonnet in Amazon Bedrock.”article, stated
“This dual-model approach, using both Onity’s custom model and the generative AI capabilities of Amazon, helps to optimally balance cost efficiency with speed to market.”article, stated

Use dynamic extraction routing instead of one extractor for every data element.

Chose task-level routing between Textract and Bedrock FMs over a uniform OCR-only or FM-only extraction path.

Rationale: Simple fields can stay on cheaper extraction paths, while visually or semantically complex tasks can use Bedrock's text and vision models.

“It then dynamically routes extraction tasks between Amazon Textract and Amazon Bedrock FMs based on the complexity of the content.”article, stated
“For example, verifying notarization requires complex visual and textual analysis. In these cases, the application uses the capabilities of Amazon Bedrock advanced text and vision models.”article, stated

Build on Bedrock's model API instead of hard-coding one model provider.

Chose a managed API with multiple foundation-model providers over a single fixed model integration.

Rationale: Model choice can change by document type and as accuracy, performance, and cost profiles evolve.

“Through a single API, Amazon Bedrock provides access to models from providers such as AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon”article, stated
“The flexible FM selection provided by Amazon Bedrock enables organizations to choose and evolve their AI capabilities over time”article, stated

Ask the model for explanations and structured checks rather than only field extraction.

Chose prompted analysis with JSON fields and explanations over plain OCR field extraction without reasoning output.

Rationale: Appraisal and notarization use cases require justification, rule checks, and handling of modified fields, not just raw text capture.

“The prompt also requests an explanation of the analysis results. The application then extracts the required information and provides detailed justification for its findings.”article, stated
“The prompt also instructs that if a field is manually crossed out or modified, the manually written or modified text should be used for that field in the output.”article, stated

Gotchas (what bit them)

Traditional OCR digitized text but did not understand mortgage-document semantics.

Root cause: OCR could read text without interpreting the context needed to identify embedded legal facts or document meaning.

Resolution: Onity added foundation models through Bedrock for contextual text and vision analysis on complex cases.

“Issue – Traditional OCR models, although adept at digitizing text, often lack the capacity to interpret the semantic context within a document, hindering a true understanding of the information contained”article, stated
“This foundation model, along with other text and vision models such as Anthropic’s Claude and Amazon Nova, can classify documents without additional training, analyzing both text and images.”article, stated

Verbose legal documents hide critical fields inside unstructured paragraphs.

Root cause: Mortgage documents such as deeds of trust contain dense legalese where key data lacks obvious labels or structure.

Resolution: The extraction layer uses Bedrock for complex contextual analysis and document-specific extraction rules from an internal database.

“Issue – Key documents in mortgage servicing contain verbose text with critical data elements embedded without clear identifiers or structure”article, stated
“Identifying the exact legal description from a deed of trust, which might be buried within paragraphs of legalese”article, stated

Handwriting and format variation can break brittle extractors.

Root cause: The same value can appear in inconsistent handwriting, abbreviation, or numeric formats.

Resolution: The system routes complex handwritten and multimodal extraction tasks to Bedrock text and vision models rather than relying on OCR alone.

“Issue – Documents contain handwritten elements that vary significantly in quality, style, and legibility”article, stated
“Simple variations in writing formats—such as state names (GA and Georgia) or monetary values (200K or 200,000)—create significant extraction challenges”article, stated

Notarization and seal checks require visual-textual reasoning, not just text extraction.

Root cause: Notary seals, court stamps, expiration dates, and modified handwritten fields combine layout, visual marks, and text.

Resolution: For notarization, the application passes the image to a prompt that extracts fields and handles manually modified values.

“Issue – Identifying whether a document is notarized, detecting legal court stamps, verifying if a notary’s commission has expired, or extracting data from legal seals, which come in multiple shapes, requires a deeper understanding of visual and textual cues”article, stated
“The prompt also instructs that if a field is manually crossed out or modified, the manually written or modified text should be used for that field in the output.”article, stated

Model choice cannot be frozen when document types and cost/accuracy needs vary.

Root cause: Different mortgage document tasks demand different balances of performance, accuracy, vision capability, and cost.

Resolution: The solution uses Bedrock's model catalog and evaluation workflow to choose models by use case.

“Amazon Bedrock gives you the flexibility to choose the FM that best suits your needs.”article, stated
“Through this process, you can make informed decisions about which model provides the best balance of performance and cost-effectiveness for your specific use case.”article, stated

Sensitive financial document pipelines need security controls built into the architecture.

Root cause: Mortgage servicing documents contain financial and personal information that cannot be treated like generic text-processing data.

Resolution: Onity uses KMS, TLS, IAM policies, and AWS FSI/security guidance around the document-processing workflow.

“When processing sensitive financial documents, Onity implements robust data protection measures.”article, stated
“Data is encrypted at rest using AWS Key Management Service (AWS KMS) and in transit using TLS protocols.”article, stated

Evaluation

The article evaluates Onity's solution through reported before/after business metrics against the previous OCR/AI/ML and manual processes, plus task-specific examples for deeds of trust, appraisal review, and credit reports. It reports cost reduction, overall accuracy improvement, appraisal-review accuracy improvement, and credit-report accuracy, but the metrics are vendor-published and not independently audited in the article.

Metrics: 50% reduction in document extraction costs · 20% improvement in overall accuracy · 65% improvement in appraisal-review accuracy over manual process · approximately 85% credit-report accuracy · cost · performance · accuracy · robustness

4 supporting quotes
“By using foundation models (FMs) provided by Amazon Bedrock, Onity achieved a 50% reduction in document extraction costs while improving overall accuracy by 20%”article, stated
“The automated solution now validates property comparisons and identifies potential discrepancies, significantly reducing review times while improving accuracy by 65% over the manual process.”article, stated
“The solution automatically extracts and standardizes credit scores and scoring models across different report formats, achieving approximately 85% accuracy.”article, stated
“compare the best foundation models across different metrics such as accuracy, robustness, and cost using Amazon Bedrock model evaluation.”article, stated

Outcomes

Onity processes millions of pages across hundreds of document types annually. Reported outcomes include 50% extraction-cost reduction, 20% overall accuracy improvement, 65% appraisal-review accuracy improvement over manual review, and approximately 85% credit-report accuracy. These are article-reported figures from an AWS customer story.

4 supporting quotes
“By using foundation models (FMs) provided by Amazon Bedrock, Onity achieved a 50% reduction in document extraction costs while improving overall accuracy by 20%”article, stated
“The following is a sample of a notarized document that combines printed and handwritten text and a notary seal.”article, stated
“The following example shows a document in a grid layout with rows and columns of information. The document image is passed to the application with a prompt to verify if the room counts are identical across the subject and comparables”article, stated
“The solution automatically extracts and standardizes credit scores and scoring models across different report formats, achieving approximately 85% accuracy.”article, stated