BaDLAD: A Large Multi-Domain Bengali Document Layout Analysis Dataset

Md. Istiak Hossain Shihab, Md. Rakibul Hasan, Mahfuzur Rahman Emon, Syed Mobassir Hossen, Md. Nazmuddoha Ansary, Intesur Ahmed, Fazle Rabbi Rakib, Shahriar Elahi Dhruvo, Souhardya Saha Dip, Akib Hasan Pavel, Marsia Haque Meghla, Md. Rezwanul Haque, Sayma Sultana Chowdhury, Farig Sadeque, Tahsin Reasat, Ahmed Imtiaz Humayun, Asif Shahriyar Sushmit

Introduction

Document Layout Analysis (DLA) is a critical precursor to Optical Character Recognition (OCR). Before a system can digitize text, it must first identify and segment the semantic structure of a page—distinguishing between paragraphs, images, tables, and headers. While English-language DLA has advanced rapidly due to large-scale datasets like PubLayNet, Bengali, the world's seventh most spoken language, has historically lacked the resources necessary to move beyond brittle, rule-based systems.

Bengali document analysis presents unique challenges: the script's intricate character composites and inflections make layout boundaries difficult to discern, and real-world documents often suffer from "in-the-wild" artifacts like coffee stains, faded ink, or complex historical typesetting. To bridge this gap, the BaDLAD paper introduces a massive, multi-domain dataset designed to bring Bengali document analysis into the deep learning era.

The BaDLAD Dataset

BaDLAD (Bengali Document Layout Analysis Dataset) represents a significant leap in scale and diversity for the field. The dataset consists of:

  • 33,693 Human-Annotated Images: Featuring over 710,000 individual polygon annotations.
  • 4 Million Un-annotated Samples: Provided to facilitate future research in unsupervised and self-supervised learning.
  • Six Distinct Domains: To ensure robustness, the authors collected documents from diverse sources, including Books/Magazines, Public Government Documents, Liberation War Documents, Modern Newspapers, Historical Newspapers, and Property Deeds.

Unlike many datasets that rely on simple rectangular bounding boxes, BaDLAD utilizes polygon annotations. This is vital for "organic" or scanned documents where text may be skewed or images irregularly shaped, allowing for a much tighter and more accurate fit around semantic units.

Methodology

The authors employed a rigorous pipeline to ensure the quality and representative nature of the data:

  1. Data Collection: Documents were sourced via web scraping (20,000 PDFs), manual scanning of historical archives (including sensitive Liberation War records), and crowdsourcing for property deeds.
  2. Layout Discovery: To capture the full variety of layouts, the team used a self-supervised model (SwAV) to cluster documents into "prototypes." This process identified four primary semantic units for annotation: text-boxes, paragraphs, images, and tables.
  3. Annotation: A team of 13 trained annotators used the Labelbox platform to create the polygon masks.
  4. Benchmarking: The dataset was evaluated using state-of-the-art architectures, including Faster R-CNN, Mask R-CNN, and YOLOv8, to establish performance baselines and test the transferability of models pre-trained on English data.

Key Insights and Analysis

Complexity and Annotation Effort

The authors used "annotation time" as a proxy for layout complexity. Their analysis revealed that historical and modern newspapers are the most challenging domains, requiring over 20 minutes per page to annotate. In contrast, standard books required only approximately 3 minutes. This disparity highlights the difficulty of segmenting dense, multi-column layouts compared to linear text.

Spatial Priors

By mapping the spatial distribution of unit types across the dataset, the researchers identified clear patterns: tables tend to be centrally located, while text-boxes (often serving as headers or captions) show a high density at the top of pages. These spatial priors provide valuable context for models attempting to classify ambiguous segments.

The Necessity of Polygons

The research emphasizes that because many Bengali documents are scanned or photographed in non-ideal conditions, they are rarely perfectly axis-aligned. Polygon masks proved far more effective than traditional bounding boxes for capturing the true boundaries of text in these "amorphous" real-world layouts.

Experimental Results

The benchmarking phase established strong initial baselines for the community:

  • Object Recognition: YOLOv8 was the top performer, achieving a Mean Average Precision (mAP) of 70.46%.
  • Segmentation: In the more complex mask prediction task, a Mask R-CNN model pre-trained on PubLayNet achieved an average mAP of 32.27%.
  • Domain Sensitivity: Models performed exceptionally well on structured "Government Documents" (reaching up to 98.7% mAP for tables) but struggled with "Property Deeds," which were intentionally withheld from the training set to test out-of-distribution robustness.
  • Class Difficulty: While paragraphs and images are relatively easy for current models to detect, small, isolated "text-boxes" remain the most difficult category to identify accurately.

Conclusion and Future Work

BaDLAD provides the foundational data necessary to modernize Bengali OCR and document digitization. While the dataset is a major milestone, the authors identify several paths for future improvement, including addressing class imbalances (e.g., adding more receipts or ID cards) and integrating multimodal features—combining visual layout data with textual information from Language Models. To further expand the dataset, the team plans to employ active learning to selectively annotate the most informative samples from their 4-million-image un-annotated pool.

Summary updated

BibTeX
@inproceedings{shihab2023badlad,
  author = {Md. Istiak Hossain Shihab and Md. Rakibul Hasan and Mahfuzur Rahman Emon and Syed Mobassir Hossen and Md. Nazmuddoha Ansary and Intesur Ahmed and Fazle Rabbi Rakib and Shahriar Elahi Dhruvo and Souhardya Saha Dip and Akib Hasan Pavel and Marsia Haque Meghla and Md. Rezwanul Haque and Sayma Sultana Chowdhury and Farig Sadeque and Tahsin Reasat and Ahmed Imtiaz Humayun and Asif Shahriyar Sushmit},
  title = {{BaDLAD: A Large Multi-Domain Bengali Document Layout Analysis Dataset}},
  booktitle = {ICDAR},
  year = {2023},
  doi = {10.1007/978-3-031-41676-7\_19},
}
Figure