Downloads · 30 days
0
seyidyildiz/retina_disease_risk
retina_disease_risk is a machine learning model from seyidyildiz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This deep learning model automatically detects the risk of retinal disease from fundus images. It classifies a patient as either "No Disease Risk" or "Disease Risk Present". The goal is to assist doctors with early di…
Downloads · 30 days
0
Access
Public
Updated Aug 31, 2025
Repo size
82.2 MB
Likes
1
Public
Click a slice to open those files.
.h582.2 MB · 100%
From the Hugging Face model README
This deep learning model automatically detects the risk of retinal disease from fundus images. It classifies a patient as either "No Disease Risk" or "Disease Risk Present".
The goal is to assist doctors with early diagnosis as a preliminary screening tool.
| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| No Risk | 0.63 | 0.61 | 0.62 | 134 |
| Risk Present | 0.90 | 0.90 | 0.90 | 506 |
| Weighted Avg | 0.84 | 0.84 | 0.84 | 640 |
Limitations and Ethical Considerations
Not a diagnostic tool. Final diagnosis must be by a qualified healthcare professional.
Lower recall for "No Risk" could misclassify healthy individuals.
Model accuracy depends on the quality and diversity of the training data; performance may vary across demographics and imaging conditions.
Contact
Name: Seyid Yıldız
Email: [email protected]
LinkedIn: https://www.linkedin.com/in/seyid-yıldız-310091349
pip install tensorflow opencv-python numpy
import numpy as np
import cv2
from tensorflow.keras.models import load_model
# Load the model
model = load_model("retina_disease_risk.h5")
# Load and preprocess an image
img_path = 'new_image.png'
img = cv2.imread(img_path)
img = cv2.resize(img, (224, 224))
img = np.expand_dims(img, axis=0) / 255.0
# Prediction
prediction = model.predict(img)
if prediction[0][0] > 0.5:
print("Disease Risk Present")
else:
print("No Disease Risk")