HIVE阑尾炎预测模型与LLM数据提取代码

提供HIVE阑尾炎预测模型代码,基于XGBoost和LLM数据提取器,用于从急诊报告提取临床特征并预测阑尾炎风险。

Schipper, Anoeska; Bram van GinnekenSchipper, Anoeska; Bram van Ginneken
Figshare
2025-11-09 更新
浏览 47
文本、表格AppendicitisClinical decision support (CDSS)Emergency departmentLLM data extractor
HIVE Appendicitis Prediction Model and LLM Data Extractor Code

基本信息

模态
文本、表格
大小
0.000862474 GB
许可
CC BY 4.0
创建/更新时间
2025-11-09
版本
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)。

数据缺失?

依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。

⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。

获取专属数据定制方案