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 λͺ¨λΈμ κ°λ₯μ±μ 보μ¬μ€λλ€.