Paza Whisper Large-v3-Turbo — Kikuyu Health Domain Customization

Model Description

This model is a parameter-efficient fine-tuned adaptation of Microsoft Research Africa's Paza Whisper Large-v3-Turbo. It has been adapted specifically to capture clinical healthcare terminology, diagnostic symptoms, and regional pronunciation variations in the Kikuyu (Gĩkũyũ) language.

Due to the scarcity of high-fidelity clinical speech corpuses for African low-resource languages, this checkpoint leverages LoRA (Low-Rank Adaptation) and 8-bit quantization primitives to lock the underlying multilingual alignment while restructuring the token mapping layers for high-stakes medical domain performance.

  • Developed by: Njeri Kahoro
  • Base Architecture: OpenAI Whisper (large-v3-turbo)
  • Multilingual Foundation: Microsoft Paza ASR Framework
  • Language Supported: Kikuyu (Gĩkũyũ)
  • Domain Focus: Medical & Public Health Documentation (ASR)
  • Adaptation Methodology: PEFT / LoRA (Quantization Sampled via bitsandbytes)

Intended Uses & Limitations

Intended Applications

  • Clinical Dictation Assistants: Automating hands-free, localized text generation for healthcare workers speaking to regional patient groups.
  • Public Health Research: Transcribing regional health service recordings and community surveys to track localized diagnostic patterns.
  • Medical Education Systems: Translating localized vocal descriptions of clinical symptoms into standard medical record logs.

Primary Limitations

  • Dialect Shifting: Performance levels may drop when encountering extreme dialect shifts or specific sub-regional idiomatic phrases outside the primary geographic dataset footprint.
  • Acoustic Noise Constraints: Highly sensitive to low-fidelity hardware, overlapping background chatter, or rapid code-switching environments where users swap instantly into English or Swahili mid-sentence.
  • High-Stakes Validation: This tool is strictly a documentation assistant. All output transcripts must be manually audited and signed off by a qualified medical practitioner before entering any patient record database.

Training and Evaluation Pipeline

Training Dataset

  • Volume: ~5.66 Hours of authenticated health domain speech strings.
  • Audio Profile: Native .webm containers containing high-fidelity mono tracks downsampled on the fly to 16,000 Hz.
  • Vocabulary Targets: Local vocal descriptions detailing illness patterns, medication routines, and clinical imagery inquiries (e.g., Tarĩria mbica ĩno).

Training Hyperparameters

  • Optimization Strategy: PEFT LoRA (r=32, lora_alpha=64)
  • Quantization Base Layer: 8-bit precision configurations
  • Target Modules: q_proj, v_proj
  • Learning Settings: 1e-4 using the AdamW optimizer footprint
  • Batch Scaling: per_device_train_batch_size=8 with gradient_accumulation_steps=2 (Effective batch size = 16)
  • Optimization Horizon: 400 total training updates (~7.5 epochs)

Performance History (Validation Curve Tracks)

Evaluations were calculated out-of-core using structural instances of the jiwer package to guarantee tracking alignment with no network phone-home steps.

Step Training Loss Validation Loss Word Error Rate (WER %) Character Error Rate (CER %)
100 0.4230 0.3645 58.97% 20.02%
200 0.3585 0.3423 57.72% 18.91%
300 0.3377 0.3351 57.39% 18.99%
400 0.3243 0.3322 57.54% 18.85%

Performance Dashboards

Training Performance Curves


Operational Execution Template

To execute prediction loops using this model inside an isolated GPU container stack, copy this Python verification pipeline block:

import os
import torch
import numpy as np
import av
from transformers import WhisperProcessor, WhisperForConditionalGeneration
from peft import PeftModel, PeftConfig

# 1. Download configuration architectures from the Hub
peft_model_id = "NjeriKahoro/paza-whisper-large-v3-turbo-health"
config = PeftConfig.from_pretrained(peft_model_id)

processor = WhisperProcessor.from_pretrained(config.base_model_name_or_path, language="Swahili", task="transcribe")
base_model = WhisperForConditionalGeneration.from_pretrained(config.base_model_name_or_path, load_in_8bit=True, device_map="auto")

# 2. Attach the fine-tuned healthcare adapters
model = PeftModel.from_pretrained(base_model, peft_model_id)

def transcribe_clinical_audio(file_path):
    # Decode compressed .webm format into clear arrays
    container = av.open(file_path)
    audio_stream = container.streams.audio
    resampler = av.AudioResampler(format='flt', layout='mono', rate=16000)

    audio_chunks = []
    for frame in container.decode(audio_stream):
        for resampled_frame in resampler.resample(frame):
            audio_chunks.append(resampled_frame.to_ndarray().flatten())
    container.close()

    audio_data = np.concatenate(audio_chunks)

    # Process features and generate transcripts
    inputs = processor(audio_data, sampling_rate=16000, return_tensors="pt").input_features.to(model.device)
    with torch.no_grad():
        predicted_ids = model.generate(inputs)

    return processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]

# Usage instance
# print(transcribe_clinical_audio("patient_symptom_recording.webm"))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for NjeriKahoro/paza-whisper-large-v3-turbo-health

Evaluation results

  • Word Error Rate (WER) on Custom Medical Swahili-Kikuyu Audio Dataset
    self-reported
    57.540
  • Character Error Rate (CER) on Custom Medical Swahili-Kikuyu Audio Dataset
    self-reported
    18.850