doctoria commited on
Commit
fd2b60f
·
verified ·
1 Parent(s): f8bfb31

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +180 -25
README.md CHANGED
@@ -1,40 +1,195 @@
1
- # Mayar
2
 
3
- - **Developed by:** DoctorIA Medical Solutions
4
- - **License:** apache-2.0
5
 
6
- Mayar, the virtual doctor assistant for DoctorIA Medical Solutions, an innovative healthcare technology company based in Rabat, Morocco.
7
 
8
- ## About DoctorIA Medical Solutions
9
 
10
- DoctorIA leverages artificial intelligence to enhance radiological diagnostics, improve healthcare access, and reduce disparities in underserved areas of Morocco. Our mission is to provide cutting-edge AI-driven diagnostic tools that empower healthcare professionals and patients alike.
11
 
12
- ### Key Features of the Model:
13
 
14
- - **Automated Medical Image Analysis:** Capable of assisting with inquiries related to X-rays, MRIs, and other medical imaging technologies.
15
- - **AI-Driven Diagnostic Tools:** Supports clinical reasoning and treatment planning by providing insights derived from advanced AI algorithms.
16
- - **Healthcare Accessibility Initiatives:** Helps bridge gaps in healthcare access by offering scalable and accessible solutions to underserved populations.
 
17
 
18
- ### Important Notes:
19
 
20
- - **Professionalism & Clarity:** Responses are crafted to maintain professionalism, clarity, and precision.
21
- - **Not a Substitute for Medical Advice:** While Mayar provides expert-level information, it does not replace consultations with licensed medical professionals. Always consult a qualified healthcare provider for personalized medical advice.
22
- - **Not HIPAA Compliant:** This model is currently **not HIPAA compliant** and should not be used in environments where Protected Health Information (PHI) must be safeguarded according to HIPAA regulations.
23
- - **Not Approved by La CNDP Maroc:** This model has **not been reviewed or approved by La Commission Nationale de Contrôle de la Protection des Données à Caractère Personnel (CNDP)** in Morocco. Therefore, it should not be considered compliant with Moroccan data protection laws regarding personal health data.
24
 
25
- ### Use Cases:
26
 
27
- - **Radiology Support:** Assisting radiologists with preliminary analysis of medical images.
28
- - **Patient Education:** Providing clear explanations of medical procedures and technologies.
29
- - **Healthcare Equity:** Supporting initiatives aimed at reducing healthcare disparities in remote or underserved regions of Morocco.
 
 
30
 
31
- ### Compliance Disclaimer:
32
 
33
- - **HIPAA Non-Compliance:** The current version of this model is **not HIPAA compliant**, meaning it does not meet the standards required for handling sensitive patient health information in compliance with U.S. regulations.
34
- - **La CNDP Maroc:** The model has **not been submitted for approval** to La Commission Nationale de Contrôle de la Protection des Données à Caractère Personnel (CNDP) in Morocco, which oversees data protection and privacy. As such, it is not certified for use in contexts requiring strict adherence to Moroccan data protection laws.
35
 
36
- For more information about DoctorIA Medical Solutions, please visit our website or contact us directly.
37
 
38
- http://doctoriasolutions.com/
 
 
 
 
39
 
40
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DoctorIA: Revolutionizing Healthcare with AI-Powered Diagnostics
2
 
3
+ ![Hugging Face Badge](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue) ![License](https://img.shields.io/badge/license-Apache%202.0-green)
 
4
 
5
+ [[Read the Paper]](https://example.com/paper) [[Demo]](https://example.com/demo) [[Hugging Face Model](https://huggingface.co/your-username/doctoria-model)]
6
 
7
+ **DoctorIA** is an innovative AI-powered solution designed to enhance radiological diagnostics, improve healthcare access, and reduce disparities in underserved areas of Morocco. Leveraging state-of-the-art machine learning techniques, DoctorIA provides accurate, efficient, and scalable diagnostic support for medical professionals.
8
 
9
+ ---
10
 
11
+ ## Overview
12
 
13
+ DoctorIA is built to assist healthcare providers with:
14
+ - **Automated Medical Image Analysis**: Accurate interpretation of X-rays, MRIs, and other medical imaging technologies.
15
+ - **Clinical Reasoning Support**: Advanced reasoning capabilities to assist in diagnosis, treatment planning, and risk assessment.
16
+ - **Healthcare Accessibility Initiatives**: Bridging gaps in healthcare access by offering scalable solutions to underserved populations.
17
 
18
+ Our mission is to empower healthcare professionals and patients alike by providing cutting-edge AI-driven diagnostic tools.
19
 
20
+ ---
 
 
 
21
 
22
+ ## Key Features
23
 
24
+ - **AI-Driven Diagnostic Tools**: Supports clinical reasoning and treatment planning by providing insights derived from advanced AI algorithms.
25
+ - **Radiology Assistance**: Assists radiologists with preliminary analysis of medical images.
26
+ - **Patient Education**: Provides clear explanations of medical procedures and technologies.
27
+ - **Multilingual Support**: Available in Arabic, French, English, and Spanish to cater to diverse populations.
28
+ - **Scalable Deployment**: Optimized for deployment in resource-constrained environments, ensuring accessibility even in underserved areas.
29
 
30
+ ---
31
 
32
+ ## Models
 
33
 
34
+ We release two versions of the DoctorIA model:
35
 
36
+ 1. **DoctorIA-ClinicalReasoning**
37
+ - **Purpose**: Clinical reasoning and diagnostic support.
38
+ - **Tasks**: Symptom-to-diagnosis mapping, treatment planning, and evidence-based recommendations.
39
+ - **Quantization**: Available in 4-bit precision for reduced memory usage.
40
+ - **Hugging Face Repository**: [DoctorIA-ClinicalReasoning](https://huggingface.co/your-username/doctoria-clinical-reasoning)
41
 
42
+ 2. **DoctorIA-MedicalImageAnalysis**
43
+ - **Purpose**: Automated analysis of medical images (X-rays, MRIs, etc.).
44
+ - **Tasks**: Disease detection, lesion segmentation, and abnormality classification.
45
+ - **Quantization**: Available in 4-bit precision for reduced memory usage.
46
+ - **Hugging Face Repository**: [DoctorIA-MedicalImageAnalysis](https://huggingface.co/your-username/doctoria-medical-image-analysis)
47
+
48
+ All models are released under the **Apache 2.0 License**.
49
+
50
+ ---
51
+
52
+ ## Organisation of the Repository
53
+
54
+ The repository is structured as follows:
55
+
56
+ - **`clinical_reasoning/`**: Contains the code and resources for the clinical reasoning model.
57
+ - **`medical_image_analysis/`**: Contains the code and resources for the medical image analysis model.
58
+ - **`examples/`**: Example scripts for inference, fine-tuning, and integration.
59
+ - **`datasets/`**: Links to datasets used for training and evaluation.
60
+ - **`notebooks/`**: Jupyter notebooks for experimentation and visualization.
61
+ - **`docs/`**: Additional documentation and tutorials.
62
+
63
+ ---
64
+
65
+ ## Requirements
66
+
67
+ To use DoctorIA, you will need:
68
+
69
+ - Python 3.8 or higher (Python 3.10 recommended).
70
+ - PyTorch (`torch`) and Transformers (`transformers`) libraries.
71
+ - GPU with at least 16GB of memory (for full-precision models).
72
+
73
+ Install dependencies using:
74
+
75
+ ```bash
76
+ pip install -r requirements.txt
77
+ ```
78
+
79
+ For quantized models (4-bit precision), ensure you have the `bitsandbytes` library installed:
80
+
81
+ ```bash
82
+ pip install bitsandbytes
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Usage
88
+
89
+ ### 1. Clinical Reasoning Model
90
+
91
+ Load the model and tokenizer:
92
+
93
+ ```python
94
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
95
+
96
+ model_name = "your-username/doctoria-clinical-reasoning"
97
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
98
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
99
+
100
+ # Example input
101
+ inputs = tokenizer("The patient presents with fever, cough, and shortness of breath.", return_tensors="pt")
102
+ outputs = model(**inputs)
103
+ predicted_diagnosis = outputs.logits.argmax().item()
104
+ print(f"Predicted Diagnosis: {predicted_diagnosis}")
105
+ ```
106
+
107
+ ### 2. Medical Image Analysis Model
108
+
109
+ Load the model and feature extractor:
110
+
111
+ ```python
112
+ from transformers import AutoFeatureExtractor, AutoModelForImageClassification
113
+ from PIL import Image
114
+ import requests
115
+
116
+ model_name = "your-username/doctoria-medical-image-analysis"
117
+ feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
118
+ model = AutoModelForImageClassification.from_pretrained(model_name)
119
+
120
+ # Example input
121
+ url = "https://example.com/chest-xray.jpg"
122
+ image = Image.open(requests.get(url, stream=True).raw)
123
+ inputs = feature_extractor(images=image, return_tensors="pt")
124
+ outputs = model(**inputs)
125
+ predicted_class = outputs.logits.argmax().item()
126
+ print(f"Predicted Class: {predicted_class}")
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Benchmarks
132
+
133
+ DoctorIA has been evaluated on several benchmarks to ensure its performance and reliability:
134
+
135
+ - **Clinical Reasoning**: Achieved **X% accuracy** on the DR.BENCH benchmark for clinical diagnostic reasoning.
136
+ - **Medical Image Analysis**: Achieved **Y% sensitivity** and **Z% specificity** on the CheXpert benchmark for chest X-ray analysis.
137
+
138
+ For more details, refer to our [paper](https://example.com/paper).
139
+
140
+ ---
141
+
142
+ ## Development
143
+
144
+ If you wish to contribute to DoctorIA or modify it for your needs:
145
+
146
+ 1. Clone the repository:
147
+ ```bash
148
+ git clone https://github.com/your-username/doctoria.git
149
+ cd doctoria
150
+ ```
151
+
152
+ 2. Install dependencies:
153
+ ```bash
154
+ pip install -e '.[dev]'
155
+ ```
156
+
157
+ 3. Run tests:
158
+ ```bash
159
+ pytest
160
+ ```
161
+
162
+ ---
163
+
164
+ ## FAQ
165
+
166
+ Check out the [Frequently Asked Questions](FAQ.md) section before opening an issue.
167
+
168
+ ---
169
+
170
+ ## License
171
+
172
+ The codebase is released under the **Apache 2.0 License**.
173
+ The model weights are released under the **CC-BY 4.0 License**.
174
+
175
+ ---
176
+
177
+ ## Citation
178
+
179
+ If you use DoctorIA in your research or projects, please cite our work:
180
+
181
+ ```bibtex
182
+ @techreport{doctoria2025,
183
+ title={DoctorIA: Enhancing Radiological Diagnostics with AI},
184
+ author={Jad Tounsi El Azzoiani and Team DoctorIA},
185
+ year={2025},
186
+ eprint={XXXX.XXXXX},
187
+ archivePrefix={arXiv},
188
+ primaryClass={cs.AI},
189
+ url={https://example.com/paper},
190
+ }
191
+ ```
192
+
193
+ ---
194
+
195
+ This `README.md` is inspired by the structure and style of the **Moshi** project [[4fb9bd7e-92d4-4b42-b811-14afe44cea3f_Pasted_Text_1738698719014.txt]], ensuring clarity, professionalism, and ease of use for potential contributors and users. You can customize it further based on your specific model details and contributions.