阑尾炎预测HIVE模型与LLM特征提取代码

包含HIVE模型预测阑尾炎的代码和训练模型,结合结构化数据与LLM提取的文本特征,采用XGBoost和Optuna优化。

Figshare
2025-05-05 更新
浏览 23
多模态AppendicitisClinical decision support (CDSS)Emergency departmentLLM data extractor
Code for the HIVE Appendicitis prediction modelRepository with LLM_data_extractor_optuna for automated feature extraction

基本信息

模态
多模态
大小
0.000862474 GB
许可
CC BY 4.0
创建/更新时间
2025-05-05
版本
v7

资源简介

阑尾炎预测HIVE模型与LLM特征提取代码

【数据集背景】

本数据集源站标题为《Code for the HIVE Appendicitis prediction modelRepository with LLM_data_extractor_optuna for automated feature extraction》。源站首次发布:2025-11-09。

【数据内容】

源站原始描述:This repository contains the code and trained model for developing the HIVE (History, Intake, Vitals, Examination) machine learning model for predicting appendicitis in patients presenting with acute abdominal pain at the Emergency Department (ED). The HIVE model was developed using structured data derived from ED intake forms, vital signs, and clinical signs and symptoms extracted from free-text ED reports. These clinical features were either manually annotated or automatically extracted using…

文件 05MAY2025 Appendicitis Prediction XGBoost LLM study.ipynb 为 JSON 结构(顶层键:cells、metadata、nbformat、nbformat_minor)。

【数据结构与技术规格】

文件数 4 个,合计 862.47 KB。HIVE_model.pkl:application/octet-stream,82.26 KB。05MAY2025 Appendicitis Prediction XGBoost LLM study.ipynb:application/json,40.81 KB。LLM_data_extractor_optuna_repo.zip:application/zip,733.73 KB。数据集 DOI:10.6084/m9.figshare.28931030.v7。

【主题与分类】

源站学科分类:Emergency medicine、Artificial intelligence not elsewhere classified。主题标签:Appendicitis、Clinical decision support (CDSS)、Emergency department、LLM data extractor。

【适用方向】

多模态数据适合跨模态对齐、融合建模与联合表征学习方向的研究。

【获取与许可】

源站页面:https://figshare.com/articles/dataset/Code_for_developing_and_validating_HIVE_model_for_Appendicitis_Prediction_XGBoost_/28931030

使用许可:CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)。

规范引用:Schipper, Anoeska; Bram van Ginneken (2025). Code for the HIVE Appendicitis prediction modelRepository with LLM_data_extractor_optuna for automated feature extraction. figshare. Dataset

官方服务

专家保障全链路合规授权与标注交付

陕川双基地 × 超十家三甲医院直连

从合规授权、采集治理、专业标注到数据集交付,我们提供全链路闭环服务,让高质量临床数据即拿即用。

⚡️ 需要原始数据或标注支持?联系我们获取定制方案。

帮我联系

下载信息

注册下载

需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。

暂未开放

公开下载

无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。

免登录

当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。

免费样本无法满足模型训练要求?千方提供经三甲医院脱敏、带病理回证与专家标注的商业级专病数据集。

使用方式

数据集获取(Figshare)

命令行下载

curl -L -o "HIVE_model.pkl" "https://ndownloader.figshare.com/files/54201830"
curl -L -o "05MAY2025 Appendicitis Prediction XGBoost LLM study.ipynb" "https://ndownloader.figshare.com/files/56185025"
curl -L -o "LLM_data_extractor_optuna_repo.zip" "https://ndownloader.figshare.com/files/59416175"
curl -L -o "README.md" "https://ndownloader.figshare.com/files/59416184"

文件清单

  • HIVE_model.pkl(82.26 KB)
  • 05MAY2025 Appendicitis Prediction XGBoost LLM study.ipynb(40.81 KB)
  • LLM_data_extractor_optuna_repo.zip(733.73 KB)
  • README.md(5.67 KB)

文件总体积 862.47 KB(源站 API 实测)。

数据加载示例(图像类)

from PIL import Image
import glob, os

files = (glob.glob(os.path.join(path, "**", "*.png"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.jpg"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.tif"), recursive=True))
print("图像文件数:", len(files))
img = Image.open(files[0]); print("尺寸/模式:", img.size, img.mode)

# torchvision Dataset 方式:
# from torchvision import datasets
# ds = datasets.ImageFolder(path)  # 要求 子目录=类别

目录组织与标注格式以源站说明和下载后实际文件为准。

数据说明

This repository contains the code and trained model for developing the HIVE (History, Intake, Vitals, Examination) machine learning model for predicting appendicitis in patients presenting with acute abdominal pain at the Emergency Department (ED).
The HIVE model was developed using structured data derived from ED intake forms, vital signs, and clinical signs and symptoms extracted from free-text ED reports. These clinical features were either manually annotated or automatically extracted using a large language model (LLM), depending on the experiment.
The codebase includes:

  • Preprocessing scripts for merging structured and unstructured inputs
  • Feature engineering and selection steps
  • Model development using XGBoost
  • Hyperparameter tuning via Optuna
  • Evaluation procedures including AUROC calculation and bootstrapping for confidence intervals
    The repository also includes a pickled version of the final trained model (developed on 268 training cases), which can be used to generate appendicitis risk predictions on new patient data when provided with the appropriate input features.
    LLM Data Extractor optuna repo is a Python framework for generating and evaluating clinical text predictions using large language models (LLMs) like qwen2.5. It supports:
  • Prediction task execution via a local Ollama server
  • Hyperparameter tuning with Optuna across temperature, top-k, top-p, and min-p
  • Designed to extract structured outputs from unstructured text data (e.g., ED reports)
  • Fully configurable via CLI for automated or fine-tuned runs.
  • Please read the attached readme.md for a brief walkthrough how to use the LLM JSON pipeline (with examples).
    The pipeline supports both direct prediction generation and structured evaluation with minimal setup. It is based on the llm_extractinator/README.md at main · DIAGNijmegen/llm_extractinator · GitHub.
    This repository is linked to the paper Large Language Model Automated Extraction of Clinical Signs and Symptoms From Emergency Department Reports for Machine Learning Prediction Models: A Development and Validation Study.

许可

CC BY 4.0

引用

学术使用请引用 DOI 10.6084/m9.figshare.28931030.v7(source: https://figshare.com/articles/dataset/Code_for_developing_and_validating_HIVE_model_for_Appendicitis_Prediction_XGBoost_/28931030)。

需要用于商业化训练或医疗器械注册(NMPA/FDA)?

公开数据往往缺乏完整的病理回证与专家标注。千方医数集依托陕川双基地与超十家三甲医院直连,提供完全合规、去标识化、支持注册级质控的专病数据集交易服务。