|
a |
|
b/README.md |
|
|
1 |
# π₯ Hospital Management System |
|
|
2 |
|
|
|
3 |
## π Overview |
|
|
4 |
A comprehensive hospital management system built with Streamlit, featuring real-time analytics, medical image analysis, patient prediction, and multilingual support. The system includes advanced features like brain tumor detection, chatbot assistance, and dynamic dashboards. |
|
|
5 |
|
|
|
6 |
## β Features |
|
|
7 |
|
|
|
8 |
### π· Core Functionalities |
|
|
9 |
- **π Dynamic Dashboard** |
|
|
10 |
- Real-time patient flow monitoring |
|
|
11 |
- Interactive 3D data visualization |
|
|
12 |
- Department-wise statistics |
|
|
13 |
- Bed capacity tracking |
|
|
14 |
- Staff monitoring |
|
|
15 |
|
|
|
16 |
### π¬ Medical Analysis Tools |
|
|
17 |
- **π§ Brain Tumor Detection** |
|
|
18 |
- AI-powered tumor classification |
|
|
19 |
- Support for multiple tumor types (Pituitary, Meningioma, Glioma) |
|
|
20 |
- Real-time image processing |
|
|
21 |
- Confidence score display |
|
|
22 |
|
|
|
23 |
- **π Medical Image Analysis** |
|
|
24 |
- DICOM file support |
|
|
25 |
- Multiple format support (JPG, PNG) |
|
|
26 |
- Disease detection and classification |
|
|
27 |
- Automated reporting system |
|
|
28 |
- Visual annotations with confidence scores |
|
|
29 |
|
|
|
30 |
### π₯ Patient Management |
|
|
31 |
- **π Patient Prediction System** |
|
|
32 |
- Readmission risk analysis |
|
|
33 |
- Multiple factor consideration |
|
|
34 |
- Automated recommendations |
|
|
35 |
- Risk factor visualization |
|
|
36 |
|
|
|
37 |
- **π Analytics Dashboard** |
|
|
38 |
- Patient flow trends |
|
|
39 |
- Department-wise statistics |
|
|
40 |
- Length of stay analysis |
|
|
41 |
- Interactive visualizations |
|
|
42 |
- Custom time period selection |
|
|
43 |
|
|
|
44 |
### π€ Support Features |
|
|
45 |
- **π€ Hospital Assistant Chatbot** |
|
|
46 |
- Natural language processing |
|
|
47 |
- PDF/TXT export functionality |
|
|
48 |
- Chat history management |
|
|
49 |
- Real-time responses |
|
|
50 |
|
|
|
51 |
- **π¨ Emergency Contact System** |
|
|
52 |
- Quick access to emergency services |
|
|
53 |
- Emergency alert submission |
|
|
54 |
- Location tracking |
|
|
55 |
- Priority-based routing |
|
|
56 |
|
|
|
57 |
## π» Technical Requirements |
|
|
58 |
|
|
|
59 |
### π¦ Dependencies |
|
|
60 |
```python |
|
|
61 |
streamlit |
|
|
62 |
pandas |
|
|
63 |
numpy |
|
|
64 |
plotly |
|
|
65 |
opencv-python |
|
|
66 |
tensorflow |
|
|
67 |
pillow |
|
|
68 |
pydicom |
|
|
69 |
google-cloud-aiplatform |
|
|
70 |
ultralytics |
|
|
71 |
fpdf |
|
|
72 |
``` |
|
|
73 |
|
|
|
74 |
### βοΈ Additional Requirements |
|
|
75 |
- Python 3.8+ |
|
|
76 |
- CUDA-compatible GPU (for AI models) |
|
|
77 |
- Minimum 8GB RAM |
|
|
78 |
- 50GB storage space |
|
|
79 |
|
|
|
80 |
## π Installation |
|
|
81 |
|
|
|
82 |
1. Clone the repository: |
|
|
83 |
```bash |
|
|
84 |
git clone https://github.com/PIYUSH-JOSHI1/Readmission-Prediction.git |
|
|
85 |
cd Readmission-Prediction |
|
|
86 |
``` |
|
|
87 |
|
|
|
88 |
2. Install required packages: |
|
|
89 |
```bash |
|
|
90 |
pip install -r requirements.txt |
|
|
91 |
``` |
|
|
92 |
|
|
|
93 |
3. Set up environment variables: |
|
|
94 |
```bash |
|
|
95 |
export GOOGLE_APPLICATION_CREDENTIALS="path/to/credentials.json" |
|
|
96 |
export API_KEY="your-api-key" |
|
|
97 |
``` |
|
|
98 |
|
|
|
99 |
4. Run the application: |
|
|
100 |
```bash |
|
|
101 |
streamlit run Hospital_Streamlit.py |
|
|
102 |
``` |
|
|
103 |
|
|
|
104 |
## βοΈ Configuration |
|
|
105 |
|
|
|
106 |
### π Language Settings |
|
|
107 |
The system supports multiple languages: |
|
|
108 |
- πΊπΈ English (default) |
|
|
109 |
- πͺπΈ Spanish |
|
|
110 |
- π«π· French |
|
|
111 |
|
|
|
112 |
Configure language settings in the settings menu. |
|
|
113 |
|
|
|
114 |
### π¨ Theme Configuration |
|
|
115 |
Currently supports: |
|
|
116 |
- π Dark theme (default) |
|
|
117 |
Custom themes can be configured in `dark_theme` dictionary. |
|
|
118 |
|
|
|
119 |
## π Security Features |
|
|
120 |
- Secure file handling |
|
|
121 |
- API key protection |
|
|
122 |
- Session state management |
|
|
123 |
- Secure data transmission |
|
|
124 |
|
|
|
125 |
## π€ Model Information |
|
|
126 |
|
|
|
127 |
### π§ Brain Tumor Detection Model |
|
|
128 |
- Architecture: Custom CNN |
|
|
129 |
- Input size: 224x224x3 |
|
|
130 |
- Output classes: 4 (Pituitary, No Tumor, Meningioma, Glioma) |
|
|
131 |
|
|
|
132 |
### π Medical Image Analysis Model |
|
|
133 |
- Framework: YOLO v8 |
|
|
134 |
- Supported formats: DICOM, JPG, PNG |
|
|
135 |
- Real-time detection capabilities |
|
|
136 |
|
|
|
137 |
## π₯ Contributing |
|
|
138 |
1. Fork the repository |
|
|
139 |
2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
|
|
140 |
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
|
|
141 |
4. Push to the branch (`git push origin feature/AmazingFeature`) |
|
|
142 |
5. Open a Pull Request |
|
|
143 |
|
|
|
144 |
## π License |
|
|
145 |
This project is licensed under the MIT License - see the LICENSE.md file for details. |
|
|
146 |
|
|
|
147 |
## π Acknowledgments |
|
|
148 |
- TensorFlow team for the deep learning framework |
|
|
149 |
- Streamlit team for the web framework |
|
|
150 |
- YOLO team for the object detection model |
|
|
151 |
- Google Cloud team for the AI Platform services |
|
|
152 |
|
|
|
153 |
## π¬ Support |
|
|
154 |
For support, email: drigoon2512M@gmail.com or raise an issue in the repository. |
|
|
155 |
|
|
|
156 |
## πΊοΈ Roadmap |
|
|
157 |
- [ ] Integration with Electronic Health Records |
|
|
158 |
- [ ] Mobile application development |
|
|
159 |
- [ ] Additional language support |
|
|
160 |
- [ ] Advanced analytics features |
|
|
161 |
- [ ] Real-time patient monitoring |
|
|
162 |
- [ ] Integration with medical devices |
|
|
163 |
|
|
|
164 |
## ποΈ System Architecture |
|
|
165 |
``` |
|
|
166 |
hospital-management-system/ |
|
|
167 |
βββ main.py |
|
|
168 |
βββ models/ |
|
|
169 |
β βββ keras_model.h5 |
|
|
170 |
β βββ yolov8n.pt |
|
|
171 |
βββ uploads/ |
|
|
172 |
βββ static/ |
|
|
173 |
β βββ assets/ |
|
|
174 |
βββ utils/ |
|
|
175 |
β βββ image_processing.py |
|
|
176 |
β βββ data_analysis.py |
|
|
177 |
βββ config/ |
|
|
178 |
βββ settings.py |
|
|
179 |
``` |