Tuberculosis (TB) is a chronic lung disease that occurs due to bacterial infection and is one the top ten leading causes of death. Accurate and early detection of TB is very important, otherwise, it could be life-threatening. We have detected TB reliably from the chest X-ray images using image preprocessing, data augmentation, image segmentation, and Support Vector classification techniques.
Several public databases were used to create a database of 1800TB infected and 3700 normal chest X- ray images for this study. Our methodology also makes use of Image Enhancement Techniques for enhancing the blurred image for improving accuracy. The entire prediction is presented as a web Based UI which makes the model available to the common people. The entire model is deployed on the cloud for the larger computational power.
https://github.com/Rohini-Viswanathan/Tuberculosis-Diagnosis-System-using-CNN
Researchers from Qatar University and the University of Dhaka, with collaborators from Malaysia, have developed a chest X-ray image database for TB and Normal cases. The dataset includes 700 publicly accessible TB images and 3500 normal images. An additional 2800 TB images are available for download from the NIAID TB portal upon agreement. The collaboration involves medical experts from Hamad Medical Corporation and Bangladesh.
notebooks
: Jupyter notebooks for data exploration, preprocessing, and model training.README.md
: Project documentation.
To run this project locally, follow these steps:
-
Clone this Repository :
https://github.com/Rohini-Viswanathan/Tuberculosis-Diagnosis-System-using-CNN
-
Install Python :
Windows
https://www.python.org/downloads/
-
Create a virtual environment :
python -m venv venv source venv/bin/activate
-
Install required pip libraries
- OpenCV
- TensorFlow
- Keras
- scikit-learn
pip install <above packages name>
-
Install Cloud python library
- Streamlit
-
Open the Jupyter notebook to run the Project
jupyter notebook
- Precision: The proportion of true positive predictions among all positive predictions.
- Recall: The proportion of true positive predictions among all actual positives.
- F1-Score: The harmonic mean of precision and recall.
- ROC-AUC: The area under the receiver operating characteristic curve.
Download the Dataset from the Kaggle
https://www.kaggle.com/datasets/tawsifurrahman/tuberculosis-tb-chest-xray-dataset