Data Augmentation: a Combined Inductive-Deductive Approach featuring Answer Set Programming

Pierangela Bruno, Francesco Calimeri, Cinzia Marte, Simona PerriarXiv 2023

TL;DR

This paper introduces a hybrid "inductive-deductive" framework for medical data augmentation that combines the logical rigor of Answer Set Programming (ASP) with the generative power of Deep Learning. By using ASP to declaratively specify medically sound image labels and SPADE to render them into photo-realistic images, the authors provide a way to generate high-quality synthetic datasets that strictly adhere to domain-specific constraints.

What Problem Does This Paper Address?

Deep Learning (DL) models are data-hungry, but in fields like biomedicine, high-quality labeled data is notoriously scarce, expensive to acquire, and often imbalanced. While standard data augmentation (like flipping or rotating images) helps, it doesn't add new semantic variety. Generative Adversarial Networks (GANs) can create new images, but they are often "black boxes" that might generate medically impossible scenarios—such as a tumor appearing in a location where it physically cannot grow.

The authors address the need for controllable and medically valid data augmentation. They aim to bridge the gap between "inductive" methods (learning from data) and "deductive" methods (reasoning from rules) to ensure synthetic images are both realistic-looking and scientifically accurate.

Methods

The proposed framework follows a two-stage workflow:

  1. Deductive Label Generation (ASP): Instead of just perturbing existing images, the researchers use ASP—a declarative logic programming language—to generate brand-new semantic masks (labels).
  2. Knowledge Encoding: They encode medical rules into ASP (e.g., "pathology must appear on the vocal folds").
  3. Space Partitioning: To handle the high resolution of images (512x512) without overwhelming the logic solver, they divide the image into blocks (64x64) and sub-blocks (8x8).
  4. Object Synthesis: The ASP program "guesses" a center point for an object (like a tumor or surgical tool) and then uses "contour pivot points" and path-finding rules to draw a medically plausible shape.
  5. Inductive Image Synthesis (SPADE): Once the ASP module produces a valid semantic label, a Deep Learning model called SPADE (Semantic Image Synthesis with Spatially-Adaptive Normalization) takes over. SPADE acts as a sophisticated "renderer," transforming the abstract color-coded labels into photo-realistic endoscopic images.
Workflow of the proposed approach, showing the transition from real images to ASP-generated labels to final synthetic images.

Datasets

The approach was tested on the Laryngeal Endoscopic Images dataset.

  • Composition: 536 manually segmented in vivo color images of the larynx.
  • Classes: 7 distinct categories including vocal folds, glottal space, pathology (tumors), surgical tools, and intubation tubes.
  • Structure: The dataset is divided into 5 groups based on clinical scenarios (e.g., pre-operative with tumor, post-operative with surgical dressing).

Key Insights and Ideas

  • Declarative Control: The biggest "aha moment" is the ability to generate images based on specific desiderata. A researcher can explicitly ask the system for "images with two surgical tools and a small tumor," and the ASP logic ensures these elements are placed in anatomically correct positions.
  • Hybrid Resilience: By separating the structure (logic) from the texture (deep learning), the system is resilient to changes. If medical guidelines change, you simply update the ASP rules rather than retraining the entire generative model.
  • Overcoming the Combinatorial Explosion: Using "space partitioning" is a clever engineering choice that allows a symbolic reasoning tool like ASP to operate effectively at the pixel level, which is usually too computationally expensive for logic solvers.
Examples of how ASP generates different classes from scratch, including pathology (purple), intubation (yellow), and surgical tools (red).

Key Results

The authors successfully demonstrated that their framework can generate synthetic laryngeal images that are indistinguishable from real ones to the untrained eye while maintaining perfect semantic alignment.

Qualitative results (shown in Figure 4) illustrate that the SPADE model effectively translates the sharp, blocky labels generated by the ASP module into soft, realistic tissues and metallic surgical instruments. This proves the viability of using logic to "guide" deep learning in sensitive domains like medicine.

Example of synthetic image generation where the ASP-based labels (left) are transformed into photo-realistic images (right).

Limitations and Future Work

  • Computational Burden: Even with space partitioning, ASP solvers face a heavy computational load when working at the pixel level. Generating a single image is not yet instantaneous.
  • Knowledge Engineering: The system requires significant manual effort from experts to formally represent medical background knowledge into logic rules.
  • Evaluation: The current study focuses on qualitative viability. Future work is needed to quantitatively assess how much these synthetic images actually improve the performance of downstream medical AI tasks (like automated tumor detection).
  • Generalization: The authors plan to test the approach on other biomedical datasets beyond laryngeal endoscopy to prove its broader applicability.

Summary updated

BibTeX
@misc{bruno2023data,
  author = {Pierangela Bruno and Francesco Calimeri and Cinzia Marte and Simona Perri},
  title = {{Data Augmentation: a Combined Inductive-Deductive Approach featuring Answer Set Programming}},
  year = {2023},
  eprint = {2310.14413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14413},
}
Figure