# Medical artificial intelligence toolbox (MAIT): an explainable machine learning framework for binary classification, survival modelling, and regression analyses

Medical artificial intelligence toolbox (MAIT): 이진 분류, 생존 모델링, 회귀 분석을 위한 설명 가능한 머신러닝 프레임워크

Ramtin Zargari Marandi, Anne Svane Frahm, Jens Lundgren, Daniel Dawson Murray, Maja Milojevic · arXiv · 2025년 1월 8일

- **연구 문제** 표 형식 의료 데이터에서 이진 분류, 생존 분석, 회귀 분석을 하나의 설명 가능한 파이프라인으로 통합하는 문제를 다룹니다.
- **연구 방법** MAIT는 전처리, 특징 선택, 모델 학습과 평가, SHAP 기반 해석을 하나의 오픈소스 Python 파이프라인으로 묶습니다.
- **주요 결과** 생존 모델의 누적 위험 곡선을 이진 클래스로 바꿔 이진 분류 모델과 같은 혼동 행렬 형식으로 비교할 수 있게 한 것이 핵심 결과입니다.

## 표 형식 의료 데이터의 분석 도구 통합 문제

의료 연구의 표 형식 데이터에서는 이진 분류, 생존 분석, 회귀 분석을 서로 다른 도구로 수행하는 경우가 많아 같은 데이터에서 세 과제의 모델을 일관된 절차로 비교하기 어렵습니다. MAIT는 이 문제를 다루기 위해 설명 가능한 오픈소스 Python 파이프라인으로 제시됩니다. 결측, 클래스 불균형, 혼합 변수형, 고차원 데이터처럼 실제 의료 데이터에서 자주 생기는 문제를 전처리와 평가 단계에 함께 담고, TRIPOD+AI 보고 기준과의 일관성을 유지하는 것을 목표로 합니다. 특히 생존 모델의 결과를 이진 분류 모델과 직접 비교할 수 있는 방법이 필요하다는 점이 이 연구의 출발점입니다.

## 이진 분류 파이프라인의 전처리와 모델 선택

데이터 준비 단계에서 MAIT는 범주형 변수에 원-핫 인코딩을 적용하고, 연속형 변수의 결측은 k-nearest neighbors 기반 KNNImpute로 보완합니다. 개발 세트를 기준으로 mRMR을 사용해 고차원 데이터의 특징을 선택합니다. 이진 분류 모델은 LightGBM, CatBoost, Random Forest, HGBC, QLattice, Logistic Regression, Naïve Bayes의 일곱 가지이며, 앞의 네 개는 트리 기반 앙상블이고 Logistic Regression과 Naïve Bayes는 성능 비교를 위한 단순 통계 모델입니다. 하이퍼파라미터는 무작위 탐색과 교차 검증으로 조정되며, 탐색 공간은 데이터 특성에 맞춰 조정됩니다.

모델 선택은 여러 지표에 근거하는데, MCC, AUC, PR-AUC의 평균 지표가 가장 높은 모델을 전체 개발 세트에서 다시 학습한 뒤 테스트 세트에서 평가합니다. 클래스 불균형에는 클래스 비율에 따른 샘플 가중치를 사용하고, 필요하면 오버샘플링을 추가할 수 있습니다.

## 생존 모델의 누적 위험 곡선을 이진 분류로 바꾸는 방법

생존 분석에서 MAIT는 Random Survival Forest와 탄력 그물 벌점을 가진 Cox 비례위험 모델을 scikit-survival 패키지로 학습하고, 두 모델의 성능을 concordance index와 integrated Brier score로 비교합니다. 이 연구의 핵심 변환은 누적 위험 곡선을 이진 클래스로 바꾸는 과정입니다. 먼저 개발 세트의 모든 샘플에 대해 시간에 따른 누적 위험 곡선을 만들고, 각 클래스의 중앙값 곡선을 계산합니다. 테스트 세트 샘플의 곡선이 두 중앙값 곡선과 이루는 유클리드 거리를 비교해 클래스를 정합니다. 이 과정을 거치면 생존 모델의 예측을 혼동 행렬 형태로 제시할 수 있어 이진 분류 모델과 같은 틀에서 비교할 수 있습니다.

RSF는 비선형 정보와 특징 상호작용을 포착하는 이유로 CPH보다 선호되며, 기본적으로 특징 순열과 SurvSHAP(t)로 해석됩니다.

## 특징 중요도와 임상 유용성 평가

MAIT는 SHAP, 순열 기반 특징 중요도, 트리 기반 특징 중요도, QLattice 특징 다이어그램의 네 가지 해석 방법을 제공하며, 교차 검증과 테스트 세트에서 특징 중요도를 추정합니다. 올바르게 분류된 샘플만으로 중요도를 계산하는 옵션이 있고, SHAP 값의 군집 분석으로 환자 프로파일을 찾아 군집별 특징 중요도와 성능을 볼 수 있습니다. 특징 중요도의 통계적 유의성은 부트스트랩 subsampling으로 95% 신뢰도에서 검정합니다. 여기서 SHAP 값의 사분위 범위가 데이터 기반 임계값을 넘는 빈도가 5% 미만인 특징을 유의하다고 표시합니다. 임상 유용성은 비용을 고려한 decision curve analysis로 평가하며, 선택한 모델의 순이익을 대안 모델, 모두 음성인 경우, 무작위 결정과 비교합니다.

또한 보정은 isotonic regression과 conformal predictions로 수행할 수 있으며, 확률 임계값은 교차 검증 과정의 예측 확률을 바탕으로 최적화하는 옵션이 있습니다.

## 회귀 분석 모델과 설명 방식

회귀 분석에서는 Random Forest Regressor와 Linear Regression의 두 모델이 제공됩니다. 저자들은 Random Forest Regressor가 대부분의 상황에서 Linear Regression보다 나은 성능을 보일 것으로 예상하여, 이 모델을 SHAP 설명에 우선 사용한다고 해석합니다. 이 선택은 저자의 가정이며, 본 설명에서는 이 가정을 실측 결과로 다루지 않습니다.

## 공개 데이터셋 튜토리얼을 통한 적용 범위 확인

MAIT의 적용 범위는 네 개의 공개 데이터셋 튜토리얼로 확인합니다. Wisconsin Breast Cancer 데이터셋은 유방 종양의 디지털화된 미세침흡인 영상 특징으로 종양을 양성 또는 악성으로 분류하는 이진 분류 예시에 사용됩니다. Dementia Prediction 데이터셋은 범주형 특징과 연속형 특징이 함께 있는 이진 분류 예시를 보여줍니다. 나머지 두 개는 항생제 내성과 관련된 유전체 데이터이며, 튜토리얼은 분류, 회귀, 생존 분석의 사용 사례를 함께 포함합니다. 튜토리얼의 데이터셋 정보와 결과는 GitHub 저장소에서 확인할 수 있으므로, 본문은 각 튜토리얼이 어떤 과제를 대표하는지에 집중합니다.

## 적용 범위와 한계

MAIT는 다중 클래스 분류를 직접 처리하지 않으며, 다중 과제 학습과 인과 머신러닝을 지원하지 않고 딥러닝도 포함하지 않습니다. 단일 모놀리식 노트북 구조는 전체 과정을 자체적으로 포함하고 재현하기 쉬운 장점이 있지만, 기능이 늘어날수록 확장성에는 비용이 생깁니다. 저자들은 AutoML과 비교하여 MAIT가 계산 효율, 해석 가능성, 사용자 맞춤 수정, 전문가 감독 없는 편향에 대한 저항성 측면에서 장점이 있다고 해석합니다. 이 비교는 저자의 해석이며, 이 설명은 그 해석을 독립적인 실험 결과로 확장하지 않습니다.

## 논문 정보

- **저자**: Ramtin Zargari Marandi, Anne Svane Frahm, Jens Lundgren, Daniel Dawson Murray, Maja Milojevic
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 1월 8일
- **등록일**: 2026년 11월 5일
- **수정일**: 2025년 1월 8일
- **버전**: v1
- **arXiv**: 2501.04547
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2501.04547v1) · [원문 PDF ↗](https://arxiv.org/pdf/2501.04547v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

While machine learning offers diverse techniques suitable for exploring various medical research questions, a cohesive synergistic framework can facilitate the integration and understanding of new approaches within unified model development and interpretation. We therefore introduce the Medical Artificial Intelligence Toolbox (MAIT), an explainable, open-source Python pipeline for developing and evaluating binary classification, regression, and survival models on tabular datasets. MAIT addresses key challenges (e.g., high dimensionality, class imbalance, mixed variable types, and missingness) while promoting transparency in reporting (TRIPOD+AI compliant). Offering automated configurations for beginners and customizable source code for experts, MAIT streamlines two primary use cases: Discovery (feature importance via unified scoring, e.g., SHapley Additive exPlanations - SHAP) and Prediction (model development and deployment with optimized solutions). Moreover, MAIT proposes new techniques including fine-tuning of probability threshold in binary classification, translation of cumulative hazard curves to binary classification, enhanced visualizations for model interpretation for mixed data types, and handling censoring through semi-supervised learning, to adapt to a wide set of data constraints and study designs. We provide detailed tutorials on GitHub, using four open-access data sets, to demonstrate how MAIT can be used to improve implementation and interpretation of ML models in medical research.

## 원문 인용

Ramtin Zargari Marandi, Anne Svane Frahm, Jens Lundgren, Daniel Dawson Murray, Maja Milojevic (2025). Medical artificial intelligence toolbox (MAIT): an explainable machine learning framework for binary classification, survival modelling, and regression analyses. arXiv:2501.04547v1. https://arxiv.org/abs/2501.04547v1

**BibTeX**

```
@misc{marandi2025medical,
  title = {{Medical artificial intelligence toolbox (MAIT): an explainable machine learning framework for binary classification, survival modelling, and regression analyses}},
  author = {Ramtin Zargari Marandi and Anne Svane Frahm and Jens Lundgren and Daniel Dawson Murray and Maja Milojevic},
  year = {2025},
  eprint = {2501.04547},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.04547v1}
}
```

## 이 논문의 용어

- [SHAP](https://refivu.com/terms/24f6f151db7b-shap)
- [MCC](https://refivu.com/terms/17397080ab39-mcc)

## 다른 논문 해설

- [Artificial intelligence and machine learning applications for cultured meat](https://refivu.com/papers/94348fd1-294f-4ec4-a051-133e270c1f13-artificial-intelligence-and-machine-learning-applications.md)
- [An actively trained neural operator for near-explicit atmospheric chemistry](https://refivu.com/papers/eb9dbfd4-7716-4343-a72e-4db0b3540a9c-an-actively-trained-neural-operator-for-near-explicit.md)
- [When is early stopping beneficial under label noise? A phase diagram for kernel gradient flow](https://refivu.com/papers/bb22b69d-e82d-4182-9e12-3e35db072d10-when-is-early-stopping-beneficial-under-label-noise.md)
- [Performance of Neural Operator Baselines on 'The Well' Dataset](https://refivu.com/papers/59837613-7fe4-4933-9049-794c66abf2cb-performance-of-neural-operator-baselines-on-the-well.md)
- [h1: A Taste of the Bitter Lesson in Automated Theorem Proving](https://refivu.com/papers/f060d7fe-7433-44c7-ad28-145e5893dfd3-h1-a-taste-of-the-bitter-lesson-in.md)
- [EventGPT: Next-Event Pretraining on Banking Customer Histories](https://refivu.com/papers/098311cf-1a7e-445a-ad5c-3e4a5e0d7c78-eventgpt-next-event-pretraining-on-banking-customer.md)
- [On Adaptivity in Non-stationary Stochastic Optimization With Bandit Feedback](https://refivu.com/papers/63f88923-117f-4626-ba9c-0b71c8fa6235-on-adaptivity-in-non-stationary-stochastic-optimization-with.md)
- [Duality in convex stochastic optimization](https://refivu.com/papers/2844cbc1-829d-423f-af16-a73d287c2f23-duality-in-convex-stochastic-optimization.md)
- [Multistage Stochastic Optimization via Kernels](https://refivu.com/papers/00ce2b99-cc9f-44b2-b608-bee9c75780b8-multistage-stochastic-optimization-via-kernels.md)
- [Zero-Shot Anomaly Detection via Batch Normalization](https://refivu.com/papers/cc74b9d6-3714-45d2-b530-eaf9cd059db7-zero-shot-anomaly-detection-via-batch-normalization.md)
- [Dynamic programming in convex stochastic optimization](https://refivu.com/papers/5dce6daa-31c0-44a7-bb2f-517bba55fe13-dynamic-programming-in-convex-stochastic-optimization.md)
- [Robust Implicit Regularization via Weight Normalization](https://refivu.com/papers/570412db-60af-45c7-ae4b-a373f96075a3-robust-implicit-regularization-via-weight-normalization.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/8a035c66-5222-4639-a8fc-85097bfc700d-medical-artificial-intelligence-toolbox-mait-an-explainable)
