Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- question-answering
|
| 5 |
+
- text-generation
|
| 6 |
+
language:
|
| 7 |
+
- zh
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- microbiology
|
| 11 |
+
- medical
|
| 12 |
+
- qa
|
| 13 |
+
- infectious-diseases
|
| 14 |
+
- pathogens
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# π¦ Microbiology QA Complete Dataset v2.1
|
| 20 |
+
|
| 21 |
+
The most comprehensive microbiology question-answering dataset, combining LLM-generated content, real clinical reports, and filtered open-source medical data.
|
| 22 |
+
|
| 23 |
+
## π Dataset Statistics
|
| 24 |
+
|
| 25 |
+
| Split | Samples |
|
| 26 |
+
|-------|---------|
|
| 27 |
+
| Train | 278,073 |
|
| 28 |
+
| Validation | 15,448 |
|
| 29 |
+
| Test | 15,450 |
|
| 30 |
+
| **Total** | **308,971** |
|
| 31 |
+
|
| 32 |
+
## π Data Sources
|
| 33 |
+
|
| 34 |
+
### 1. LLM Textbook QA (15,487 samples)
|
| 35 |
+
High-quality QA pairs extracted by Qwen-Plus from authoritative textbooks:
|
| 36 |
+
- Sanford Guide to Antimicrobial Therapy: 3,350
|
| 37 |
+
- Manual of Clinical Microbiology (Vol.1 & 2): 7,665
|
| 38 |
+
- Harrison's Principles of Infectious Diseases: 4,472
|
| 39 |
+
|
| 40 |
+
### 2. CSV Report Analysis QA (22,842 samples) β¨ Enhanced
|
| 41 |
+
From 9,990 real microbiology metagenomic reports:
|
| 42 |
+
- Species identification & abundance analysis
|
| 43 |
+
- Pathogen detection & clinical significance
|
| 44 |
+
- Microbiome diversity assessment
|
| 45 |
+
- **Enhancement**: Deduplicated 1,183 entries + Question diversification (5 variants per high-frequency question via Qwen-Plus)
|
| 46 |
+
|
| 47 |
+
### 3. Filtered Open-source Medical Data (270,642 samples)
|
| 48 |
+
Filtered from 546K+ open-source medical QA using 272 microbiology keywords:
|
| 49 |
+
|
| 50 |
+
| Source | Samples | Language | Content |
|
| 51 |
+
|--------|---------|----------|---------|
|
| 52 |
+
| PubMedQA | 187,403 | English | Biomedical research QA |
|
| 53 |
+
| MedMCQA | 49,226 | English | Medical multiple choice |
|
| 54 |
+
| CMtMedQA | 27,377 | Chinese | Doctor-patient dialogues |
|
| 55 |
+
| MedQA | 6,637 | English | USMLE-style questions |
|
| 56 |
+
|
| 57 |
+
## π Data Format
|
| 58 |
+
|
| 59 |
+
```json
|
| 60 |
+
{
|
| 61 |
+
"instruction": "Is reflective functioning associated with clinical symptoms?",
|
| 62 |
+
"input": "Mentalization is the capacity to understand behavior...",
|
| 63 |
+
"output": "These findings indicate that RF is associated with...",
|
| 64 |
+
"source": "pubmedqa/train_pqa_unlabeled.jsonl",
|
| 65 |
+
"category": "pubmed_qa",
|
| 66 |
+
"matched_keywords": ["uti"],
|
| 67 |
+
"data_source": "opensource"
|
| 68 |
+
}
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## π― Topic Coverage
|
| 72 |
+
|
| 73 |
+
- **Pathogens**: Bacteria, viruses, fungi, parasites
|
| 74 |
+
- **Infections**: Pneumonia, sepsis, UTI, etc.
|
| 75 |
+
- **Antimicrobials**: Antibiotics, antivirals, antifungals
|
| 76 |
+
- **Resistance**: MRSA, VRE, CRE, ESBL
|
| 77 |
+
- **Diagnostics**: Culture, PCR, mNGS, mass spectrometry
|
| 78 |
+
- **Microbiome**: Gut flora, dysbiosis
|
| 79 |
+
|
| 80 |
+
## π¦ Usage
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from datasets import load_dataset
|
| 84 |
+
|
| 85 |
+
dataset = load_dataset("xingqiang/microbiology-qa-complete")
|
| 86 |
+
print(f"Training samples: {len(dataset['train']):,}")
|
| 87 |
+
# Output: Training samples: 278,073
|
| 88 |
+
|
| 89 |
+
# Filter by data source
|
| 90 |
+
llm_data = dataset['train'].filter(lambda x: x['data_source'] == 'llm_textbook')
|
| 91 |
+
opensource_data = dataset['train'].filter(lambda x: x['data_source'] == 'opensource')
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## π v2.1 Updates
|
| 95 |
+
|
| 96 |
+
- CSV data deduplication: Removed 1,183 duplicate QA pairs
|
| 97 |
+
- Question diversification: Generated 5 expression variants for high-frequency questions
|
| 98 |
+
- Reduced question reuse rate for better training diversity
|
| 99 |
+
|
| 100 |
+
## π Related Datasets
|
| 101 |
+
|
| 102 |
+
- [microbiology-llm-qa](https://huggingface.co/datasets/xingqiang/microbiology-llm-qa) - Pure LLM-generated (39K)
|
| 103 |
+
- [microbiology-qa-v1](https://huggingface.co/datasets/xingqiang/microbiology-qa-v1) - Earlier version (226K)
|
| 104 |
+
|
| 105 |
+
## π
Version Info
|
| 106 |
+
|
| 107 |
+
- **Version**: 2.1 (Enhanced)
|
| 108 |
+
- **Date**: December 2024
|
| 109 |
+
- **Project**: [DeepMicroPath](https://github.com/chenxingqiang/DeepMicroPath)
|
| 110 |
+
|
| 111 |
+
## π License
|
| 112 |
+
|
| 113 |
+
Apache 2.0
|