Create README.md
Browse files
README.md
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- bone-age-prediction
|
| 5 |
+
- medical-imaging
|
| 6 |
+
- pytorch
|
| 7 |
+
- resnet50
|
| 8 |
+
- computer-vision
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# BoneAge AI – Pediatric Bone Age Prediction
|
| 12 |
+
|
| 13 |
+
## Overview
|
| 14 |
+
|
| 15 |
+
BoneAge AI is a deep learning-based project that estimates bone age from pediatric hand X-ray images using a convolutional neural network and demographic information.
|
| 16 |
+
|
| 17 |
+
The model uses ResNet50 for image feature extraction and an additional branch to process the patient's sex information. The extracted features are combined and passed through a regression head to predict bone age in months.
|
| 18 |
+
|
| 19 |
+
## Model Architecture
|
| 20 |
+
|
| 21 |
+
- **Image feature extractor:** Pretrained ResNet50
|
| 22 |
+
- **Demographic feature branch:** Fully connected layer processing sex information
|
| 23 |
+
- **Feature fusion:** Concatenation of image and demographic features
|
| 24 |
+
- **Regression head:** Fully connected layers with ReLU activation and dropout
|
| 25 |
+
- **Output:** Predicted bone age in months
|
| 26 |
+
|
| 27 |
+
Total parameters: approximately 24.04 million.
|
| 28 |
+
|
| 29 |
+
## Dataset
|
| 30 |
+
|
| 31 |
+
The model was trained using the RSNA Pediatric Bone Age dataset.
|
| 32 |
+
|
| 33 |
+
- Training samples: 12,611
|
| 34 |
+
- Training split: 10,088 images
|
| 35 |
+
- Validation split: 2,523 images
|
| 36 |
+
- Input image size: 224 × 224 pixels
|
| 37 |
+
- Image preprocessing: Grayscale conversion, square padding, resizing and ImageNet normalization.
|
| 38 |
+
|
| 39 |
+
The validation set was held out from training using a stratified split based on age groups and sex.
|
| 40 |
+
|
| 41 |
+
## Training Configuration
|
| 42 |
+
|
| 43 |
+
- Framework: PyTorch
|
| 44 |
+
- Architecture: ResNet50
|
| 45 |
+
- Optimizer: AdamW
|
| 46 |
+
- Learning rate: 0.0001
|
| 47 |
+
- Weight decay: 0.0001
|
| 48 |
+
- Loss function: Mean Squared Error (MSE)
|
| 49 |
+
- Batch size: 16
|
| 50 |
+
- Training epochs: 15
|
| 51 |
+
- Learning rate scheduler: ReduceLROnPlateau
|
| 52 |
+
- Hardware: NVIDIA Tesla T4 GPU
|
| 53 |
+
- Mixed precision training: Enabled
|
| 54 |
+
|
| 55 |
+
## Validation Performance
|
| 56 |
+
|
| 57 |
+
The best validation performance was achieved at epoch 12.
|
| 58 |
+
|
| 59 |
+
| Metric | Result |
|
| 60 |
+
|---|---:|
|
| 61 |
+
| Mean Absolute Error (MAE) | 7.53 months |
|
| 62 |
+
| Root Mean Squared Error (RMSE) | 9.94 months |
|
| 63 |
+
| Median Absolute Error | 5.91 months |
|
| 64 |
+
|
| 65 |
+
These metrics were calculated on the held-out validation split, not the official RSNA test dataset.
|
| 66 |
+
|
| 67 |
+
## Intended Use
|
| 68 |
+
|
| 69 |
+
This model is developed for educational and research purposes, demonstrating deep learning-based regression on medical images.
|
| 70 |
+
|
| 71 |
+
## Limitations and Disclaimer
|
| 72 |
+
|
| 73 |
+
- This model has not undergone clinical validation.
|
| 74 |
+
- Predictions may vary across age groups and image acquisition conditions.
|
| 75 |
+
- Performance on external datasets has not been established.
|
| 76 |
+
- It must not be used as a replacement for professional radiological assessment.
|
| 77 |
+
- It is not intended for clinical diagnosis or medical decision-making.
|
| 78 |
+
|
| 79 |
+
## Technologies Used
|
| 80 |
+
|
| 81 |
+
Python, PyTorch, Torchvision, ResNet50, OpenCV, NumPy and Pandas.
|