If you want a (e.g., for a Python-based ECG analysis feature), here’s a simple rule-based example to detect possible old inferior MI using Q-wave criteria:
The Q wave is typically ≥ 0.04 seconds (one small box wide) or ≥ 0.03 seconds in some guidelines. old mi ecg
An "old myocardial infarction" (MI) on an ECG indicates a past heart attack where damaged heart muscle has healed into scar tissue, which alters the electrical signals detected by the ECG, often leaving behind a "pathological Q-wave." While sometimes associated with a "silent MI"—common in diabetics, the elderly, and women—identifying this scar is crucial for long-term cardiac care, risk management, and determining appropriate medication. If you want a (e
return { "old_mi_suspected": mi_found, "affected_leads": mi_leads, "note": "Pathological Q waves suggest prior inferior MI. Clinical correlation required." } Clinical correlation required
def detect_old_mi_ecg(ecg_leads): """ Simple rule-based old MI detection (educational only). Checks for pathological Q waves in inferior leads (II, III, aVF). """ # Assuming ecg_leads is a dict with lead names and lists of sample values # Pathological Q wave: duration > 0.04 sec and amplitude > 0.1 mV mi_found = False mi_leads = []