harshtd commited on
Commit
d802faf
Β·
verified Β·
1 Parent(s): ff66e55

Add comprehensive documentation and usage instructions

Browse files
Files changed (1) hide show
  1. README.md +108 -4
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- title: Lung Nodule Ct Detection
3
- emoji: πŸ¦€
4
  colorFrom: red
5
  colorTo: green
6
  sdk: gradio
@@ -8,7 +8,111 @@ sdk_version: 5.46.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
- short_description: MONAI-based lung nodule detection from CT scans using deep l
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Lung Nodule CT Detection
3
+ emoji: πŸ‘
4
  colorFrom: red
5
  colorTo: green
6
  sdk: gradio
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ short_description: MONAI lung nodule detection from CT scans
12
  ---
13
 
14
+ # 🫁 Lung Nodule CT Detection
15
+
16
+ A comprehensive medical imaging application for detecting lung nodules in CT scans using the MONAI framework and deep learning.
17
+
18
+ ## πŸ“‹ Overview
19
+
20
+ This Hugging Face Space provides an easy-to-use interface for lung nodule detection in CT scans. The application leverages the power of MONAI (Medical Open Network for AI), a PyTorch-based framework designed specifically for healthcare imaging applications.
21
+
22
+ ## πŸš€ Features
23
+
24
+ - **Medical Image Support**: Accepts multiple medical imaging formats including NIfTI (.nii, .nii.gz) and DICOM (.dcm)
25
+ - **Deep Learning Detection**: Uses the MONAI/lung_nodule_ct_detection model for accurate nodule identification
26
+ - **Visual Results**: Provides both textual summaries and visual overlays of detected nodules
27
+ - **Confidence Scoring**: Each detection includes confidence scores to help assess reliability
28
+ - **User-Friendly Interface**: Clean, intuitive Gradio interface designed for both medical professionals and researchers
29
+
30
+ ## πŸ›  How to Use
31
+
32
+ 1. **Upload CT Scan**: Click on the file upload area and select your CT scan file
33
+ - Supported formats: .nii, .nii.gz, .dcm, .png, .jpg, .jpeg, .tiff
34
+ - Recommended: NIfTI or DICOM formats for best results
35
+
36
+ 2. **Run Analysis**: Click the "πŸ” Analyze CT Scan" button to start the detection process
37
+
38
+ 3. **Review Results**:
39
+ - **Detection Summary**: Text-based results showing number of nodules found, confidence scores, and bounding box coordinates
40
+ - **Visualization**: Visual overlay showing detected nodules highlighted with red bounding boxes
41
+
42
+ ## πŸ“Š Model Information
43
+
44
+ - **Base Model**: MONAI/lung_nodule_ct_detection
45
+ - **Framework**: MONAI (Medical Open Network for AI)
46
+ - **Task**: Object detection for lung nodules in CT scans
47
+ - **Input**: 3D CT volumes
48
+ - **Output**: Bounding boxes with confidence scores
49
+
50
+ ## πŸ”§ Technical Details
51
+
52
+ ### Dependencies
53
+ - **MONAI**: Medical imaging framework with comprehensive transforms and networks
54
+ - **PyTorch**: Deep learning backend
55
+ - **Gradio**: Web interface framework
56
+ - **nibabel**: Medical imaging file I/O
57
+ - **matplotlib**: Visualization
58
+ - **PIL**: Image processing
59
+
60
+ ### Preprocessing Pipeline
61
+ 1. **Loading**: Medical images loaded using MONAI's LoadImage transform
62
+ 2. **Normalization**: Intensity scaling to standardize pixel values
63
+ 3. **Resampling**: Images resized to model input requirements (512x512x64)
64
+ 4. **Channel Management**: Ensures proper channel dimensions for model input
65
+
66
+ ### Model Architecture
67
+ The underlying model uses advanced computer vision techniques optimized for medical imaging:
68
+ - Specialized for 3D volumetric data
69
+ - Trained on lung CT datasets
70
+ - Optimized for nodule detection tasks
71
+
72
+ ## ⚠️ Medical Disclaimer
73
+
74
+ **IMPORTANT**: This application is intended for research and educational purposes only. It should NOT be used as a substitute for professional medical diagnosis or treatment. Key considerations:
75
+
76
+ - Results should always be reviewed by qualified healthcare professionals
77
+ - This tool is for demonstration and research purposes
78
+ - Clinical decisions should never be based solely on automated analysis
79
+ - Always consult with radiologists and physicians for medical diagnosis
80
+ - The model may have limitations and false positives/negatives
81
+
82
+ ## πŸ” Example Use Cases
83
+
84
+ - **Research**: Academic studies on lung nodule detection algorithms
85
+ - **Education**: Teaching medical imaging and AI applications
86
+ - **Prototyping**: Developing medical imaging workflows
87
+ - **Screening**: Preliminary analysis (with professional oversight)
88
+
89
+ ## πŸ“ˆ Performance Notes
90
+
91
+ - **Processing Time**: Varies based on image size and hardware availability
92
+ - **Hardware**: CPU processing supported; GPU acceleration available with upgraded hardware
93
+ - **Memory**: Large CT volumes may require significant memory
94
+ - **Accuracy**: Results depend on image quality and nodule characteristics
95
+
96
+ ## 🀝 Contributing
97
+
98
+ This Space demonstrates the integration of MONAI models with Hugging Face Spaces. Contributions for improvements are welcome:
99
+
100
+ - Model optimizations
101
+ - UI/UX enhancements
102
+ - Additional preprocessing options
103
+ - Performance improvements
104
+
105
+ ## πŸ“š References
106
+
107
+ - [MONAI Framework](https://monai.io/)
108
+ - [MONAI Documentation](https://docs.monai.io/)
109
+ - [Original Model Repository](https://huggingface.co/MONAI/lung_nodule_ct_detection)
110
+ - [Gradio Documentation](https://gradio.app/docs/)
111
+
112
+ ## πŸ“„ License
113
+
114
+ This project is licensed under the Apache License 2.0. See the model repository for specific model licensing terms.
115
+
116
+ ---
117
+
118
+ **Note**: Always ensure you have the necessary permissions and ethical approvals before using medical imaging data.