Create README.md
Browse files---
language:
- zh
- en
tags:
- ECG
- potassium
- hyperkalemia
- hypokalemia
- medical
- cardiology
- nephrology
- time-series
- classification
license: other
pipeline_tag: time-series-classification
---
# KaliSense AI — ECG-based Serum Potassium Anomaly Detector
> 🏆 **2025 SelectUSA Investment Summit — Global 2nd Place**
> 🏥 Invited for evaluation by world top-10 medical institutions
> 🏢 By [Precise Bigdata生技 | Precise Intelligent Biotech](https://huggingface.co/precise-biotech)
---
## Model Description | 模型說明
**KaliSense AI** is a CNN-Transformer deep learning model that predicts serum potassium (K⁺) anomalies directly from 12-lead ECG waveforms — **without any blood draw**.
The model classifies ECG inputs into three categories:
- ✅ **Normal** — K⁺ within normal range (3.5–5.0 mEq/L)
- ⚠️ **Hypokalemia** — Low potassium risk (K⁺ < 3.5 mEq/L)
- 🚨 **Hyperkalemia** — High potassium risk (K⁺ > 5.5 mEq/L)
---
## Clinical Background | 臨床背景
Hyperkalemia and hypokalemia are among the most dangerous electrolyte imbalances, especially in:
- Chronic Kidney Disease (CKD) patients
- Hemodialysis patients (9万+ in Taiwan alone)
- Patients on ACE inhibitors, ARBs, or potassium-sparing diuretics
Traditional serum potassium testing requires venous blood draw and lab processing (30 min – hours). KaliSense AI enables **real-time, non-invasive** potassium risk screening from ECG alone.
---
## Model Architecture | 模型架構
```
Input: 12-lead ECG (500 Hz sampling rate)
│
▼
CNN Encoder (local feature extraction)
• T-wave amplitude detection
• QRS complex width measurement
• PR interval analysis
• QTc calculation
│
▼
Transformer Encoder (global temporal context)
• Multi-head self-attention (8 heads)
• Positional encoding for temporal sequence
│
▼
Classification Head
• 3-class output: Normal / Hypokalemia / Hyperkalemia
• Softmax probability scores
```
---
## Performance | 模型效能
Validated on clinical dataset from nephrology and hemodialysis centers (IRB approved):
| Metric | Value |
|--------|-------|
| Overall Accuracy | 91.2% |
| Hyperkalemia Sensitivity | 88.0% |
| Hyperkalemia Specificity | 93.5% |
| Hypokalemia Sensitivity | 85.4% |
| AUC (Hyperkalemia) | 0.947 |
| AUC (Hypokalemia) | 0.921 |
---
## Input Format | 輸入格式
| Property | Specification |
|----------|--------------|
| ECG Leads | 12-lead (or 1/3/6-lead) |
| Sampling Rate | 500 Hz (recommended) |
| Duration | 10 seconds standard |
| File Formats | .CSV, .EDF, HL7 |
---
## Intended Use | 適用範圍
✅ **Intended for:**
- Clinical potassium risk screening support
- Hemodialysis patient continuous monitoring
- Rural clinic and remote care settings
- Emergency department rapid assessment
❌ **Not intended for:**
- Replacing laboratory serum potassium testing
- Standalone diagnosis without physician review
- Pediatric patients (not validated)
---
## Limitations & Disclaimer | 限制與免責聲明
> ⚠️ This model is intended as a **clinical decision support tool only**.
> All outputs must be confirmed by a licensed physician before clinical action.
> Currently under **TFDA SaMD** regulatory review for medical device software certification.
---
## Privacy & Compliance | 隱私與法規
- Model trained on **IRB-approved, de-identified** clinical ECG data
- Core model weights and training pipeline stored in **private repository** under TFDA SaMD compliance controls
- Patient data is **never stored** beyond the analysis session
- Compliant with **ISO 27001** information security standards
---
## Pre-training Datasets | 預訓練資料集
| Dataset | Records | Usage |
|---------|---------|-------|
| [PhysioNet PTB-XL](https://physionet.org/content/ptb-xl/) | 21,799 ECGs | Pre-training |
| [MIMIC-IV-ECG](https://physionet.org/content/mimic-iv-ecg/) | 800,000+ ECGs | Feature extraction pre-training |
| Internal Clinical (IRB) | 2,847 ECGs | Fine-tuning & validation |
---
## Citation | 引用
If you reference this work, please cite:
```bibtex
@software {kalisense2025,
title = {KaliSense AI: Non-Invasive Serum Potassium Anomaly Detection},
author = {Precise Intelligent Biotech Co., Ltd.},
year = {2025},
url = {https://huggingface.co/precise-biotech/kalisense-ecg-potassium}
}
```
---
## Contact & Collaboration | 合作洽詢
🏢 **Precise Bigdata生技股份有限公司 | Precise Intelligent Biotech Co., Ltd.**
📧 contact@precisebiotech.ai
🌐 www.precisebiotech.ai
💻 GitHub: [github.com/curry1982/kalisense-ai](https://github.com/curry1982/kalisense-ai)
|
@@ -1,5 +1,162 @@
|
|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| 3 |
+
- zh
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- ECG
|
| 7 |
+
- potassium
|
| 8 |
+
- hyperkalemia
|
| 9 |
+
- hypokalemia
|
| 10 |
+
- medical
|
| 11 |
+
- cardiology
|
| 12 |
+
- nephrology
|
| 13 |
+
- time-series
|
| 14 |
+
- classification
|
| 15 |
+
license: other
|
| 16 |
+
pipeline_tag: time-series-classification
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# KaliSense AI — ECG-based Serum Potassium Anomaly Detector
|
| 20 |
+
|
| 21 |
+
> 🏆 **2025 SelectUSA Investment Summit — Global 2nd Place**
|
| 22 |
+
> 🏥 Invited for evaluation by world top-10 medical institutions
|
| 23 |
+
> 🏢 By [Precise Bigdata生技 | Precise Intelligent Biotech](https://huggingface.co/precise-biotech)
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## Model Description | 模型說明
|
| 28 |
+
|
| 29 |
+
**KaliSense AI** is a CNN-Transformer deep learning model that predicts serum potassium (K⁺) anomalies directly from 12-lead ECG waveforms — **without any blood draw**.
|
| 30 |
+
|
| 31 |
+
The model classifies ECG inputs into three categories:
|
| 32 |
+
- ✅ **Normal** — K⁺ within normal range (3.5–5.0 mEq/L)
|
| 33 |
+
- ⚠️ **Hypokalemia** — Low potassium risk (K⁺ < 3.5 mEq/L)
|
| 34 |
+
- 🚨 **Hyperkalemia** — High potassium risk (K⁺ > 5.5 mEq/L)
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## Clinical Background | 臨床背景
|
| 39 |
+
|
| 40 |
+
Hyperkalemia and hypokalemia are among the most dangerous electrolyte imbalances, especially in:
|
| 41 |
+
- Chronic Kidney Disease (CKD) patients
|
| 42 |
+
- Hemodialysis patients (9万+ in Taiwan alone)
|
| 43 |
+
- Patients on ACE inhibitors, ARBs, or potassium-sparing diuretics
|
| 44 |
+
|
| 45 |
+
Traditional serum potassium testing requires venous blood draw and lab processing (30 min – hours). KaliSense AI enables **real-time, non-invasive** potassium risk screening from ECG alone.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## Model Architecture | 模型架構
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
Input: 12-lead ECG (500 Hz sampling rate)
|
| 53 |
+
│
|
| 54 |
+
▼
|
| 55 |
+
CNN Encoder (local feature extraction)
|
| 56 |
+
• T-wave amplitude detection
|
| 57 |
+
• QRS complex width measurement
|
| 58 |
+
• PR interval analysis
|
| 59 |
+
• QTc calculation
|
| 60 |
+
│
|
| 61 |
+
▼
|
| 62 |
+
Transformer Encoder (global temporal context)
|
| 63 |
+
• Multi-head self-attention (8 heads)
|
| 64 |
+
• Positional encoding for temporal sequence
|
| 65 |
+
│
|
| 66 |
+
▼
|
| 67 |
+
Classification Head
|
| 68 |
+
• 3-class output: Normal / Hypokalemia / Hyperkalemia
|
| 69 |
+
• Softmax probability scores
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## Performance | 模型效能
|
| 75 |
+
|
| 76 |
+
Validated on clinical dataset from nephrology and hemodialysis centers (IRB approved):
|
| 77 |
+
|
| 78 |
+
| Metric | Value |
|
| 79 |
+
|--------|-------|
|
| 80 |
+
| Overall Accuracy | 91.2% |
|
| 81 |
+
| Hyperkalemia Sensitivity | 88.0% |
|
| 82 |
+
| Hyperkalemia Specificity | 93.5% |
|
| 83 |
+
| Hypokalemia Sensitivity | 85.4% |
|
| 84 |
+
| AUC (Hyperkalemia) | 0.947 |
|
| 85 |
+
| AUC (Hypokalemia) | 0.921 |
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
## Input Format | 輸入格式
|
| 90 |
+
|
| 91 |
+
| Property | Specification |
|
| 92 |
+
|----------|--------------|
|
| 93 |
+
| ECG Leads | 12-lead (or 1/3/6-lead) |
|
| 94 |
+
| Sampling Rate | 500 Hz (recommended) |
|
| 95 |
+
| Duration | 10 seconds standard |
|
| 96 |
+
| File Formats | .CSV, .EDF, HL7 |
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## Intended Use | 適用範圍
|
| 101 |
+
|
| 102 |
+
✅ **Intended for:**
|
| 103 |
+
- Clinical potassium risk screening support
|
| 104 |
+
- Hemodialysis patient continuous monitoring
|
| 105 |
+
- Rural clinic and remote care settings
|
| 106 |
+
- Emergency department rapid assessment
|
| 107 |
+
|
| 108 |
+
❌ **Not intended for:**
|
| 109 |
+
- Replacing laboratory serum potassium testing
|
| 110 |
+
- Standalone diagnosis without physician review
|
| 111 |
+
- Pediatric patients (not validated)
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Limitations & Disclaimer | 限制與免責聲明
|
| 116 |
+
|
| 117 |
+
> ⚠️ This model is intended as a **clinical decision support tool only**.
|
| 118 |
+
> All outputs must be confirmed by a licensed physician before clinical action.
|
| 119 |
+
> Currently under **TFDA SaMD** regulatory review for medical device software certification.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
## Privacy & Compliance | 隱私與法規
|
| 124 |
+
|
| 125 |
+
- Model trained on **IRB-approved, de-identified** clinical ECG data
|
| 126 |
+
- Core model weights and training pipeline stored in **private repository** under TFDA SaMD compliance controls
|
| 127 |
+
- Patient data is **never stored** beyond the analysis session
|
| 128 |
+
- Compliant with **ISO 27001** information security standards
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## Pre-training Datasets | 預訓練資料集
|
| 133 |
+
|
| 134 |
+
| Dataset | Records | Usage |
|
| 135 |
+
|---------|---------|-------|
|
| 136 |
+
| [PhysioNet PTB-XL](https://physionet.org/content/ptb-xl/) | 21,799 ECGs | Pre-training |
|
| 137 |
+
| [MIMIC-IV-ECG](https://physionet.org/content/mimic-iv-ecg/) | 800,000+ ECGs | Feature extraction pre-training |
|
| 138 |
+
| Internal Clinical (IRB) | 2,847 ECGs | Fine-tuning & validation |
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## Citation | 引用
|
| 143 |
+
|
| 144 |
+
If you reference this work, please cite:
|
| 145 |
+
|
| 146 |
+
```bibtex
|
| 147 |
+
@software{kalisense2025,
|
| 148 |
+
title = {KaliSense AI: Non-Invasive Serum Potassium Anomaly Detection},
|
| 149 |
+
author = {Precise Intelligent Biotech Co., Ltd.},
|
| 150 |
+
year = {2025},
|
| 151 |
+
url = {https://huggingface.co/precise-biotech/kalisense-ecg-potassium}
|
| 152 |
+
}
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
---
|
| 156 |
+
|
| 157 |
+
## Contact & Collaboration | 合作洽詢
|
| 158 |
+
|
| 159 |
+
🏢 **Precise Bigdata生技股份有限公司 | Precise Intelligent Biotech Co., Ltd.**
|
| 160 |
+
📧 contact@precisebiotech.ai
|
| 161 |
+
🌐 www.precisebiotech.ai
|
| 162 |
+
💻 GitHub: [github.com/curry1982/kalisense-ai](https://github.com/curry1982/kalisense-ai)
|