Skip to main content
QUICK REVIEW

[Paper Review] Sequence-aware multimodal page classification of Brazilian legal documents

Pedro Henrique Luz de Araujo, Ana Paula G. S. de Almeida|arXiv (Cornell University)|Jul 2, 2022
Artificial Intelligence in LawSocial Sciences36 references8 citations
TL;DR

This paper proposes a sequence-aware multimodal approach for classifying pages in Brazilian Supreme Court lawsuits by fusing visual and textual features using a learnable fusion module that handles missing data. It achieves state-of-the-art performance by jointly modeling sequential dependencies via biLSTM and CRF, outperforming unimodal and non-sequential baselines on a novel dataset of 6,510 lawsuits with 339,478 annotated pages.

ABSTRACT

The Brazilian Supreme Court receives tens of thousands of cases each semester. Court employees spend thousands of hours to execute the initial analysis and classification of those cases -- which takes effort away from posterior, more complex stages of the case management workflow. In this paper, we explore multimodal classification of documents from Brazil's Supreme Court. We train and evaluate our methods on a novel multimodal dataset of 6,510 lawsuits (339,478 pages) with manual annotation assigning each page to one of six classes. Each lawsuit is an ordered sequence of pages, which are stored both as an image and as a corresponding text extracted through optical character recognition. We first train two unimodal classifiers: a ResNet pre-trained on ImageNet is fine-tuned on the images, and a convolutional network with filters of multiple kernel sizes is trained from scratch on document texts. We use them as extractors of visual and textual features, which are then combined through our proposed Fusion Module. Our Fusion Module can handle missing textual or visual input by using learned embeddings for missing data. Moreover, we experiment with bi-directional Long Short-Term Memory (biLSTM) networks and linear-chain conditional random fields to model the sequential nature of the pages. The multimodal approaches outperform both textual and visual classifiers, especially when leveraging the sequential nature of the pages.

Motivation & Objective

  • Address the high manual effort required to classify Brazilian Supreme Court case pages, which consume thousands of hours per semester.
  • Develop a multimodal framework that combines visual (image) and textual (OCR) features for improved document classification in the legal domain.
  • Leverage the sequential structure of multi-page lawsuits to enhance classification accuracy beyond isolated page analysis.
  • Create and release a new, large-scale, multimodal dataset of 6,510 Brazilian lawsuits with 339,478 annotated pages, including both images and OCR-extracted text.
  • Evaluate fusion strategies and sequence modeling techniques to determine their impact on classification performance in Portuguese-language legal documents.

Proposed method

  • Train a ResNet-50 model fine-tuned on ImageNet for visual feature extraction from document images.
  • Train a 1D CNN with multiple kernel sizes from scratch on OCR-extracted text to learn textual features.
  • Propose a Fusion Module that combines visual and textual embeddings using learnable embeddings for missing modalities, replacing zero vectors.
  • Apply biLSTM networks to model the sequential order of pages in a lawsuit, with and without CRF post-processing for label consistency.
  • Experiment with early fusion (concatenating image and text embeddings before LSTM) versus late fusion (fusing after LSTM), comparing performance.
  • Use a CRF layer to enforce label consistency across adjacent pages in the sequence, improving prediction coherence.

Experimental results

Research questions

  • RQ1Can multimodal fusion of visual and textual features improve page classification accuracy in Brazilian legal documents compared to unimodal models?
  • RQ2Does modeling the sequential nature of pages in a lawsuit lead to significant performance gains in document classification?
  • RQ3How does the choice of fusion strategy (early vs. late) affect classification performance in a multimodal setting?
  • RQ4How effective is the use of learnable embeddings for missing visual or textual data compared to zero vectors?
  • RQ5Can joint learning of modality fusion and sequence modeling outperform sequential modeling of independently fused features?

Key findings

  • The proposed Fusion Module with learnable embeddings for missing modality inputs improved average F1 scores by 6.47 and 2.75 percentage points for models with 512 and 128 hidden units, respectively.
  • The fusion model outperformed both unimodal classifiers (text and image), achieving the highest average F1 score of 80.47% on the test set.
  • Sequence modeling using biLSTM with fused image and text embeddings (BiLSTM-F) achieved the best performance, with an average F1 of 81.25% and weighted F1 of 93.10%.
  • The CRF layer improved the BiLSTM model by 1.29 percentage points in average F1, but did not help the BiLSTM-F model, suggesting interaction effects between fusion and sequence modeling.
  • First-page classification performance was significantly higher than for interior pages, with a 9.47 percentage point average F1 improvement in the fusion setting, indicating first pages are more informative.
  • The model achieved state-of-the-art results on the small version of the VICTOR dataset, outperforming prior work in the legal document classification space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.