Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
katielink commited on
Commit
f94caa4
1 Parent(s): 6f4d86f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +195 -0
README.md CHANGED
@@ -1,4 +1,17 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: id
@@ -27,3 +40,185 @@ configs:
27
  - split: train
28
  path: data/train-*
29
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ license_name: common-crawl
4
+ license_link: LICENSE
5
+ task_categories:
6
+ - text-generation
7
+ language:
8
+ - en
9
+ pretty_name: Clinical Guidelines
10
+ size_categories:
11
+ - 10K<n<100K
12
+ tags:
13
+ - medical
14
+ - health
15
  dataset_info:
16
  features:
17
  - name: id
 
40
  - split: train
41
  path: data/train-*
42
  ---
43
+
44
+ *This is a dataset repository made for the AISC class at Harvard Medical School. Please find the original dataset repository here: https://huggingface.co/datasets/epfl-llm/guidelines*
45
+
46
+ ### 🎉 **NEW DROP** 🎉 PubMed Guidelines
47
+
48
+ We just added 1627 clinical guidelines found in PubMed and PubMed Central to the dataset on December 23rd, 2023. Merry Christmas!
49
+
50
+ # Clinical Guidelines
51
+
52
+ The Clinical Guidelines corpus is a new dataset of 47K clinical practice guidelines from 17 high-quality online medical sources. This dataset serves as a crucial component of the original training corpus of the [Meditron](https://huggingface.co/epfl-llm/meditron-70b) Large Language Model (LLM). We publicly release a subset of 37K articles from our Guidelines corpus, extracted from 9 of 17 sources that allow content redistribution, namely CCO, CDC, CMA, ICRC, NICE, PubMed, SPOR, WHO and WikiDoc.
53
+
54
+ You can scrape and clean all 17 guideline sources using our code in [epfLLM/meditron](https://github.com/epfLLM/meditron).
55
+
56
+ <img width=75% src="sources.png" alt="Sources of Clinical Practice Guidelines" title="CPG sources">
57
+
58
+
59
+ ## Dataset Details
60
+
61
+ <!-- Provide a longer summary of what this dataset is. -->
62
+
63
+ - **Curated by:** [EPFL LLM Team](https://huggingface.co/epfl-llm)
64
+ - **Language(s):** English only
65
+ - **License:** [Common Crawl Foundation Terms of Use](https://commoncrawl.org/terms-of-use)
66
+ - **Repository:** [epfLLM/meditron](https://github.com/epfLLM/meditron)
67
+ - **Paper:** *[MediTron-70B: Scaling Medical Pretraining for Large Language Models](https://arxiv.org/abs/2311.16079)*
68
+ - **Knowledge Cutoff**: August 2023
69
+
70
+ ## Dataset Creation
71
+
72
+ ### Curation Rationale
73
+
74
+ <!-- Motivation for the creation of this dataset. -->
75
+
76
+ The dataset was curated to provide a high-quality collection of clinical practice guidelines (CPGs) for the medical training of LLMs. Our Clinical Guidelines corpus comprises 48,096 articles from 17 globally recognized sources for clinician and patient-directed guidance across high and low-resource settings, multiple medical domains (internal medicine, pediatrics, oncology, infectious disease, etc.) and multiple geographical locations.
77
+
78
+ ### Source Data
79
+
80
+ <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
81
+
82
+ Clinical practice guidelines are rigorously researched frameworks designed to guide healthcare practitioners and patients in making evidence-based decisions regarding diagnosis, treatment, and management.
83
+ They are compiled through a systematic process of collaborative consensus between experts to establish recommendations from the latest evidence on best practices that would maximize benefit in light of practical concerns such as available resources and context. As a super-synthesis of meta-analyses, they sit atop the *evidence pyramid* and form the basis of actionable evidence-based practice.
84
+
85
+ Clinical guidelines differ based on several factors:
86
+
87
+ - **Organizational level**: CPGs are produced at various organizational granularities, ranging from global to hospital-level initiatives directed by international professional medical associations to informal consortia, regional or national governmental bodies to individual NGOs and hospitals.
88
+ - **Geographic scope**: The geographic scope ranges from global (WHO) to national (CDC, NICE) and regional (Ontario, Melbourne) to institutional (ICRC, Mayo Clinic). This corpus is biased towards English-speaking regions due to its exclusive focus on English content.
89
+ - **Resource level**: The corpus also represents health care concerns from high- (Ontario, Melbourne), low- (WHO), and volatile- (ICRC) resource settings.
90
+ - **Audience level**: Guidelines also contains a range of technical and conversational vocabulary with target audiences of clinicians or patients (or both), and is sometimes highly specialized within a theme (cancer, pediatrics, infectious disease).
91
+ - **Peer-review**: The peer review processes also ranged from UN bodies (WHO), institutional review boards (ICRC), professional associations (AAFP) to publicly crowdsourced knowledge bases (WikiDoc).
92
+ - **Document size**: Article length varies widely from very short statements to 100+ page guides.
93
+
94
+ #### Who are the source data producers?
95
+
96
+ <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
97
+
98
+ The dataset is sourced from 17 globally recognized medical entities, covering a wide range of healthcare contexts and audiences.
99
+
100
+ We employed pragmatic selection criteria over medical sources, seeking CPGs that were:
101
+
102
+ - (1) open-access
103
+ - (2) systematically formatted with homogenous textual structure (i.e., in a format in which automated processes could be deployed without excessive risk of misaligning textual sequences)
104
+ - (3) in the language predominantly represented by the pre-training corpus of Llama (i.e., English)
105
+ - (4) covering a breadth of medical sub-domains, audiences (clinician, nurse, patient), and resource settings (high, low, and humanitarian response settings)
106
+
107
+ | Source | Full Name | Tag | Guidelines | Words | Audience | Country | Released |
108
+ |-|-|-|-|-|-|-|-|
109
+ | **[AAFP](https://www.aafp.org)** | American Academy of Family Physicians | `aafp` | 50 | 9.4K | Doctor | USA | No |
110
+ | **[CCO](https://www.cancercareontario.ca/en/guidelines-advice)** | Cancer Care Ontario | `cco` | 87 | 199K | Doctor | Canada | **Yes** |
111
+ | **[CDC](https://www.cdc.gov/)** | Center for Disease Control and Prevention | `cdc` | 621 | 6.7M | Doctor | USA | **Yes** |
112
+ | **[CMA](https://joulecma.ca/)** | Canadian Medical Association | `cma` | 431 | 1.7M | Doctor | Canada | **Yes** |
113
+ | **[CPS](https://cps.ca)** | Canadian Paediatric Society | `cps` | 54 | 133K | Doctor | Canada | No |
114
+ | **[drugs.com](https://www.drugs.com/)** | Drugs.com | `drugs` | 6548 | 4.1M | Both | International | No |
115
+ | **[GuidelineCentral](https://www.guidelinecentral.com/)** | GuidelineCentral | `gc` | 1029 | 1M | Doctor | Mix | No |
116
+ | **[ICRC](http://icrc.org/)** | International Committee of the Red Cross | `icrc` | 49 | 1.2M | Doctor | International | **Yes** |
117
+ | **[IDSA](https://www.idsociety.org/)** | Infectious Diseases Society of America | `idsa` | 47 | 646K | Doctor | USA | No |
118
+ | **[MAGIC](https://magicevidence.org/)** | Making GRADE The Irresistible Choice | `magic` | 52 | 415K | Doctor | Mix | No |
119
+ | **[MayoClinic](https://www.mayoclinic.org/)** | MayoClinic | `mayo` | 1100 | 2.2M | Patient | USA | No |
120
+ | **[NICE](https://www.nice.org.uk/guidance)** | National Institute for Health and Care Excellence | `nice` | 1656 | 8.1M | Doctor | UK | **Yes** |
121
+ | **[PubMed](https://pubmed.ncbi.nlm.nih.gov)** | PubMed | `pubmed` | 1627 | 10.8M | Doctor | Mix | **Yes** |
122
+ | **[RCH](https://www.rch.org.au/clinicalguide/about_rch_cpgs/welcome_to_the_clinical_practice_guidelines/)** | Royal Children's Hospital Melbourne | `rch` | 384 | 410K | Doctor | Australia | No |
123
+ | **[SPOR](https://sporevidencealliance.ca/key-activities/cpg-asset-map/cpg-database/)** | Strategy for Patient-Oriented Research | `spor` | 217 | 1.1M | Doctor | Canada | **Yes** |
124
+ | **[WHO](https://www.who.int/publications/who-guidelines)** | World Health Organization | `who` | 223 | 3.1M | Both | International | **Yes** |
125
+ | **[WikiDoc](https://www.wikidoc.org/)** | WikiDoc | `wikidoc` | 33058 | 34M | Both | International | **Yes** |
126
+
127
+
128
+ #### Data Collection and Processing
129
+
130
+ <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
131
+
132
+ PDF documents were converted to text using [GROBID](https://github.com/kermitt2/grobid).
133
+ After extracting the raw text from each source, we cleaned data with an ad-hoc process to exclude irrelevant or repetitive content that did not contribute to the textual content, such as URLs, references, figures, table delimiters, and ill-formatted characters.
134
+ This filtering procedure was performed differently for each source using a sample of 50 articles. Please note that this procedure is not perfect, as it may have removed useful information or kept superfluous content. We provide the `raw_text` for each article if you would like to perform your own cleaning step.
135
+ Additionally, the text was standardized to a unified format with hierarchical section headers indicated by `'#'`, homogenous spacing `'\n\n'` separating paragraphs, and normalized lists formatted with `'- '` bullet points.
136
+ Finally, all samples were deduplicated using title matching, and articles that were too short or not English were filtered out.
137
+
138
+ #### Personal and Sensitive Information
139
+
140
+ <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
141
+
142
+ As the articles are publicly accessible, no personal or sensitive information is included.
143
+
144
+ ## Dataset Structure
145
+
146
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
147
+
148
+ Each row of the dataset represents one clinical practice guideline article, and consists of the following dataset fields (all strings):
149
+
150
+
151
+ | Field | Description | Sources with field |
152
+ |-------------|-------------------------------------------|------------------------------|
153
+ | `id` | Unique identifier for each article | All |
154
+ | `source` | Source tag (`cco`, `cdc`, `cma`, `icrc`, `nice`, `spor`, `who` or `wikidoc`)| All |
155
+ | `title` | Title of the article | CMA, NICE & WikiDoc |
156
+ | `url` | URL of the article | NICE, WikiDoc & PubMed |
157
+ | `raw_text` | Unprocessed scraped article text | All |
158
+ | `clean_text`| Cleaned and formatted article text | All |
159
+ | `overview` | Short summary or abstract of the article | NICE & Pubmed |
160
+
161
+
162
+ ## Uses
163
+
164
+ <!-- Address questions around how the dataset is intended to be used. -->
165
+
166
+ The dataset is intended for use in tasks related to text generation, specifically in the context of clinical practice guidelines. It can be employed for training language models and other natural language processing applications within the healthcare domain.
167
+
168
+ ### Out-of-Scope Use
169
+
170
+ <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
171
+
172
+ - **Redistribution**: Please always check redistribution licenses before using the content as these may also evolve over time. To the best of our knowledge, we are following the redistribution licensing of each source and we invite users to inform us if that is not the case.
173
+ - **Malicious use**: We do not support any use of this corpus that may be harmful. Creating tools that provide clinical advice is commendable, but extremely dangerous if not done with the appropriate care. Such tools need to be validated for safety and utility by medical professionals in randomized controlled trials. i.e. please do not create cowboy health apps that fool vulnerable users into thinking they are receiving validated advice.
174
+
175
+
176
+ ## Bias, Risks, and Limitations
177
+
178
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
179
+
180
+ - **Peer-Review Quality**: It is important to understand that while most sources are validated by internationally endorsed professional associations, a large proportion of articles are from Wikidoc which contains crowdsourced content. While edits in Wikidoc are generally restricted to expert review, the process of consensus and oversight is different from the traditional rigor of clinical guidelines.
181
+ - **Representation**: This corpus is in English, and over-represents English-speaking regions. While we have included WHO and ICRC guidelines for low-resource settings, further work needs to be done to scrape sources from diverse contexts.
182
+ - **Temporal scope**: Guidelines are constantly updated and these represent a snapshot of each in August 2023. Please re-scrape for updated content.
183
+
184
+ ### Recommendations
185
+
186
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
187
+
188
+ We warmly invite users to help us build a more representative corpus with high-quality peer-reviewed clinical practice guidelines in various languages and representing the full scope of clinical specialties and geographic regions.
189
+ We encourage users of this content to be mindful of its current limitations in temporal and geographic scope and we repeat our warning: creating tools that provide clinical advice is commendable, but extremely dangerous if not done with the appropriate care. Such tools need to be validated for safety and utility by medical professionals in randomized controlled trials. i.e. Please don’t create cowboy health apps that fool vulnerable users into thinking they are receiving validated advice.
190
+
191
+ ## Acknowledgments
192
+
193
+ The availability of open-access clinical practice guidelines (CPG) was critical to this work, and we thank all the societies listed above. A broader representation of geography, medical specialties, and contexts (especially low-resource settings) could be achieved through more standardized CPG formatting practices to ensure reliable textual extraction (e.g., releasing `.txt` or `.html` versions with structured content). We encourage the CPG community to continue to make these documents available (open-access with permissive licenses for incorporation into large language models) and easily usable.
194
+
195
+ ## Authors
196
+
197
+ - **Curation**: Mary-Anne Hartley
198
+ - **Scraping**: Antoine Bonnet, Alexandre Sallinen, Igor Krawczuk, Kyle Matoba
199
+ - **Cleaning**: Antoine Bonnet, Alexandre Sallinen
200
+
201
+
202
+ ## Citation
203
+
204
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
205
+
206
+ If you use the Clinical Guidelines corpus, please cite out work:
207
+
208
+ ```
209
+ @misc{chen2023meditron70b,
210
+ title={MEDITRON-70B: Scaling Medical Pretraining for Large Language Models},
211
+ author={Zeming Chen and Alejandro Hernández-Cano and Angelika Romanou and Antoine Bonnet and Kyle Matoba and Francesco Salvi and Matteo Pagliardini and Simin Fan and Andreas Köpf and Amirkeivan Mohtashami and Alexandre Sallinen and Alireza Sakhaeirad and Vinitra Swamy and Igor Krawczuk and Deniz Bayazit and Axel Marmet and Syrielle Montariol and Mary-Anne Hartley and Martin Jaggi and Antoine Bosselut},
212
+ year={2023},
213
+ eprint={2311.16079},
214
+ archivePrefix={arXiv},
215
+ primaryClass={cs.CL}
216
+ }
217
+ @software{epfmedtrn,
218
+ author = {Zeming Chen and Alejandro Hernández-Cano and Angelika Romanou and Antoine Bonnet and Kyle Matoba and Francesco Salvi and Matteo Pagliardini and Simin Fan and Andreas Köpf and Amirkeivan Mohtashami and Alexandre Sallinen and Alireza Sakhaeirad and Vinitra Swamy and Igor Krawczuk and Deniz Bayazit and Axel Marmet and Syrielle Montariol and Mary-Anne Hartley and Martin Jaggi and Antoine Bosselut},
219
+ title = {MediTron-70B: Scaling Medical Pretraining for Large Language Models},
220
+ month = November,
221
+ year = 2023,
222
+ url = {https://github.com/epfLLM/meditron}
223
+ }
224
+ ```