Abstract
Automating the extraction of structured data from complex document images, such as financial statements and faxes, remains a significant challenge due to layout diversity, handwriting variability, and the need for continuous model adaptation. This paper presents a modular machine learning framework that addresses these issues through a decoupled architecture for printed and handwritten text recognition, a robust region detection module, and a knowledge-distillation-based incremental learning system. Experimental results demonstrate high precision in table cell detection (99.9%) and handwriting verification (97.54%), while maintaining stability during new data ingestion.
Introduction
Industrial-grade data ingestion from document images is often hindered by three primary factors: complex and varied layouts, the presence of "invisible" tables lacking grid lines, and the inherent difficulty of reliable handwriting recognition and signature verification. Traditional OCR systems frequently fail to differentiate between these diverse regions, leading to high manual intervention costs in sectors like finance. This work proposes a comprehensive pipeline to automate this process, transforming raw document images into structured JSON format.
Methodology
The proposed framework is organized into three primary modules: Region Detection, Text Recognition, and Incremental Learning.
Region Detection
The system utilizes a modified Light-Head R-CNN with a ResNet-50 backbone for image segmentation. To address the "invisible table" problem, a Region Combination (RC) algorithm is employed to merge overlapping candidate boxes that standard Non-Maximum Suppression (NMS) might overlook.
Text Recognition (ACRNN)
The framework treats printed and handwritten text separately to avoid feature interference. Printed text is processed using an Attention-based Convolutional Recurrent Neural Network (ACRNN). For handwriting, a Multi-Task (MT) model is used, which simultaneously performs text recognition and writer identity verification using Angular Softmax (A-softmax).
Incremental Learning
To prevent "catastrophic forgetting" when the model is updated with new document types or signers, a knowledge distillation strategy is implemented. A "teacher" model guides a "student" model, ensuring that previously acquired knowledge is preserved while new data is integrated.
Datasets and Training
The framework was trained and evaluated using a combination of real-world and synthetic data:
- Real-world Data: 84,000 anonymized fax images from State Street Corporation.
- Handwriting Data: A dataset of 86,481 signatures from 486 individuals across multiple languages and scripts.
- Synthetic Data: 80,000 samples used for a "warm-up" training phase to improve convergence on complex real-world documents.
Results
The pipeline achieves a processing speed of under 5 seconds per document. Key performance metrics include:
- Layout Accuracy: 99.9% precision in table cell detection, significantly outperforming baseline solutions like Adlib PDF.
- Handwriting Verification: A Top-5 precision of 97.54% for signature verification.
- Incremental Stability: The distillation approach maintained a low error rate (~9.5%) on original classes after learning new ones, compared to ~46% for standard fine-tuning.
Conclusion
This modular framework provides a robust solution for automated document data ingestion. By decoupling recognition tasks and employing incremental learning, the system achieves industrial-grade accuracy and adaptability. Future work will focus on reducing human-in-the-loop requirements and incorporating semantic NLP for deeper document understanding.
Summary updated