This project presents a practical approach for detecting pneumonia in chest X-ray images using a ResNet-based transfer learning strategy. By initializing our model with pre-trained weights from ResNet50 and fine-tuning the latter layers on a curated X-ray dataset, we effectively leverage previously learned visual features while reducing the need for extensive data and computational resources.
Our workflow includes image preprocessing, data augmentation, two-stage training (head-only and fine-tuning), and careful hyperparameter tuning. Initial experiments demonstrate promising results, establishing a robust baseline for pneumonia classification that can be refined further by increasing the number of training epochs, augmenting data, and exploring alternative network architectures. This work underscores the potential of transfer learning for rapid development and deployment of medical imaging solutions, offering scalability and adaptability in resource-constrained or time-sensitive settings.
Pneumonia is a serious respiratory infection that affects millions of people worldwide. Early and accurate diagnosis is crucial to ensure timely treatment and better patient outcomes. In this publication, we present a Computer Vision approach leveraging Deep Learning techniques, particularly focusing on Transfer Learning with ResNet50 to detect pneumonia from chest X-ray images.
Our pipeline consists of:
Below is a simplified diagram illustrating the workflow:
Our model achieved the following performance on the test set:
Accuracy: 86.4%
Precision: 88.1%
Recall: 85.2%
The confusion matrix below highlights the distribution of predictions:
Model Ensemble: Investigate combining multiple architectures (e.g., InceptionV3, EfficientNet) to improve performance.
Mobile Deployment: Explore TensorFlow Lite for on-device pneumonia detection, aiding remote health centers.
Data Expansion: Incorporate CT scans or additional X-ray datasets to broaden the model’s applicability.
In this project, we successfully applied ResNet and transfer learning techniques to detect pneumonia from chest X-ray images with minimal data and development time. By leveraging a pre-trained ResNet50 network, we reduced training overhead and boosted model accuracy, ultimately achieving a promising baseline performance. Our results highlight that deep residual architectures, when fine-tuned appropriately, can serve as a practical tool for medical imaging tasks. Looking ahead, further improvements—such as additional data augmentation, an extended number of epochs, and advanced hyperparameter tuning—could enhance the model’s predictive power and reliability. Overall, this project demonstrates how transfer learning, in combination with powerful backbones like ResNet, can streamline solutions in critical domains like healthcare.
https://www.who.int/news-room/fact-sheets/detail/pneumonia
Pan, S. J., & Yang, Q. (2010). A Survey on Transfer Learning. In IEEE Transactions on Knowledge and Data Engineering, 22(10), 1345–1359.
Weiss, K., Khoshgoftaar, T. M., & Wang, D. (2016). A survey of transfer learning. Journal of Big Data, 3(1), 9.
He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (pp. 770-778).