A Logistic Regression Approach for Cardiovascular Disease Prediction

English

Overview

This study proposes an enhanced logistic regression framework for predicting cardiovascular disease (CVD). The approach integrates Recursive Feature Elimination with Cross-Validation (RFECV) and custom weight initialization to improve interpretability and accuracy. Cardiovascular disease remains one of the most critical global health concerns, highlighting the need for data-driven and interpretable predictive models.


Mathematical Formulation

Logistic Regression Model

The model predicts the probability \( P(y = 1 \mid \mathbf{x}) \) that a patient has cardiovascular disease given features \( \mathbf{x} = (x_1, x_2, \ldots, x_n) \).

\[z = \omega_1 x_1 + \omega_2 x_2 + \cdots + \omega_n x_n + b\] \[P(y = 1 \mid \mathbf{x}) = \sigma(z) = \frac{1}{1 + e^{-z}}\]

where:
\( \omega_i \): weight of each feature
\( b \): bias term
\( \sigma(z) \): sigmoid (logistic) activation function


Cost Function and Optimization

The cost function is defined by binary cross-entropy:

\[J(\omega, b) = -\frac{1}{m} \sum_{i=1}^{m} \Big[ y^{(i)} \log(\hat{y}^{(i)}) + (1 - y^{(i)}) \log(1 - \hat{y}^{(i)}) \Big]\]

Model parameters are updated via gradient descent:

\[\omega_j := \omega_j - \alpha \frac{\partial J}{\partial \omega_j}, \quad b := b - \alpha \frac{\partial J}{\partial b}\]

where \( \alpha \) is the learning rate.


RFECV-Based Weight Initialization

RFECV ranks each feature’s predictive power. The initial weights are set inversely proportional to the ranking:

\[\omega_j^{(0)} = \frac{1}{\text{RFECVrank}(x_j)}\]

This ensures that the most critical clinical features (e.g., age, blood pressure, cholesterol) receive higher importance during early training, accelerating convergence.


Dataset and Experiment

  • Dataset: UCI Heart Disease Dataset (303 samples, 13 features)
  • Cross-Validation: 5-Fold
  • Optimization: Gradient Descent (\( \alpha = 0.01 \))
  • Evaluation Metrics: Accuracy, F1-Score

Results

Model Accuracy F1-Score
Logistic Regression (baseline) 79.0% 74.8%
RFECV-only Logistic Regression 84.2% 84.6%
Proposed (RFECV + Weight Init.) 87.5% 87.4%

The proposed approach outperformed both baseline and RFECV-only models, demonstrating a strong balance between precision and generalization.


Awards

πŸ… KSEF 2025 Junior BIO – Domestic Gold Medal
πŸ₯ˆ KSEF 2025 Junior BIO – Inter Silver Medal

These achievements recognize the project’s contribution to biomedical AI research and its educational significance in applying interpretable machine learning to real-world health prediction.


Contribution

This study demonstrates how interpretable machine learning can advance biomedical prediction models, making logistic regression not only explainable but also clinically useful. Its structure provides a reproducible example for AI-driven medical research education.


ν•œκ΅­μ–΄

연ꡬ κ°œμš”

λ³Έ μ—°κ΅¬λŠ” μ‹¬ν˜ˆκ΄€ μ§ˆν™˜(CVD) μ˜ˆμΈ‘μ„ μœ„ν•œ λ‘œμ§€μŠ€ν‹± νšŒκ·€(Logistic Regression) λͺ¨λΈμ„ κ°œμ„ ν•œ λ°©μ‹μœΌλ‘œ μ œμ•ˆν•©λ‹ˆλ‹€. 기쑴의 λ‹¨μˆœν•œ νšŒκ·€ λͺ¨λΈμ— ꡐ차검증 기반 μž¬κ·€μ  νŠΉμ„± 제거(RFECV)와 κ°€μ€‘μΉ˜ μ΄ˆκΈ°ν™”(Weight Initialization) 기법을 κ²°ν•©ν•˜μ—¬, 의료 데이터 λΆ„μ„μ—μ„œ 해석 κ°€λŠ₯μ„±κ³Ό 정확도λ₯Ό λ™μ‹œμ— ν–₯μƒμ‹œμΌ°μŠ΅λ‹ˆλ‹€.


μˆ˜ν•™μ  μ •μ˜

\[z = \omega_1 x_1 + \omega_2 x_2 + \cdots + \omega_n x_n + b\] \[P(y = 1 \mid \mathbf{x}) = \frac{1}{1 + e^{-z}}\]

\( \omega_i \): 각 νŠΉμ„±(feature)의 κ°€μ€‘μΉ˜
\( b \): 편ν–₯(bias)
\( P(y=1 \mid \mathbf{x}) \): μ§ˆλ³‘μ΄ μ‘΄μž¬ν•  ν™•λ₯ 

λͺ¨λΈ ν•™μŠ΅μ€ 이진 ꡐ차 μ—”νŠΈλ‘œν”Ό μ†μ‹€ν•¨μˆ˜(Binary Cross-Entropy Loss)λ₯Ό μ΅œμ†Œν™”ν•˜λŠ” λ°©ν–₯으둜 μ§„ν–‰λ©λ‹ˆλ‹€.

\[J(\omega, b) = -\frac{1}{m} \sum_{i=1}^{m} [ y^{(i)} \log(\hat{y}^{(i)}) + (1 - y^{(i)}) \log(1 - \hat{y}^{(i)}) ]\]

κ²½μ‚¬ν•˜κ°•λ²•(Gradient Descent)을 톡해 λ§€κ°œλ³€μˆ˜λŠ” λ‹€μŒκ³Ό 같이 μ—…λ°μ΄νŠΈλ©λ‹ˆλ‹€.

\[\omega_j := \omega_j - \alpha \frac{\partial J}{\partial \omega_j}, \quad b := b - \alpha \frac{\partial J}{\partial b}\]

RFECV 기반 κ°€μ€‘μΉ˜ μ΄ˆκΈ°ν™”

\[\omega_j^{(0)} = \frac{1}{\text{RFECVrank}(x_j)}\]

RFECV둜 λ„μΆœλœ λ³€μˆ˜ μ€‘μš”λ„μ— 따라 초기 κ°€μ€‘μΉ˜λ₯Ό μ„€μ •ν•˜μ—¬, μ€‘μš”ν•œ νŠΉμ„±(λ‚˜μ΄, ν˜ˆμ••, μ½œλ ˆμŠ€ν…Œλ‘€ λ“±)에 더 λΉ λ₯΄κ²Œ μˆ˜λ ΄ν•˜λ„λ‘ μœ λ„ν•©λ‹ˆλ‹€.


μ‹€ν—˜ κ²°κ³Ό

λͺ¨λΈ 정확도 F1 점수
κΈ°λ³Έ λ‘œμ§€μŠ€ν‹± νšŒκ·€ 79.0% 74.8%
RFECV 적용 84.2% 84.6%
μ œμ•ˆλœ λͺ¨λΈ (RFECV + μ΄ˆκΈ°ν™”) 87.5% 87.4%

μˆ˜μƒ λ‚΄μ—­

πŸ… 2025λ…„ KSEF Senior BIO κ΅­λ‚΄ λΆ€λ¬Έ κΈˆμƒ
πŸ₯ˆ 2025λ…„ KSEF Senior BIO ꡭ제 λΆ€λ¬Έ 은상

λ³Έ μ—°κ΅¬λŠ” λ°”μ΄μ˜€λ©”λ””μ»¬ 인곡지λŠ₯ μ‘μš©μ˜ κ°€λŠ₯성을 인정받아 ꡐ윑적 및 연ꡬ적 μš°μˆ˜μ„±μ„ λ™μ‹œμ— μž…μ¦ν•˜μ˜€μŠ΅λ‹ˆλ‹€.


연ꡬ 의의

이 μ—°κ΅¬λŠ” λ‹¨μˆœν•œ νšŒκ·€ 뢄석이 μ•„λ‹Œ, νŠΉμ„± 선택(Feature Selection)κ³Ό κ°€μ€‘μΉ˜ μ΅œμ ν™”λ₯Ό κ²°ν•©ν•œ 해석 κ°€λŠ₯ν•œ λ¨Έμ‹ λŸ¬λ‹ λͺ¨λΈλ‘œ, μ‹€μ œ 의료 ν™˜κ²½μ—μ„œλ„ 적용 κ°€λŠ₯ν•œ μ˜μ‚¬κ²°μ • μ§€μ›ν˜• AI λͺ¨λΈμ˜ κ°€λŠ₯성을 λ³΄μ—¬μ€λ‹ˆλ‹€.

Updated: