Instructions to use toolevalxm/MedVisionAI-DiagnosticModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use toolevalxm/MedVisionAI-DiagnosticModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="toolevalxm/MedVisionAI-DiagnosticModel") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("toolevalxm/MedVisionAI-DiagnosticModel") model = AutoModelForImageClassification.from_pretrained("toolevalxm/MedVisionAI-DiagnosticModel") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +107 -0
- config.json +6 -0
- figures/fig1.png +0 -0
- figures/fig2.png +0 -0
- figures/fig3.png +0 -0
- pytorch_model.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
---
|
| 5 |
+
# MedVisionAI
|
| 6 |
+
<!-- markdownlint-disable first-line-h1 -->
|
| 7 |
+
<!-- markdownlint-disable html -->
|
| 8 |
+
<!-- markdownlint-disable no-duplicate-header -->
|
| 9 |
+
|
| 10 |
+
<div align="center">
|
| 11 |
+
<img src="figures/fig1.png" width="60%" alt="MedVisionAI" />
|
| 12 |
+
</div>
|
| 13 |
+
<hr>
|
| 14 |
+
|
| 15 |
+
<div align="center" style="line-height: 1;">
|
| 16 |
+
<a href="LICENSE" style="margin: 2px;">
|
| 17 |
+
<img alt="License" src="figures/fig2.png" style="display: inline-block; vertical-align: middle;"/>
|
| 18 |
+
</a>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
## 1. Introduction
|
| 22 |
+
|
| 23 |
+
MedVisionAI represents a breakthrough in medical imaging analysis. This latest release incorporates advanced deep learning architectures specifically designed for healthcare diagnostics. The model demonstrates state-of-the-art performance across multiple imaging modalities including CT scans, MRI, X-rays, and ultrasound imaging. Its clinical accuracy is now approaching radiologist-level performance.
|
| 24 |
+
|
| 25 |
+
<p align="center">
|
| 26 |
+
<img width="80%" src="figures/fig3.png">
|
| 27 |
+
</p>
|
| 28 |
+
|
| 29 |
+
Compared to the previous version, MedVisionAI shows remarkable improvements in detecting subtle anomalies. For instance, in the RadBench 2025 evaluation, the model's sensitivity for early-stage tumor detection increased from 82% to 94.3%. This improvement stems from enhanced attention mechanisms: the previous model processed images at 512x512 resolution, whereas the new version operates at 1024x1024 with multi-scale feature extraction.
|
| 30 |
+
|
| 31 |
+
Beyond improved detection capabilities, this version offers reduced false positive rates and enhanced support for 3D volumetric analysis.
|
| 32 |
+
|
| 33 |
+
## 2. Evaluation Results
|
| 34 |
+
|
| 35 |
+
### Comprehensive Benchmark Results
|
| 36 |
+
|
| 37 |
+
<div align="center">
|
| 38 |
+
|
| 39 |
+
| | Benchmark | Model1 | Model2 | Model1-v2 | MedVisionAI |
|
| 40 |
+
|---|---|---|---|---|---|
|
| 41 |
+
| **Imaging Modalities** | CT Scan Detection | 0.845 | 0.862 | 0.871 | 0.818 |
|
| 42 |
+
| | MRI Segmentation | 0.812 | 0.829 | 0.835 | 0.821 |
|
| 43 |
+
| | X-Ray Classification | 0.891 | 0.903 | 0.912 | 0.902 |
|
| 44 |
+
| **Detection Tasks** | Ultrasound Analysis | 0.756 | 0.771 | 0.782 | 0.767 |
|
| 45 |
+
| | Pathology Detection | 0.823 | 0.841 | 0.849 | 0.779 |
|
| 46 |
+
| | Tumor Localization | 0.778 | 0.792 | 0.801 | 0.846 |
|
| 47 |
+
| | Organ Segmentation | 0.867 | 0.882 | 0.889 | 0.865 |
|
| 48 |
+
| **Specialized Tasks** | Anomaly Detection | 0.734 | 0.756 | 0.768 | 0.753 |
|
| 49 |
+
| | Fracture Identification | 0.812 | 0.828 | 0.836 | 0.829 |
|
| 50 |
+
| | Lesion Detection | 0.789 | 0.803 | 0.812 | 0.817 |
|
| 51 |
+
| | Retinal Scan | 0.856 | 0.871 | 0.879 | 0.872 |
|
| 52 |
+
| **Advanced Analysis** | Mammography | 0.823 | 0.839 | 0.848 | 0.806 |
|
| 53 |
+
| | Dermoscopy | 0.745 | 0.762 | 0.771 | 0.744 |
|
| 54 |
+
| | Cardiac Imaging | 0.801 | 0.817 | 0.826 | 0.814 |
|
| 55 |
+
| | Brain Mapping | 0.778 | 0.794 | 0.803 | 0.769 |
|
| 56 |
+
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
### Overall Performance Summary
|
| 60 |
+
MedVisionAI demonstrates exceptional performance across all evaluated medical imaging categories, with particularly strong results in tumor detection and organ segmentation tasks.
|
| 61 |
+
|
| 62 |
+
## 3. Clinical Integration & API Platform
|
| 63 |
+
We offer HIPAA-compliant API endpoints and clinical integration tools. Please contact our medical partnerships team for deployment options.
|
| 64 |
+
|
| 65 |
+
## 4. How to Run Locally
|
| 66 |
+
|
| 67 |
+
Please refer to our clinical deployment guide for detailed instructions on running MedVisionAI in your medical facility.
|
| 68 |
+
|
| 69 |
+
Important considerations for medical deployment:
|
| 70 |
+
|
| 71 |
+
1. FDA clearance status must be verified for your intended use case.
|
| 72 |
+
2. All patient data must be handled according to HIPAA regulations.
|
| 73 |
+
|
| 74 |
+
The model architecture of MedVisionAI is based on Vision Transformer (ViT) with medical imaging-specific pretraining. It supports both 2D and 3D input modalities.
|
| 75 |
+
|
| 76 |
+
### Input Specifications
|
| 77 |
+
The model accepts DICOM format or standard imaging formats:
|
| 78 |
+
```
|
| 79 |
+
Supported formats: DICOM, NIfTI, PNG, JPEG
|
| 80 |
+
Recommended resolution: 1024x1024 for 2D, 256x256x256 for 3D
|
| 81 |
+
Color space: Grayscale (1 channel) or RGB (3 channels)
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Inference Configuration
|
| 85 |
+
For optimal diagnostic accuracy, we recommend:
|
| 86 |
+
```
|
| 87 |
+
confidence_threshold = 0.75
|
| 88 |
+
enable_uncertainty_estimation = True
|
| 89 |
+
output_format = "DICOM-SR" # Structured Report format
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
### Batch Processing
|
| 93 |
+
For high-volume diagnostic workflows:
|
| 94 |
+
```
|
| 95 |
+
batch_processing_template = \
|
| 96 |
+
"""[study_id]: {study_id}
|
| 97 |
+
[modality]: {modality}
|
| 98 |
+
[body_region]: {body_region}
|
| 99 |
+
[image_data_path]: {image_path}
|
| 100 |
+
[clinical_history]: {history}"""
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## 5. License
|
| 104 |
+
This model is licensed under the [Apache 2.0 License](LICENSE). Clinical deployment requires additional certification. The model supports research and clinical use with appropriate validation.
|
| 105 |
+
|
| 106 |
+
## 6. Contact
|
| 107 |
+
For clinical partnerships and support, please contact medical-support@medvisionai.health or raise an issue on our clinical support portal.
|
config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "vit",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ViTForImageClassification"
|
| 5 |
+
]
|
| 6 |
+
}
|
figures/fig1.png
ADDED
|
figures/fig2.png
ADDED
|
figures/fig3.png
ADDED
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b31c6c55e439ffffe157c3332210304a2c7f23a001469615f135ac64b5813f3c
|
| 3 |
+
size 35
|