AsmaSima commited on
Commit
3f9a448
·
verified ·
1 Parent(s): 2d56daf

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras
3
+ tags:
4
+ - medical
5
+ - medical-imaging
6
+ - chest-xray
7
+ - xray
8
+ - covid-19
9
+ ---
10
+ # Inception V3 Covid-19 Classifier
11
+
12
+ ## Model description
13
+
14
+ This model is a fine-tuned Inception V3 convolutional neural network designed for chest X-ray image classification, with a focus on Covid-19 detection.
15
+
16
+ The model was trained using transfer learning from ImageNet weights and further fine-tuned on medical imaging data.
17
+
18
+ An optionnal lung auto-masking preprocessing step can be applied upstream to reduce background bias and improve interpretability.
19
+
20
+ This model is entended for research and educational purposes only.
21
+
22
+ ## Intended use
23
+
24
+ - Binary or multi-class classification of chest X-ray images
25
+ - Research on medical image classification
26
+ - Demonstration of deep learning pipelines (preprocessing, fine-tuning, Grad-CAM)
27
+
28
+ ## Not intended for
29
+ - Clinical diagnosis
30
+ - Medical decision-making
31
+ - Production healthcare systems
32
+
33
+ ## Training data
34
+
35
+ The model was trained on the **COVID-19 Radiography Dataset (Kaggle)**:
36
+
37
+ https://www.kaggle.com/datasets/tawsifurrahman/covid19-radiography-database/data
38
+
39
+ The dataset contains chest X-ray images labeled as:
40
+ - COVID
41
+ - Normal
42
+ - Lung-Opacity
43
+ - Viral Pneumonia
44
+
45
+ Only frontal chest X-ray images were considered.
46
+
47
+ ## Input format
48
+
49
+ - Image size : 299x299 px
50
+ - Channels : 3 (RBG)
51
+ - Pixel values : normalized to [-1,1]
52
+
53
+ ## Output format
54
+
55
+ - Class probabilites (softmax)
56
+ - Final prediction via argmax
57
+
58
+ ## Training details
59
+
60
+ - Base model : Inception V3 (ImageNet pretrained)
61
+ - Fine-tuning : last 20 layers unfrozen
62
+ - Optimizer : SGD
63
+ - Loss function : Categorical crossentropy
64
+
65
+ ## Evaluation results
66
+
67
+ The model achieves an accuracy of approximately **84%** on the validation set.
68
+
69
+ Performance metrics were evaluated using :
70
+ - Accuracy
71
+ - Confusion matrix
72
+ - ROC/AUC curves
73
+
74
+ Results are dataset-dependent and may vary under different data distributions.
75
+
76
+ ## Explainability
77
+
78
+ Model predictions can be interpreted using Grad-CAM visualizations, highlighting salient lung regions contributing to the decision.
79
+
80
+ ## Limitations
81
+
82
+ - Trained on a single public dataset
83
+ - Sensitive to image quality and acquisition protocol
84
+ - Performance may degrade on non-frontal or low-quality X-ray
85
+ - Not validated on clinical-grade datasets
86
+
87
+ ## Ethical considerations
88
+
89
+ This model is provided for research purposes only.
90
+ It must not be used as a diagnostic tool or to guide clinical decisions.
91
+
92
+ ## Example usage
93
+
94
+ ```python
95
+ from tensorflow.keras.models import load_model
96
+ import numpy as np
97
+
98
+ model = load_model("inception_V3_covid.keras")
99
+
100
+ preds = model.predict(input_tensor)
101
+ ```
102
+
103
+ ## Author
104
+
105
+ Asma Sima