Agent skill
radiomics-pathomics-fusion-agent
Install this agent skill to your Project
npx add-skill https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/radiomics-pathomics-fusion-agent
SKILL.md
name: 'radiomics-pathomics-fusion-agent' description: 'AI-powered multimodal fusion of radiology (CT/MRI/PET) and pathology (H&E/IHC) imaging with clinical and genomic data for comprehensive cancer diagnostics and treatment prediction.' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:
- read_file
- run_shell_command
Radiomics Pathomics Fusion Agent
The Radiomics Pathomics Fusion Agent integrates multimodal medical imaging data from radiology (CT, MRI, PET) and digital pathology (H&E, IHC whole slide images) with clinical and genomic data using deep learning fusion architectures. It enables comprehensive cancer phenotyping, treatment response prediction, and prognostic modeling.
When to Use This Skill
- When predicting treatment response using multimodal imaging.
- For comprehensive tumor phenotyping combining macro and micro views.
- To identify imaging biomarkers correlated with genomic features.
- When building prognostic models from combined radiology-pathology.
- For AI-powered second opinion integrating all imaging modalities.
Core Capabilities
-
Cross-Modal Fusion: Integrate radiology and pathology features using attention.
-
Radiomics Extraction: Compute 3D texture, shape, intensity features from CT/MRI.
-
Pathomics Extraction: Extract histopathological features from WSI.
-
Clinical Integration: Combine imaging with clinical variables and genomics.
-
Treatment Response Prediction: Predict chemotherapy, immunotherapy response.
-
Survival Prediction: Multi-modal prognostic modeling.
Supported Imaging Modalities
| Modality | Features Extracted | Resolution |
|---|---|---|
| CT | Texture, shape, density | Volumetric 3D |
| MRI | Multi-sequence, perfusion | Volumetric 3D |
| PET | SUV, metabolic features | Volumetric 3D |
| H&E WSI | Nuclear, tissue architecture | 40x magnification |
| IHC WSI | Marker quantification | 20-40x |
| Multiplexed IF | Spatial protein patterns | Subcellular |
Fusion Architectures
| Architecture | Method | Strengths |
|---|---|---|
| Early Fusion | Concatenate features | Simple, baseline |
| Late Fusion | Combine predictions | Modular |
| Attention Fusion | Cross-modal attention | Interpretable |
| Multimodal Transformer | Self-attention across modalities | State-of-art |
| Graph Fusion | GNN for relationships | Spatial awareness |
Workflow
-
Input: CT/MRI DICOM, pathology WSI, clinical data, optional genomics.
-
Segmentation: Tumor ROI extraction from radiology.
-
Radiomics: Extract 3D radiomic features.
-
Pathomics: Extract histopathology features via foundation models.
-
Fusion: Multimodal feature integration.
-
Prediction: Treatment response, survival, biomarker prediction.
-
Output: Integrated predictions, attention maps, explanations.
Example Usage
User: "Predict immunotherapy response for this lung cancer patient using their CT scan and biopsy pathology."
Agent Action:
python3 Skills/Oncology/Radiomics_Pathomics_Fusion_Agent/fusion_predict.py \
--ct_dicom ct_scan/ \
--wsi_path biopsy.svs \
--clinical_data patient_clinical.json \
--genomic_data tumor_wes.vcf \
--task immunotherapy_response \
--cancer_type nsclc \
--fusion_method attention \
--output fusion_prediction/
Radiomic Feature Categories
| Category | Features | Count |
|---|---|---|
| Shape | Volume, surface area, sphericity | 14 |
| First-Order | Mean, variance, skewness, entropy | 18 |
| GLCM | Contrast, correlation, homogeneity | 24 |
| GLRLM | Run length, gray level emphasis | 16 |
| GLSZM | Zone size, gray level variance | 16 |
| GLDM | Dependence features | 14 |
| NGTDM | Texture features | 5 |
| Total | ~107 |
Pathomics Feature Categories
| Category | Source | Features |
|---|---|---|
| Nuclear | Segmentation | Size, shape, texture |
| Cellular | Detection | Density, clustering |
| Tissue | Architecture | Glandular, stromal ratios |
| Foundation Model | CONCH, TITAN, UNI | Deep embeddings |
| Spatial | Graph analysis | Neighborhood patterns |
Output Components
| Output | Description | Format |
|---|---|---|
| Prediction | Response/outcome probability | .json |
| Confidence | Prediction uncertainty | .json |
| Attention Maps | Cross-modal importance | .npy, .png |
| Feature Importance | Shapley values | .csv |
| ROI Highlights | Predictive regions | DICOM-SEG, GeoJSON |
| Report | Clinical summary |
Clinical Applications
| Application | Modalities Used | Performance |
|---|---|---|
| NSCLC Immunotherapy | CT + H&E | AUC 0.82-0.88 |
| HCC Survival | MRI + H&E | C-index 0.78 |
| Breast Neoadjuvant | MRI + H&E | AUC 0.85 |
| HNSCC HPV/Response | CT + H&E | AUC 0.89 |
| CRC MSI Prediction | CT + H&E | AUC 0.86 |
AI/ML Components
Radiomics Pipeline:
- PyRadiomics for feature extraction
- 3D-CNN for learned features
- Transformer for volumetric analysis
Pathomics Pipeline:
- Foundation models (CONCH, UNI, TITAN)
- MIL (Multiple Instance Learning) for WSI
- Graph networks for spatial patterns
Fusion Models:
- Cross-attention transformers
- Multimodal variational autoencoders
- Contrastive learning for alignment
Prerequisites
- Python 3.10+
- PyRadiomics, SimpleITK
- OpenSlide, HistoEncoder
- PyTorch, transformers
- CONCH/TITAN model weights
- GPU with 16GB+ VRAM
Related Skills
- Pathology_AI/CONCH_Agent - Pathology foundation model
- Radiology_AI agents - Modality-specific analysis
- Pan_Cancer_MultiOmics_Agent - Genomic integration
- TMB_Estimation_Agent - Tumor mutational burden
Multimodal Integration Strategies
| Strategy | Description | Use Case |
|---|---|---|
| Feature-Level | Combine extracted features | Limited data |
| Embedding-Level | Fuse latent representations | Moderate data |
| Decision-Level | Ensemble predictions | Interpretability |
| End-to-End | Joint training | Large data |
Special Considerations
- Data Alignment: Ensure imaging from same timepoint
- Missing Modalities: Handle incomplete multimodal data
- Class Imbalance: Balance training across outcomes
- Interpretability: Attention maps for clinical trust
- Validation: External multi-site validation essential
Quality Control
| QC Check | Threshold | Action |
|---|---|---|
| CT coverage | >90% tumor | Rescan if needed |
| WSI quality | Blur score <X | Re-scan slide |
| Segmentation | Dice >0.85 | Manual review |
| Feature stability | ICC >0.8 | Robust features only |
Regulatory Considerations
| Aspect | Status |
|---|---|
| FDA Clearance | Individual modality tools cleared |
| Multimodal Fusion | Research use only (RUO) |
| Clinical Integration | PACS/LIS integration pathways |
| Explainability | Required for clinical adoption |
Author
AI Group - Biomedical AI Platform
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
vcf-annotator
Annotate VCF variants with VEP, ClinVar, gnomAD frequencies, and ancestry-aware context. Generates prioritised variant reports.
chemist-analyst
Analyzes events through chemistry lens using molecular structure, reaction mechanisms, thermodynamics, kinetics, and analytical techniques (spectroscopy, chromatography, mass spectrometry). Provides insights on chemical processes, material properties, reaction pathways, synthesis, and analytical methods. Use when: Chemical reactions, material analysis, synthesis planning, process optimization, environmental chemistry. Evaluates: Molecular structure, reaction mechanisms, yield, selectivity, safety, environmental impact.
bio-alignment-io
Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, and other alignment formats for phylogenetics and conservation analysis. Use when reading, writing, or converting alignment file formats.
sleep-analyzer
分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。
metabolomics-workbench-database
Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.
bio-hi-c-analysis-matrix-operations
Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.
Didn't find tool you were looking for?