CoolFace
Datasetpublic

SkyWhal3/STXBP1_PubMed_Central_Multimodal_Dataset

STXBP1 PubMed Central Multimodal Dataset v2 (12-13-2025) A comprehensive multimodal dataset for training vision-language models on biomedical scientific literature, with focus on STXBP1-related neurological research. πŸ†• Version 2 Updates (December 2025) 497,360 training examples (up from ~31K) 170,591 matched figure-image pairs (99.7% match rate) Full captions preserved (no truncation) Multiple training formats for different use cases Validated response lengths… See the full description on the dataset page: https://huggingface.co/datasets/SkyWhal3/STXBP1_PubMed_Central_Multimodal_Dataset.

sourceHugging Facecc-by-4.0updated 9mo agoView on Hugging Face
0likes239downloads
Dataset Card

STXBP1 PubMed Central Multimodal Dataset v2 (12-13-2025)

A comprehensive multimodal dataset for training vision-language models on biomedical scientific literature, with focus on STXBP1-related neurological research.

πŸ†• Version 2 Updates (December 2025)

  • β€”497,360 training examples (up from ~31K)
  • β€”170,591 matched figure-image pairs (99.7% match rate)
  • β€”Full captions preserved (no truncation)
  • β€”Multiple training formats for different use cases
  • β€”Validated response lengths for proper model training

Dataset Overview

MetricValue
Total Training Examples497,360
Source Articles31,786
Date Range1-1-2000 thru 6-1-2025)
Total Figures171,084
Matched Figure-Image Pairs170,591 (99.7%)
Total Images175,392
STXBP1-Specific Articles1,335
Total Text Content1.44 billion characters

Files

Training Data (LLaVA Format)

FileEntriesSizeDescription
combined_training.json497,3601.04 GBMain training file - all formats combined & shuffled
figure_caption.json159,987185 MBSimple figure β†’ caption pairs
figure_detailed.json159,987440 MBFigures with article context (title + abstract)
figure_qa.json149,776258 MBMulti-turn Q&A conversations
article_multiimage.json27,610159 MBMulti-figure articles (2-5 figures per entry)

Images

FileSizeDescription
images.zip60.2 GBAll figure images (175,392 files)

Metadata

FileSizeDescription
training_metadata.json1 KBGeneration config and statistics

Data Format

All training files use LLaVA-compatible JSON format:

json
{
  "id": "PMC10196665_f1",
  "image": "images/PMC10196665-f1.png",
  "conversations": [
    {
      "from": "human",
      "value": "<image>\nDescribe this scientific figure in detail."
    },
    {
      "from": "gpt",
      "value": "Figure 1. Schematic of DNAJC5 sequence alignment and dnj-14 C. elegans mutants CRISPR-Cas9..."
    }
  ]
}

Training File Descriptions

`figure_caption.json` - Basic figure captioning

  • β€”Single image β†’ single detailed caption
  • β€”Best for: Training basic figure understanding

`figure_detailed.json` - Contextual descriptions

  • β€”Includes paper title and abstract for richer context
  • β€”Best for: Training models to understand figures in research context

`figure_qa.json` - Multi-turn conversations

  • β€”3-turn Q&A: figure type β†’ detailed description β†’ source info
  • β€”Best for: Training conversational/interactive models

`article_multiimage.json` - Multi-figure reasoning

  • β€”2-5 figures from same paper with combined analysis
  • β€”Best for: Training models to relate multiple figures

`combined_training.json` - Everything shuffled together

  • β€”All formats mixed for diverse training
  • β€”Recommended for most training scenarios

Response Length Statistics

Critical for setting max_new_tokens during training/inference:

PercentileCharactersEst. Tokens
Median506~127
95th3,383~845
99th6,741~1,685
Max22,518~5,630

Recommended Training Configuration

python
# Training
model_max_length = 4096  # or 8192 for safety

# Inference - IMPORTANT: Don't set too low, may truncate responses!
generation_config = {
    "max_new_tokens": 2048,  # Covers 99th percentile
    "min_new_tokens": 100,   # Prevents cutoffs
    "do_sample": True,
    "temperature": 0.7,
}

Image Statistics

MetricValue
Median dimensions738 Γ— 639 px
Size distribution82% medium (500-1000px)
Tiny images (<200px)0.5%
FormatPNG/JPG

Preprocessing recommendations:

  • β€”LLaVA: 448Γ—448, 512x512 or 672Γ—672
  • β€”Qwen3-VL: Dynamic resolution (native support)

Caption Statistics

CategoryCountPercentage
Very short (<100 chars)14,3398.7%
Short (100-500 chars)43,03126.2%
Medium (500-1500 chars)80,61449.1%
Long (1500-3000 chars)24,64515.0%
Very long (>3000 chars)1,4930.9%

Usage

Loading with Hugging Face

python
from datasets import load_dataset

# Load the main training file
dataset = load_dataset("SkyWhal3/STXBP1_PubMed_Central_Multimodal_Dataset", 
                       data_files="combined_training.json")

# Or load specific formats
captions = load_dataset("SkyWhal3/STXBP1_PubMed_Central_Multimodal_Dataset",
                        data_files="figure_caption.json")

Training with LLaVA

python
# Point to the training file
data_path = "combined_training.json"
image_folder = "images/"

# Ensure proper max_length settings
training_args = TrainingArguments(
    # ... your config
)

# Model config
model.config.max_length = 4096

Training with Qwen3-VL

python
# Qwen3-VL handles dynamic resolution natively
# Just ensure max_new_tokens is set properly for inference
generation_config = {
    "max_new_tokens": 2048,
}

About STXBP1

STXBP1 (Syntaxin-Binding Protein 1), also known as Munc18-1, is essential for synaptic vesicle fusion and neurotransmitter release. Mutations cause STXBP1 Encephalopathy, a rare neurological disorder (~1 in 30,000 births) characterized by:

  • β€”Early-onset epilepsy
  • β€”Developmental delays
  • β€”Movement disorders
  • β€”Intellectual disability

This dataset supports research into understanding and treating STXBP1-related conditions.


Dataset Construction

  1. 1.Source: 31,786 articles from PubMed Central related to STXBP1, synaptic function, and neurological research
  2. 2.Extraction: Custom HTML parser extracting figures, captions, abstracts, and full text
  3. 3.Matching: 99.7% of extracted figures matched to downloaded images
  4. 4.Validation: Comprehensive quality checks on text lengths and image dimensions
  5. 5.Formatting: Multiple LLaVA-compatible training formats generated

Citation

If you use this dataset, please cite:

bibtex
@dataset{stxbp1_multimodal_2025,
  author = {SkyWhal3},
  title = {STXBP1 PubMed Central Multimodal Dataset},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/SkyWhal3/STXBP1_PubMed_Central_Multimodal_Dataset}
}

License

This dataset is released under CC-BY-4.0. The source articles are from PubMed Central's Open Access subset.


Changelog

v2.0 (December 13, 2025)

  • β€”Complete rebuild with improved extraction pipeline
  • β€”497,360 training examples (16x increase)
  • β€”99.7% figure-image match rate
  • β€”Full captions without truncation
  • β€”Multiple training formats (caption, detailed, Q&A, multi-image)
  • β€”Comprehensive validation and statistics

v1.0 (December 7, 2025)

  • β€”Initial release
  • β€”31,585 articles
  • β€”Basic LLaVA/conversational/simple formats