脑卒中分析数据集

该数据集包含脑卒中相关的临床数据,数据模态主要为表格形式的医疗记录,通过应用机器学习模型和SMOTEENN等重采样技术处理数据不平衡问题,主要用于脑卒中的风险预测、早期诊断以及医疗人工智能模型的开发与研究。

github
2023-12-12 更新
浏览 27
brain-stroke-analysis-and-classificationcerebralmachine-learning-algorithmsoversampling-techniqueundersampling-technique
Cereberal-Stroke-Analysis Dataset

基本信息

大小
0.001315 GB
创建/更新时间
2023-12-12
版本
main

资源简介

脑卒中分析数据集

【数据集背景】

本数据集源站标题为《Demon-2-Angel/Cereberal-Stroke-Analysis》。源站首次发布:2023-12-11。

【数据内容】

源站原始描述:Cerebral stroke, a critical condition, demands vigilant analysis. Machine learning models, coupled with resampling techniques like SMOTEENN, enhance stroke prediction accuracy by addressing imbalanced datasets. # Cereberal-Stroke-Analysis # Followed Process ## Read Data: The script starts by importing necessary libraries (`pandas`, `numpy`, `seaborn`, `matplotlib.pyplot`) and reading a CSV file into a DataFrame (`df`). ## Exploratory Data Analysis (EDA): Basic exploration of the dataset using `h…

【主题与分类】

主题标签:brain-stroke-analysis-and-classification、cerebral、machine-learning-algorithms、oversampling-technique、undersampling-technique。

【获取与许可】

源站页面:https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis

官方服务

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

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

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

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

帮我联系

下载信息

注册下载

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

暂未开放

公开下载

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

免登录

有偿下载

公开数据集受托下载与技术交付服务。

提供高速下载与技术交付服务(收技术服务费,非数据销售)

暂未开放

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

使用方式

数据集获取

git clone https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis.git

curl -L -o repo.zip https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis/archive/refs/heads/main.zip
unzip repo.zip

源站 README 摘录(使用方式)

Cereberal-Stroke-Analysis

Followed Process

Read Data:

The script starts by importing necessary libraries (pandas, numpy, seaborn, matplotlib.pyplot) and reading a CSV file into a DataFrame (df).

Exploratory Data Analysis (EDA):

Basic exploration of the dataset using head(), describe(), and checking for missing values using isnull().sum().

Handling Categorical Variables:

One-hot encoding is performed on categorical variables using pd.get_dummies().

Handling Missing Values:

Missing values are imputed using the k-nearest neighbors algorithm (KNNImputer from sklearn.impute).

Feature Scaling and Train-Test Split:

Features are scaled using MinMaxScaler, and the dataset is split into training and testing sets.

Model Selection:

Several classification models are chosen (KNeighborsClassifier, GaussianNB, DecisionTreeClassifier, and RandomForestClassifier) for initial testing.

Model Evaluation Without Resampling:

Classification reports are generated for each model to evaluate their performance on the imbalanced dataset.

<p align=“center”>
<img src=“https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis/blob/main/Images/Before Sampling.png”>
</p>

OverSampling (SMOTE):

The script uses the Synthetic Minority Over-sampling Technique (SMOTE) to oversample the minority class.

Model Evaluation After OverSampling:

The same models are re-trained and evaluated on the oversampled dataset.

<p align=“center”>
<img src=“https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis/blob/main/Images/OverSampling.png”>
</p>

UnderSampling:

Random under-sampling is performed to balance the class distribution.

Model Evaluation After UnderSampling:

The models are re-trained and evaluated on the undersampled dataset.

<p align=“center”>
<img src=“https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis/blob/main/Images/UnderSampling.png”>
</p>

Combining OverSampling and UnderSampling (SMOTEENN):

The SMOTEENN technique, which combines SMOTE and Edited Nearest Neighbours (ENN), is applied.

Model Evaluation After Combining OverSampling and UnderSampling:

The models are re-trained and evaluated on the combined dataset.

<p align=“center”>
<img src=“https://github.com/Demon-2-Angel/Cereberal-Stroke-Analysis/blob/main/Images/After Over %26 Under Sampling.png”>
</p>

Conclusion:

数据加载示例(图像类)

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)  # 要求 子目录=类别

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

完整仓库:github.com/Demon-2-Angel/Cereberal-Stroke-Analysis

数据缺失?

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

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

获取专属数据定制方案