HNJ1998/symptom_to_diagnosis
收藏资源简介:
--- license: apache-2.0 task_categories: - text-classification task_ids: - multi-class-classification language: - en tags: - medical pretty_name: Gretel/symptoms_to_diagnosis size_categories: - 10K<n<100K --- # Dataset Summary This dataset contains natural language descriptions of symptoms labeled with 22 corresponding diagnoses. `Gretel/symptom_to_diagnosis` provides 1065 symptom descriptions in the English language labeled with 22 diagnoses, focusing on fine-grained single-domain diagnosis. ## Data Fields Each row contains the following fields: * `input_text` : A string field containing symptoms * `output_text` : A string field containing a diagnosis Example: ``` { "output_text": "drug reaction", "input_text": "I've been having headaches and migraines, and I can't sleep. My whole body shakes and twitches. Sometimes I feel lightheaded." } ``` ## Diagnoses This table contains the count of each diagnosis in the train and test splits. | | Diagnosis | train.jsonl | test.jsonl | |---:|:--------------------------------|--------------:|-------------:| | 0 | drug reaction | 40 | 8 | | 1 | allergy | 40 | 10 | | 2 | chicken pox | 40 | 10 | | 3 | diabetes | 40 | 10 | | 4 | psoriasis | 40 | 10 | | 5 | hypertension | 40 | 10 | | 6 | cervical spondylosis | 40 | 10 | | 7 | bronchial asthma | 40 | 10 | | 8 | varicose veins | 40 | 10 | | 9 | malaria | 40 | 10 | | 10 | dengue | 40 | 10 | | 11 | arthritis | 40 | 10 | | 12 | impetigo | 40 | 10 | | 13 | fungal infection | 39 | 9 | | 14 | common cold | 39 | 10 | | 15 | gastroesophageal reflux disease | 39 | 10 | | 16 | urinary tract infection | 39 | 9 | | 17 | typhoid | 38 | 9 | | 18 | pneumonia | 37 | 10 | | 19 | peptic ulcer disease | 37 | 10 | | 20 | jaundice | 33 | 7 | | 21 | migraine | 32 | 10 | ## Data Splits The data is split to 80% train (853 examples, 167kb) and 20% test (212 examples, 42kb). ## Dataset Creation Data was filtered to remove unwanted categories and updated using an LLM to create language more consistent with how a patient would describe symptoms in natural language to a doctor. ## Source Data This dataset was adapted based on the [Symptom2Disease](https://www.kaggle.com/datasets/niyarrbarman/symptom2disease) dataset from Kaggle. ## Personal and Sensitive Information The symptoms in this dataset were modified from their original format using an LLM and do not contain personal data. ## Limitations This dataset is licensed Apache 2.0 and free for use.
许可证: Apache-2.0 任务类别: - 文本分类 任务子类型: - 多分类 语言: - 英语 标签: - 医疗领域 数据集展示名称: Gretel/症状至诊断映射(Gretel/symptoms_to_diagnosis) 样本规模: - 10000 < 样本量 < 100000 # 数据集概述 本数据集包含经标注的22种对应诊断结果的症状自然语言描述。Gretel/症状至诊断映射(Gretel/symptoms_to_diagnosis)共包含1065条英语症状描述,均标注有22种诊断结果,聚焦于细粒度单领域诊断任务。 ## 数据字段 每一行数据包含以下字段: * `input_text`(输入文本):字符串类型字段,用于存储症状描述内容 * `output_text`(输出文本):字符串类型字段,用于存储对应诊断结果 示例: json { "output_text": "药物不良反应(drug reaction)", "input_text": "我持续头痛并伴有偏头痛,无法入眠,全身震颤抽搐,偶尔会感到头晕目眩。" } ## 诊断结果分布 本表格展示了训练集(train.jsonl)与测试集(test.jsonl)中各诊断结果的样本数量: | 序号 | 诊断结果 | train.jsonl | test.jsonl | |-----:|-----------------------------------|------------:|-----------:| | 0 | 药物不良反应(drug reaction) | 40 | 8 | | 1 | 过敏(allergy) | 40 | 10 | | 2 | 水痘(chicken pox) | 40 | 10 | | 3 | 糖尿病(diabetes) | 40 | 10 | | 4 | 银屑病(psoriasis) | 40 | 10 | | 5 | 高血压(hypertension) | 40 | 10 | | 6 | 颈椎病(cervical spondylosis) | 40 | 10 | | 7 | 支气管哮喘(bronchial asthma) | 40 | 10 | | 8 | 静脉曲张(varicose veins) | 40 | 10 | | 9 | 疟疾(malaria) | 40 | 10 | | 10 | 登革热(dengue) | 40 | 10 | | 11 | 关节炎(arthritis) | 40 | 10 | | 12 | 脓疱病(impetigo) | 40 | 10 | | 13 | 真菌感染(fungal infection) | 39 | 9 | | 14 | 普通感冒(common cold) | 39 | 10 | | 15 | 胃食管反流病(gastroesophageal reflux disease) | 39 | 10 | | 16 | 尿路感染(urinary tract infection) | 39 | 9 | | 17 | 伤寒(typhoid) | 38 | 9 | | 18 | 肺炎(pneumonia) | 37 | 10 | | 19 | 消化性溃疡病(peptic ulcer disease) | 37 | 10 | | 20 | 黄疸(jaundice) | 33 | 7 | | 21 | 偏头痛(migraine) | 32 | 10 | ## 数据划分 本数据集按80%的比例划分为训练集(共853条样本,大小167kb)与20%的测试集(共212条样本,大小42kb)。 ## 数据集构建流程 数据经过过滤以移除无关类别,并通过大语言模型(LLM)进行优化,生成更贴合患者向医生自然描述症状的语言风格。 ## 源数据 本数据集改编自Kaggle平台上的[Symptom2Disease](https://www.kaggle.com/datasets/niyarrbarman/symptom2disease)数据集。 ## 个人与敏感信息说明 本数据集的症状描述经大语言模型(LLM)修改自原始格式,未包含任何个人敏感信息。 ## 局限性说明 本数据集采用Apache 2.0许可证,可免费使用。




