Transformers
Safetensors
English
Inference Endpoints
9rofe commited on
Commit
0f173ec
1 Parent(s): 4c4a664

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -61
README.md CHANGED
@@ -21,21 +21,13 @@ This model simplifies complex medical texts to a 6th-grade reading level, enhanc
21
 
22
  This model uses advanced natural language processing (NLP) algorithms to translate complex medical information into a format that is accessible to individuals with a 6th-grade reading level. The goal is to improve comprehension and health outcomes for patients with low health literacy.
23
 
24
- - **Developed by:** [WernickeAI]
25
  - **Funded by [optional]:** [More Information Needed]
26
  - **Shared by [optional]:** [More Information Needed]
27
- - **Model type:** [Text Simplification]
28
- - **Language(s) (NLP):** [English]
29
  - **License:** [More Information Needed]
30
- - **Finetuned from model [optional]:** [tiiuae/falcon-40b]
31
-
32
- ### Model Sources [optional]
33
-
34
- <!-- Provide the basic links for the model. -->
35
-
36
- - **Repository:** [More Information Needed]
37
- - **Paper [optional]:** [More Information Needed]
38
- - **Demo [optional]:** [More Information Needed]
39
 
40
  ## Uses
41
 
@@ -45,25 +37,25 @@ This model uses advanced natural language processing (NLP) algorithms to transla
45
 
46
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
47
 
48
- [The model can be used directly to simplify patient education materials to improve accessibility and comprehension.]
49
 
50
  ### Downstream Use [optional]
51
 
52
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
53
 
54
- [The model can be integrated into healthcare platforms and patient portals to provide simplified information, aiding patients in understanding their medical conditions and treatment plans.]
55
 
56
  ### Out-of-Scope Use
57
 
58
  <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
59
 
60
- [The model should not be used for generating medical advice or instructions without proper validation from healthcare professionals to avoid misinformation.]
61
 
62
  ## Bias, Risks, and Limitations
63
 
64
  <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
 
66
- [The model may not fully capture all nuances of medical information, leading to oversimplification or loss of critical details. There is also a risk of bias in the training data affecting the output.]
67
 
68
  ### Recommendations
69
 
@@ -75,7 +67,11 @@ Users should validate the simplified text with healthcare professionals to ensur
75
 
76
  Use the code below to get started with the model.
77
 
78
- [More Information Needed]
 
 
 
 
79
 
80
  ## Training Details
81
 
@@ -83,30 +79,30 @@ Use the code below to get started with the model.
83
 
84
  <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
85
 
86
- [The model was trained on a comprehensive dataset of medical texts, including patient handouts and educational materials, processed to ensure readability compliance with NIH and AMA guidelines.]
87
 
88
  ### Training Procedure
89
 
90
  <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
91
 
92
- #### Preprocessing [optional]
93
 
94
- [Medical texts were preprocessed using readability assessments such as SMOG, Flesch-Kincaid, and Gunning Fog to ensure the dataset's appropriateness for training the simplification model.]
95
 
96
 
97
  #### Training Hyperparameters
98
 
99
- - **Training regime:** [
100
  Training regime: fp16 mixed precision
101
  Optimizer: AdamW
102
  Learning rate: 5e-5
103
- Batch size: 32] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
 
105
- #### Speeds, Sizes, Times [optional]
106
 
107
  <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
 
109
- [Training was conducted over 10 epochs, with checkpoints saved at regular intervals to monitor progress and performance.]
110
 
111
  ## Evaluation
112
 
@@ -118,33 +114,33 @@ Batch size: 32] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-m
118
 
119
  <!-- This should link to a Dataset Card if possible. -->
120
 
121
- [More Information Needed]
122
 
123
  #### Factors
124
 
125
  <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
 
127
- [More Information Needed]
128
 
129
  #### Metrics
130
 
131
  <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
 
133
- [More Information Needed]
134
 
135
  ### Results
136
 
137
- [More Information Needed]
138
 
139
  #### Summary
140
 
 
141
 
142
-
143
- ## Model Examination [optional]
144
 
145
  <!-- Relevant interpretability work for the model goes here -->
146
 
147
- [The model's outputs were reviewed by healthcare professionals to ensure accuracy and completeness.]
148
 
149
  ## Environmental Impact
150
 
@@ -152,58 +148,44 @@ Batch size: 32] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-m
152
 
153
  Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
 
155
- - **Hardware Type:** [GPU (NVIDIA A100)]
156
- - **Hours used:** [120 hours]
157
- - **Cloud Provider:** [AWS]
158
- - **Compute Region:** [US East (N. Virginia)]
159
- - **Carbon Emitted:** [500 kg CO2eq]
160
 
161
  ## Technical Specifications [optional]
162
 
163
  ### Model Architecture and Objective
164
 
165
- [The model is based on a sequence-to-sequence transformer architecture fine-tuned for text simplification.]
166
 
167
  ### Compute Infrastructure
168
 
169
- [More Information Needed]
170
-
171
  #### Hardware
172
 
173
- [Training was conducted on NVIDIA A100 GPUs.]
174
 
175
  #### Software
176
 
177
- [The model was developed on Google Colab using Python and Hugging Face's Transformers library.]
178
-
179
- ## Citation [optional]
180
-
181
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
-
183
- **BibTeX:**
184
-
185
- [More Information Needed]
186
-
187
- **APA:**
188
-
189
- [More Information Needed]
190
 
191
- ## Glossary [optional]
192
 
193
  <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
 
195
- [
196
  Health Literacy: The ability to obtain, process, and understand basic health information to make appropriate health decisions.
197
- Readability Assessments: Tools used to evaluate the reading level of a text, such as SMOG, Flesch-Kincaid, and Gunning Fog.]
198
 
199
- ## More Information [optional]
200
 
201
- [or further details and inquiries, please contact the model author.]
202
 
203
- ## Model Card Authors [optional]
204
 
205
- [Clark Parry]
206
 
207
  ## Model Card Contact
208
 
209
- [More Information Needed]
 
 
21
 
22
  This model uses advanced natural language processing (NLP) algorithms to translate complex medical information into a format that is accessible to individuals with a 6th-grade reading level. The goal is to improve comprehension and health outcomes for patients with low health literacy.
23
 
24
+ - **Developed by:** WernickeAI
25
  - **Funded by [optional]:** [More Information Needed]
26
  - **Shared by [optional]:** [More Information Needed]
27
+ - **Model type:** Text Simplification
28
+ - **Language(s) (NLP):** English
29
  - **License:** [More Information Needed]
30
+ - **Finetuned from model:** tiiuae/falcon-40b
 
 
 
 
 
 
 
 
31
 
32
  ## Uses
33
 
 
37
 
38
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
39
 
40
+ The model can be used directly to simplify patient education materials to improve accessibility and comprehension.
41
 
42
  ### Downstream Use [optional]
43
 
44
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
45
 
46
+ The model can be integrated into healthcare platforms and patient portals to provide simplified information, aiding patients in understanding their medical conditions and treatment plans.
47
 
48
  ### Out-of-Scope Use
49
 
50
  <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
51
 
52
+ The model should not be used for generating medical advice or instructions without proper validation from healthcare professionals to avoid misinformation.
53
 
54
  ## Bias, Risks, and Limitations
55
 
56
  <!-- This section is meant to convey both technical and sociotechnical limitations. -->
57
 
58
+ The model may not fully capture all nuances of medical information, leading to oversimplification or loss of critical details. There is also a risk of bias in the training data affecting the output.
59
 
60
  ### Recommendations
61
 
 
67
 
68
  Use the code below to get started with the model.
69
 
70
+ '''python
71
+ prompt = """
72
+ <user>: Convert this text to reading level 6: What are the complications? What are the complications? Nearly 88,000 people die from alcohol-related causes each year in the US, making alcohol use the 4th leading preventable cause of death. Drinking at an increased risk level raises your chance of: Accidents, injuries, and aggression. Drinking too much increases your risk for every type of injury and violence. Alcohol is a factor in about 60% of fatal burn injuries, drownings, and murders; 50% of severe trauma injuries and sexual assaults; and 40% of fatal crashes and falls. Physical health problems. Heavy drinkers have a greater chance of liver and heart disease, stroke, digestive problems, and some types of cancer. Theyre also more likely to have problems with sexual function and premature aging. Emotional and cognitive problems. People who drink too much are more prone to anxiety and depression. They may have trouble sleeping, remembering things, and solving problems. Problems with relationships, work, and studies. Heavy drinking can interfere with your interactions and performance in every area of your life. Birth defects. Drinking during pregnancy can cause brain damage and deformities in the baby. Since scientists dont know whether any amount of alcohol is safe for a developing baby, women who are pregnant or trying to become pregnant should not drink. Alcoholism and alcohol use disorders. Drinking at an increased risk level raises your chance of developing an alcohol use disorder. How is it treated? Your medical provider may refer you to an addiction specialist for consultation if there is a perceived risk. If your risk is moderate to high, you may need to have treatment \(at an outpatient or in an acute hospital setting\) to help you manage withdrawal symptoms and reduce your risks associated with this disorder. Your medical provider may also prescribe medicines to help you to manage your symptoms.
73
+ <assistant>:
74
+ """.strip()'''
75
 
76
  ## Training Details
77
 
 
79
 
80
  <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
 
82
+ The model was trained on a comprehensive dataset of medical texts, including patient handouts and educational materials, processed to ensure readability compliance with NIH and AMA guidelines.
83
 
84
  ### Training Procedure
85
 
86
  <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
 
88
+ #### Preprocessing
89
 
90
+ Medical texts were preprocessed using readability assessments such as SMOG, Flesch-Kincaid, and Gunning Fog to ensure the dataset's appropriateness for training the simplification model.
91
 
92
 
93
  #### Training Hyperparameters
94
 
95
+ - **Training regime:**
96
  Training regime: fp16 mixed precision
97
  Optimizer: AdamW
98
  Learning rate: 5e-5
99
+ Batch size: 32 <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
100
 
101
+ #### Speeds, Sizes, Times
102
 
103
  <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
 
105
+ Training was conducted over 10 epochs, with checkpoints saved at regular intervals to monitor progress and performance.
106
 
107
  ## Evaluation
108
 
 
114
 
115
  <!-- This should link to a Dataset Card if possible. -->
116
 
117
+ The testing data comprised patient-centered materials not included in the training set, evaluated for readability and comprehension improvement.
118
 
119
  #### Factors
120
 
121
  <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
 
123
+ Evaluation factors included readability scores and patient comprehension levels.
124
 
125
  #### Metrics
126
 
127
  <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
 
129
+ Metrics included SMOG, Flesch-Kincaid, and Gunning Fog scores, along with patient comprehension assessment through usability testing.
130
 
131
  ### Results
132
 
133
+ The model demonstrated significant improvement in readability scores and patient comprehension compared to existing AI technologies.
134
 
135
  #### Summary
136
 
137
+ The AI-driven tool effectively simplified medical texts to a 6th-grade reading level, enhancing understanding and engagement among patients with low health literacy.
138
 
139
+ ## Model Examination
 
140
 
141
  <!-- Relevant interpretability work for the model goes here -->
142
 
143
+ The model's outputs were reviewed by healthcare professionals to ensure accuracy and completeness.
144
 
145
  ## Environmental Impact
146
 
 
148
 
149
  Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
 
151
+ - **Hardware Type:** GPU (NVIDIA A100)
152
+ - **Hours used:** 120 hours
153
+ - **Cloud Provider:** AWS
154
+ - **Compute Region:** US East (N. Virginia)
155
+ - **Carbon Emitted:** 500 kg CO2eq
156
 
157
  ## Technical Specifications [optional]
158
 
159
  ### Model Architecture and Objective
160
 
161
+ The model is based on a sequence-to-sequence transformer architecture fine-tuned for text simplification.
162
 
163
  ### Compute Infrastructure
164
 
 
 
165
  #### Hardware
166
 
167
+ Training was conducted on NVIDIA A100 GPUs.
168
 
169
  #### Software
170
 
171
+ The model was developed on Google Colab using Python and Hugging Face's Transformers library.
 
 
 
 
 
 
 
 
 
 
 
 
172
 
173
+ ## Glossary
174
 
175
  <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
176
 
 
177
  Health Literacy: The ability to obtain, process, and understand basic health information to make appropriate health decisions.
178
+ Readability Assessments: Tools used to evaluate the reading level of a text, such as SMOG, Flesch-Kincaid, and Gunning Fog.
179
 
180
+ ## More Information
181
 
182
+ For further details and inquiries, please contact the model author.
183
 
184
+ ## Model Card Authors
185
 
186
+ Clark Parry
187
 
188
  ## Model Card Contact
189
 
190
+ Visit [website] for business inquiries.
191
+ Contact author for model inquiries.