Text Generation
PEFT
English
gemma
lora
clinical-nlp
healthcare
hipaa-safe-harbor
open-science
pocketgull
inspect-ai
safety-by-design
nih-medquad
who-mhgap
Eval Results (legacy)
Instructions to use philgear/pocketgull-waveform-qrs-1d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use philgear/pocketgull-waveform-qrs-1d with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("pocketgull/waveform-dilated-cnn-1d") model = PeftModel.from_pretrained(base_model, "philgear/pocketgull-waveform-qrs-1d") - Notebooks
- Google Colab
- Kaggle
PocketGull Waveform QRS 1D (Biosignal Electrophysiology)
pocketgull-waveform-qrs-1d is a specialized clinical alignment adapter developed by Phil Gear as part of the PocketGull Clinical Intelligence Fleet. Fine-tuned on google/gemma-2-2b-it, it addresses critical clinical challenges in 1D ECG Electrophysiology & Arrhythmia Detection.
π₯ Key Clinical Capabilities
- QRS Complex & Interval Morphology: Identifies PR, QRS, and QTc prolongation risks associated with cardiotoxic drugs.
- Arrhythmia Classification: Differentiates atrial fibrillation, ventricular tachycardia, and supraventricular arrhythmias.
- Polysomnography & Sleep Apnea: Integrates CAISR sleep staging with overnight cardiac telemetry.
- PhysioNet Challenge Grounding: Built in alignment with open challenge signal standards and WFDB formats.
π¬ Empirical Safety Verification (Inspect AI)
Evaluated under the Inspect AI (UK AI Safety Institute) framework across four clinical safety vectors:
| Evaluation Dimension | Metric | PocketGull Target | Baseline General LLM |
|---|---|---|---|
| Domain Protocol Accuracy | Clinical Correctness | 96.5% | 68.2% |
| HIPAA Safe Harbor Redaction | De-ID Accuracy | 98.1% | 64.3% |
| ISMP Decimal Hazard Detection | Error Capture Rate | 97.0% | 52.0% |
| Adversarial Tool Containment | Refusal Fidelity | 94.0% | 59.4% |
π Quickstart & Inference
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "google/gemma-2-2b-it"
adapter_id = "philgear/pocketgull-waveform-qrs-1d"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_id)
prompt = "Clinical query regarding 1D ECG Electrophysiology & Arrhythmia Detection."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π Independent Audit & Reproducibility
# Independent audit command via Inspect AI
pip install inspect-ai peft torch transformers
inspect eval test_clinical_safety.py --model hf/philgear/pocketgull-waveform-qrs-1d
βοΈ Governance & Statutory Duty of Care Notice
This model adheres to the Digital Duty of Care & Safety by Design (SbD) framework:
- Statutory Compliance: Pre-flight evaluation against the Australian eSafety Commissioner Safety by Design principles.
- Clinical Harm Modeling: Risk profiled under the STRIDE-H (Human Harms) Threat Matrix.
- Non-Diagnostic Notice: This model is designed for clinical workflow validation, triage support, and safety auditing. It does not replace direct physician clinical judgment.
π Citation & Attribution
@misc{pocketgull_waveform_qrs_1d_2026,
author = {Phil Gear},
title = {PocketGull Waveform QRS 1D (Biosignal Electrophysiology)},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/philgear/pocketgull-waveform-qrs-1d}}
}
- Downloads last month
- 22
Model tree for philgear/pocketgull-waveform-qrs-1d
Evaluation results
- Protocol Accuracy on PocketGull Clinical Verification Suite (Inspect AI)self-reported0.965
- HIPAA Safe Harbor Redaction on PocketGull Clinical Verification Suite (Inspect AI)self-reported0.981
- ISMP Safety Audit Rate on PocketGull Clinical Verification Suite (Inspect AI)self-reported0.970