~/wiki

Concatenated Document Classification

Mis à jour le 2025-12-29Confiance : high
concatenated-documentsclassification-challengesmulti-document-pdfdocument-processinghealthcare-documentsprescription-invoice-receiptsingle-pdf-multiple-typesclassification-confusionproduction-systems

Challenge in document processing where users upload multiple document types in a single PDF, confusing classifiers designed to expect one document type per upload. Major production issue identified at alan-health processing French healthcare documents.

Problem Definition

Typical Concatenated Patterns

  • Prescription + invoice + payment receipt in single PDF
  • Hospital attestation + multiple invoices
  • Mixed healthcare document types spanning multiple pages

Classification System Confusion

  • Traditional classifiers trained on single-document-type assumptions
  • Vocabulary overlap between document types creates ambiguity
  • First document in sequence may drive classification decision
  • Extraction schema mismatch leads to unusable results

Impact on Processing Pipeline

Single Point of Failure

  • Incorrect classification renders entire extraction unusable
  • Wrong schema applied to mixed content produces garbled results
  • Human review required even for otherwise processable individual documents

Example: French Healthcare Documents

  • Hospital attestations misclassified as emergency invoices due to shared vocabulary
  • Prescription documents combined with pharmacy invoices confuse categorical boundaries
  • Payment receipts concatenated with medical invoices create classification uncertainty

Potential Solutions

Document Segmentation

  • Pre-processing to identify document boundaries within PDF
  • Individual classification per document segment
  • Parallel extraction pipelines for each identified document type

Multi-Label Classification

  • Update classification system to handle multiple document types
  • Confidence scoring per document type detected
  • Sequential processing based on detected types

Layout-Based Detection

  • Visual layout analysis to identify document boundaries
  • Page-level classification before content-level analysis
  • Structural cues for document type identification

Current Status

alan-health identifies this as active area for improvement in their production system. Classification accuracy improvements needed for these edge cases to reduce human review requirements and improve automation rates.

See also