PyTorch
medical-imaging
ultrasound
thyroid
classification
resnet
ml-intern
Johnyquest7 commited on
Commit
301e62a
·
verified ·
1 Parent(s): 1c7d605

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +33 -15
  2. best_model.pth +3 -0
  3. model_config.json +0 -0
  4. pytorch_model.bin +3 -0
  5. results.json +46 -0
README.md CHANGED
@@ -1,26 +1,44 @@
1
  ---
 
2
  tags:
3
- - ml-intern
 
 
 
 
 
 
4
  ---
5
 
6
- # Johnyquest7/Thyroid_EfficientNetV2
7
 
8
- <!-- ml-intern-provenance -->
9
- ## Generated by ML Intern
10
 
11
- This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
12
 
13
- - Try ML Intern: https://smolagents-ml-intern.hf.space
14
- - Source code: https://github.com/huggingface/ml-intern
 
 
 
 
 
 
 
 
 
 
15
 
16
- ## Usage
17
 
18
- ```python
19
- from transformers import AutoModelForCausalLM, AutoTokenizer
 
 
 
 
 
20
 
21
- model_id = "Johnyquest7/Thyroid_EfficientNetV2"
22
- tokenizer = AutoTokenizer.from_pretrained(model_id)
23
- model = AutoModelForCausalLM.from_pretrained(model_id)
24
- ```
25
 
26
- For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.
 
1
  ---
2
+ license: cc-by-4.0
3
  tags:
4
+ - medical-imaging
5
+ - ultrasound
6
+ - thyroid
7
+ - classification
8
+ - efficientnet
9
+ datasets:
10
+ - Johnyquest7/TN5000-thyroid-nodule-classification
11
  ---
12
 
13
+ # Thyroid Nodule Classification – EfficientNetV2-S
14
 
15
+ This model was trained on the TN5000 thyroid ultrasound dataset for binary classification of thyroid nodules (Benign vs Malignant).
 
16
 
17
+ ## Training Configuration
18
 
19
+ | Parameter | Value |
20
+ |-----------|-------|
21
+ | Backbone | tf_efficientnetv2_s.in1k (timm, ImageNet pretrained) |
22
+ | Input size | 384×384 |
23
+ | Batch size | 64 |
24
+ | Epochs | 32 (early stopped) |
25
+ | LR head | 0.0001 |
26
+ | LR backbone | 1e-05 |
27
+ | Weight decay | 0.0001 |
28
+ | Warmup | 3 epochs |
29
+ | Scheduler | Cosine annealing |
30
+ | EMA decay | 0.999 |
31
 
32
+ ## Test Set Performance
33
 
34
+ | Metric | Value | 95% CI |
35
+ |--------|-------|--------|
36
+ | Sensitivity | 0.9603 | [0.9435, 0.9733] |
37
+ | Specificity | 0.0706 | [0.0431, 0.1081] |
38
+ | PPV | 0.7374 | [0.7082, 0.7651] |
39
+ | NPV | 0.3958 | [0.2577, 0.5473] |
40
+ | AUC-ROC | 0.5663 | [0.5247, 0.6004] |
41
 
42
+ ## Citation
 
 
 
43
 
44
+ Yu, Xiaoxian et al. "TN5000: An Ultrasound Image Dataset for Thyroid Nodule Detection and Classification." Scientific Data (Nature), 2025.
best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2666f3a219c72cffc672b5b15f89209577ff5aa27e49d908b5032d363231ada
3
+ size 324288274
model_config.json ADDED
Binary file (948 Bytes). View file
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83909dfd687d03f24c77d2360b92ef2b155eb16cafce7f079953dc6bf7a28e3f
3
+ size 81611074
results.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_epoch": 22,
3
+ "best_val_sensitivity": 0.9706666666666667,
4
+ "test_metrics": {
5
+ "sensitivity": 0.960328317373461,
6
+ "sensitivity_ci": [
7
+ 0.9435196217687885,
8
+ 0.9732730947107845
9
+ ],
10
+ "specificity": 0.07063197026022305,
11
+ "specificity_ci": [
12
+ 0.043057945192480684,
13
+ 0.1081048777072488
14
+ ],
15
+ "ppv": 0.7373949579831933,
16
+ "ppv_ci": [
17
+ 0.7082097216248917,
18
+ 0.7651033561693786
19
+ ],
20
+ "npv": 0.3958333333333333,
21
+ "npv_ci": [
22
+ 0.2576989728464088,
23
+ 0.5473041990893203
24
+ ],
25
+ "auc": 0.5663372982978961,
26
+ "auc_ci": [
27
+ 0.5246876211230521,
28
+ 0.6004399582613559
29
+ ],
30
+ "tp": 702,
31
+ "tn": 19,
32
+ "fp": 250,
33
+ "fn": 29,
34
+ "threshold": 0.5
35
+ },
36
+ "config": {
37
+ "backbone": "tf_efficientnetv2_s.in1k",
38
+ "img_size": 384,
39
+ "batch_size": 64,
40
+ "epochs_trained": 32,
41
+ "lr_head": 0.0001,
42
+ "lr_backbone": 1e-05,
43
+ "weight_decay": 0.0001,
44
+ "ema_decay": 0.999
45
+ }
46
+ }