feat: Aortic Valve Area estimation from Arterial Line waveform#2
Draft
feat: Aortic Valve Area estimation from Arterial Line waveform#2
Conversation
- Add derivation markdown: formulas/derivations/hemodynamics/aortic_valve_area_from_aline.md - Add example Python script: examples/aortic_valve_area_aline.py - Add comprehensive tests: tests/test_aortic_valve_area.py (44 tests) Implements Gorlin formula, Hakki simplification, pulse contour analysis, waveform feature extraction, and empirical regression model for AVA estimation from radial a-line waveform data. Agent-Logs-Url: https://github.com/u9401066/nsforge-mcp/sessions/4ed2569d-5b06-4f80-b4f7-5acbb54f07e6 Co-authored-by: u9401066 <119499895+u9401066@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
u9401066
April 15, 2026 04:34
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
從手部橈動脈導管 (radial a-line) 波形特徵估算主動脈瓣面積 (AVA) 的完整實現。
背景
主動脈瓣狹窄 (Aortic Stenosis) 是常見的瓣膜性心臟病,金標準診斷為超聲心動圖或心導管。但在 ICU 或手術室中,a-line 常是唯一的連續血流動力學監測工具。A-line 波形中蘊含主動脈瓣狹窄的多個線索:
新增檔案
formulas/derivations/hemodynamics/aortic_valve_area_from_aline.md— 完整數學推導examples/aortic_valve_area_aline.py— 實現 5 種方法:tests/test_aortic_valve_area.py— 44 個測試核心公式
Gorlin 公式:
$$AVA = \frac{CO}{44.3 \times C \times HR \times SEP \times \sqrt{\Delta P_{mean}}}$$
A-line 結合公式:
$$AVA = \frac{k \times A_{sys} \times HR}{Z_{ao} \times 44.3 \times SEP \times \sqrt{\Delta P_{mean}}}$$
驗證結果
ruff check— 全部通過pytest tests/— 114/114 通過(44 新 + 70 既有)print()語句)