Views
No views yet
deep-learning, medical-imaging, tumor-detection, MRI, h5brain_model.h5): Detects tumors in MRI brain scans.breast_tumor.h5): Identifies malignant and benign breast tumors.lung_tumor.h5): Predicts lung tumors using CT/MRI scans.1from tensorflow.keras.models import load_model
2
3# Load Brain Tumor Model
4model = load_model("brain_model.h5")
5
6# Predict on new images
7import numpy as np
8from tensorflow.keras.preprocessing import image
9
10img_path = "sample_mri.jpg"
11img = image.load_img(img_path, target_size=(224, 224))
12img_array = image.img_to_array(img) / 255.0
13img_array = np.expand_dims(img_array, axis=0)
14
15prediction = model.predict(img_array)
16print("Tumor Detected" if prediction > 0.5 else "No Tumor")| Model | Accuracy | Precision | Recall |
|---|---|---|---|
| Brain Tumor | 95.2% | 94.8% | 96.1% |
| Breast Tumor | 93.5% | 92.7% | 94.3% |
| Lung Tumor | 96.1% | 95.9% | 96.8% |
1@misc{MRI_LLM,
2 author = {Vijayendher Gatla},
3 title = {MRI-Based Tumor Detection Models},
4 year = {2025},
5 url = {https://huggingface.co/wizaye/MRI_LLM}
6}