
Data/Research
Consultancy for the Independent Evaluation of the FarajaMH Generative AI Screening Model Before and After Fine-Tuning
Job details
Contract Type
Workplace type
On-site
Description
Role Overview
The FarajaMH consortium is building a bilingual (English and Swahili), audio-capable generative AI model to screen for depression, anxiety, and psychosis in primary care and community settings, fine-tuned via federated LoRA (bf16) combining federated SFT and centralized DPO. Open to an individual consultant or small team, this engagement designs, deploys on-premises, and executes an independent, reproducible evaluation before and after fine-tuning to guide base-model selection, per-round governance gates, and the Track A model freeze ahead of Work Package 4 (WP4) clinical trial validation.
Key Responsibilities
- Protocol, On-Prem Platform & Test Security: Finalize and SHA-256 hash-pin the evaluation protocol before any model runs; deploy and document the containerized evaluation platform on APHRC servers; quality-check and hash-pin Testing Set v1.0 (B1–B5, MCQs, public benchmarks) and the 500–1,000-item clinician-adjudicated Golden Set (ensuring zero training leakage); calibrate judge models per language variety (accepted at Krippendorff’s alpha ≥ 0.67).
- Pre-Fine-Tuning (Baseline) Evaluation: Evaluate candidate open-weight models across hard gates (native audio, Swahili smoke test, single-node LoRA dry run, no critical safety failure) and nine test areas (Swahili depth, idioms of distress, screening accuracy, clinical reasoning, empathy/cultural fit, safety, audio understanding, knowledge, practicality); rank candidates using 95% bootstrap CIs and DeLong tests; re-test finalists after APHRC’s LoRA probe for tri-committee sign-off.
- Post-Fine-Tuning, Safety & Fairness Evaluation: Implement automated per-round Golden Set gates (PROMOTE, RETRAIN, ROLLBACK logged to audit trail); evaluate SFT and DPO adapters across waves for classification, generative metrics (BLEU, ROUGE, BERTScore), and catastrophic forgetting across registers and modalities; conduct single- and multi-turn red-teaming (VERA-MH style crisis chats, HarmBench, XSTest in English/Swahili) and subgroup fairness audits (flagging any subgroup AUROC gap greater than 0.05).
- Human-Centred Evaluation: Run blinded, randomized, trauma-informed rating sessions (pre- and post-fine-tuning) in participants' preferred languages with psychiatrists/psychologists, people with lived experience (LEAC), caregivers, Community Health Promoters, and native speakers (two raters per reply plus a third adjudicator); feed missed idioms to WP2 and failure patterns into DPO data.
- Track A Freeze & Handover: Assess readiness against the four freeze criteria—Golden Set AUROC ≥ 0.78 (depression, anxiety, psychosis), subgroup AUROC gap ≤ 0.05, adversarial safety refusal rate ≥ 95%, and committee sign-off; prepare the governance evidence dossier; hand over the reusable evaluation harness, model card, and reproducibility package, and train the APHRC team.
Deliverables & Timeline
- D1 (29 Jan 2027): Inception report, detailed work plan, SHA-256 hash-pinned evaluation protocol, and data protection plan.
- D2 (26 Feb 2027): On-premises platform commissioning report (container, judge models, rating tool, reproducibility and speech smoke tests).
- D3 (19 Mar 2027): Frozen Testing Set v1.0, Golden Set coverage validation report, and per-language judge calibration report.
- D4 (16 Apr 2027): Pre-fine-tuning baseline evaluation report (gate results, nine-area scorecard with 95% CIs, rank-stability, safety, and blinded human ratings).
- D5 (30 Apr 2027): Base-model decision pack (LoRA probe re-test of finalists, final scores, recommendation, risks, and audit entry).
- D6 (21 May 2027): Automated per-round Golden Set gate live on APHRC platform with validation and decision logs.
- D7 (30 Jun 2027): Wave 1 post-fine-tuning evaluation report (SFT and DPO vs. baseline by condition, site, country, and catastrophic forgetting checks).
- D8 (30 Jul 2027): Safety, fairness, and post-fine-tuning human-centred evaluation report (red-teaming, escalation pathways, over-refusal, subgroup audit).
- D9 (13 Aug 2027): Track A freeze readiness dossier and committee evidence pack (or gap analysis and remediation plan).
- D10 (31 Aug 2027): Final consolidated report, model card, reproducibility package, harness documentation, APHRC team training, and compliance summary.
Data Residency & Compliance
- Strict On-Premises Execution: All software, models, judges, and data must run exclusively on APHRC servers (Nairobi) and the CUHAS node (Mwanza). Cloud services, rented GPUs, external APIs, external judges, and personal devices are strictly prohibited.
- Ethics, Safety & IP: Must comply with Kenya’s Data Protection Act (2019), Tanzania’s Personal Data Protection Act (2022), and APHRC safeguarding/ethics policies (canary strings retained; NDA and ethics training mandatory). Critical safety failures must be clinician-confirmed and reported to the PI and Ethics Committee within 48 hours. All IP and the evaluation harness vest in APHRC.
Qualifications & Application Process
- Qualifications: PhD (or Master’s with substantial equivalent experience) in Machine Learning, Computer Science, Biostatistics, Health Data Science, or related field; 5+ years in ML with proven LLM/speech evaluation experience (lm-evaluation-harness, vLLM, Hugging Face); health/mental health AI evaluation and red-teaming experience; strong statistical/fairness skills; on-premises containerized GPU deployment experience; human-centred evaluation design; and knowledge of Kenya/Tanzania data protection laws. (Swahili, audio evaluation, federated learning, and peer-reviewed AI evaluation publications are added advantages.)
- Budget & Submission: APHRC provides GPUs, storage, venues, clinicians, and raters—exclude these and any cloud/API costs. Submit a technical proposal (maximum 10 pages), a USD per-deliverable financial proposal (showing days, daily rates, and team roles for D1–D10), CVs, at least one sample evaluation report/publication, and two references to consultancies@aphrc.org (cc procurement@aphrc.org) with the subject "FarajaMH Generative AI— Consultancy" by 10 December 2026.
Start hiring with Fuzu
Recruit better talent faster - on your own or with our support.
Explore recruitment platformJob search tips from Fuzu
Selected articles on cover letters, CV structure, and interview preparation.

