Manga109Dialog: A Large-scale Dialogue Dataset for Comics Speaker Detection

Yingxuan Li, Kiyoharu Aizawa, Yusuke Matsui

The digital comics market is booming, with e-comics now making up over 66% of the Japanese market. But for AI to truly "understand" a comic, it needs to do more than just recognize faces or OCR text; it needs to link them. Who is saying what? This task, known as speaker detection, is the backbone for future applications like automatic text-to-speech for audiobooks, character-aware translation, and automated story analysis.

A recent paper from researchers at The University of Tokyo introduces Manga109Dialog, a massive new dataset and a novel deep-learning approach to solve this complex spatial puzzle.

TL;DR

The authors present Manga109Dialog, the world’s largest speaker-to-text dataset for comics with over 132,000 annotated pairs. They also propose a novel speaker detection method that treats the problem as a Scene Graph Generation (SGG) task, significantly improving accuracy by incorporating comic-specific frame reading orders.

What Problem Does This Paper Address?

In comics, the relationship between text and speaker isn't always straightforward. While a simple "nearest neighbor" rule (assigning text to the closest character) works for simple layouts, it fails miserably in complex scenes.

Fig. 1: An example of speaker detection. Courtesy of Aka- matsu Ken.

As shown in Figure 1, a character might be spatially closer to a text bubble that actually belongs to someone else in a different frame. Previous datasets were too small or lacked explicit links between text and specific character bounding boxes, making it difficult to train robust machine learning models.

Methods

The researchers moved away from simple distance-based rules toward Scene Graph Generation (SGG). In this framework, characters and text bubbles are "nodes," and the "speaks" relationship is an "edge" between them.

Their pipeline, based on the MOTIFS architecture, consists of three stages:

  1. Object Detection: Using Faster R-CNN to identify characters, text regions, and frames.
  2. Feature Fusion: Using bidirectional LSTMs to create rich representations of these objects.
  3. Relationship Prediction: Calculating a score for every possible character-text pair.

The "secret sauce" here is the incorporation of reading order. The authors observed that speakers usually appear in the same or adjacent frames to their dialogue. They developed a frame order estimator and used a weight function to boost the relationship scores of character-text pairs that are closer in the reading sequence.

Fig. 4: The framework of the proposed method, showing the pipeline from object detection to speaker estimation.

Datasets

The primary contribution is Manga109Dialog, built upon the existing Manga109 dataset.

  • Scale: 132,692 speaker-to-text pairs across 9,904 images.
  • Granularity: Unlike previous datasets that just gave character names, this links text to specific bounding boxes.
  • Difficulty Levels: The authors categorized pairs into "Easy" (speaker and text in the same frame) and "Hard" (speaker in a different frame).

They also evaluated their model on eBDtheque, a smaller dataset containing French, American, and Japanese comics, to test cross-domain generalization.

Key Insights and Ideas

  • Distance is Deceptive: Rule-based methods struggle with "Hard" cases where the speaker is off-panel or in a different frame. The SGG approach allows the model to learn visual cues beyond simple Euclidean distance.
  • Reading Order is a Prior: In manga, the flow of time is encoded in the frame sequence (top-to-bottom, right-to-left). By mathematically weighting pairs based on their frame index, the model mimics how a human reader navigates the page.
  • New Evaluation Metric: The authors argue that standard SGG metrics (like Recall@K) are unfair for comics because the number of text bubbles varies wildly per page. They introduced Recall@(#text), which evaluates if the model correctly identifies the top speaker for every single text bubble on the page.

Key Results

The proposed SGG model achieved a total prediction accuracy of 75.69% on Manga109Dialog, outperforming the best rule-based method ("frame distance") by over 4%.

The impact was most dramatic in "Hard" cases. While the rule-based "frame distance" method achieved only 22.06% accuracy on Hard pairs, the proposed model reached 30.65%. While still a difficult category, this represents a significant step forward in handling complex comic layouts.

Fig. 3: An example of annotations on three prediction diffi- culties. Courtesy of Kurita Riku.

Limitations and Future Work

Despite the improvements, two major challenges remain:

  1. Visual Ambiguity: When two characters are equally likely speakers based on visual cues alone, the model can guess wrong.
  2. Alternating Dialogue: In scenes with rapid-fire dialogue between characters, visual information is often insufficient to track who is speaking.

The authors conclude that the next logical step is integrating Natural Language Processing (NLP). By "reading" the content of the dialogue and understanding the context of the conversation, future models could resolve the ambiguities that visual-only systems currently find impossible.

Summary updated

Abstract

The expanding market for e-comics has spurred interest in the development of automated methods to analyze comics. For further understanding of comics, an automated approach is needed to link text in comics to characters speaking the words. Comics speaker detection research has practical applications, such as automatic character assignment for audiobooks, automatic translation according to characters' personalities, and inference of character relationships and stories. To deal with the problem of insufficient speaker-to-text annotations, we created a new annotation dataset Manga109Dialog based on Manga109. Manga109Dialog is the world's largest comics speaker annotation dataset, containing 132,692 speaker-to-text pairs. We further divided our dataset into different levels by prediction difficulties to evaluate speaker detection methods more appropriately. Unlike existing methods mainly based on distances, we propose a deep learning-based method using scene graph generation models. Due to the unique features of comics, we enhance the performance of our proposed model by considering the frame reading order. We conducted experiments using Manga109Dialog and other datasets. Experimental results demonstrate that our scene-graph-based approach outperforms existing methods, achieving a prediction accuracy of over 75%.
BibTeX
@misc{li2023manga,
  author = {Yingxuan Li and Kiyoharu Aizawa and Yusuke Matsui},
  title = {{Manga109Dialog: A Large-scale Dialogue Dataset for Comics Speaker Detection}},
  year = {2023},
  eprint = {2306.17469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.17469},
}
Figure