Afifsudoers commited on
Commit
ecd117d
·
verified ·
1 Parent(s): 11eafb1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ # Thyroid Ultrasonograph Image Classifier
5
+
6
+ **Author:** Afif Ali Saadman
7
+ **Type:** Deep Learning (Modified AlexNet variant)
8
+ **Framework:** PyTorch
9
+ **Date:** October 2025
10
+
11
+ ## Overview
12
+
13
+ **This model was developed as part of an **independent research project** focused on classifying thyroid ultrasound images into multiple diagnostic categories using deep learning.**
14
+
15
+
16
+ The model can identify:
17
+
18
+ - **FTC** – Follicular Thyroid Carcinoma
19
+ - **PTC** – Papillary Thyroid Carcinoma
20
+ - **MTC** – Medullary Thyroid Carcinoma
21
+ - **Benign** – Non-cancerous thyroid tissue
22
+
23
+
24
+ ## Architecture
25
+
26
+ NOTE: This model was trained on a T4 GPU in google colaboratory.
27
+
28
+ * Model : This model was trained on a AlexNet like architecture with gradient checkpointing.
29
+ * Loss Function: Cross Entropy Loss
30
+ * Learning Rate: 0.0001
31
+ * Iters(Epochs): 20
32
+
33
+ ## Dataset
34
+
35
+ This dataset was extracted from `FangDai/Thyroid_Ultrasound_Images `and `agent593/Thyroid-Ultrasound-Image-Classification-ViTModel/tree/main/dataset%20thyroid/` which were cleaned manually.
36
+
37
+ 1. **FTC (Follicular Thyroid Carcinoma) – 100 images**
38
+ 2. **PTC (Papillary Thyroid Carcinoma) – 99 images**
39
+ 3. **MTC (Medullary Thyroid Carcinoma) – 99 images**
40
+ 4. **Benign (Normal Thyroid) - 90 images**
41
+
42
+ ## Confusion Matrix
43
+
44
+ ![Confusion Matrix](matrix.png)
45
+
46
+
47
+ ## Classification Report
48
+
49
+
50
+
51
+ | Class | Precision | Recall | F1-Score | Support |
52
+ | ---------------- | --------- | ------ | -------- | ------- |
53
+ | FTC | 0.93 | 0.93 | 0.93 | 15 |
54
+ | PTC | 0.88 | 0.70 | 0.78 | 10 |
55
+ | MTC | 0.80 | 0.80 | 0.80 | 10 |
56
+ | Benign | 0.88 | 1.00 | 0.94 | 15 |
57
+ | **Accuracy** | - | - | 0.88 | 50 |
58
+ | **Macro Avg** | 0.87 | 0.86 | 0.86 | 50 |
59
+ | **Weighted Avg** | 0.88 | 0.88 | 0.88 | 50 |
60
+
61
+
62
+
63
+ ## Final Report
64
+
65
+ Benign: perfect classification (15/15)
66
+
67
+ FTC: only one misclassified
68
+
69
+ PTC: 2 misclassified (one as FTC, one as Benign)
70
+
71
+ MTC: also strong, only a few mislabels
72
+
73
+
74
+ ## More information
75
+
76
+ For more information, kindly see this notebook:[USGResearch.ipynb · Afifsudoers/Thyroid-Canciroma-Image-Classifier-Model at main](https://huggingface.co/Afifsudoers/Thyroid-Canciroma-Image-Classifier-Model/blob/main/USGResearch.ipynb)
77
+
78
+
79
+ ## Where you can find this model?
80
+
81
+ **HuggingFace**:[Afifsudoers/Thyroid-Canciroma-Image-Classifier-Model · Hugging Face](https://huggingface.co/Afifsudoers/Thyroid-Canciroma-Image-Classifier-Model)
82
+
83
+ Kaggle: [Afif Ali Saadman | Thyroid\_Canciroma\_Classifier | Kaggle](https://www.kaggle.com/models/afifalisaadman/thyroid-canciroma-classifier/)
84
+
85
+
86
+ ## Citation
87
+
88
+ ```
89
+ @misc{saadman2025thyroid,
90
+ author = {Afif Ali Saadman},
91
+ title = {Thyroid Ultrasonograph Image Classifier},
92
+ year = {2025},
93
+ month = {October},
94
+ note = {Deep Learning (Modified AlexNet variant), PyTorch. Available at \url{https://huggingface.co/Afifsudoers/Thyroid-Canciroma-Image-Classifier-Model} and \url{https://www.kaggle.com/models/afifalisaadman/thyroid-canciroma-classifier/}}
95
+ }
96
+
97
+ ```