Post a jobLog in

Consultancy for the Independent Evaluation of the FarajaMH Generative AI Screening Model Before and After Fine-Tuning

Nairobi

Key facts

How you apply
By email — we send it for you
Seniority
Mid Level
Work mode
On-site

Free account · No card required

About this role

Consultancy for the Independent Evaluation of the FarajaMH Generative AI Screening Model Before and After Fine-Tuning

  • Job Type Full Time
  • Qualification MBA/MSc/MA , PhD/Fellowship
  • Experience 5 years
  • Location Nairobi
  • Job Field Data, Business Analysis and AI , ICT / Computer

Purpose and Objectives

To design, deploy on APHRC premises and run an independent, reproducible evaluation of the FarajaMH GenAI screening model before fine-tuning (base-model baseline and selection) and after fine-tuning (SFT, DPO and safety-layered versions), producing the evidence required for the Track A model freeze and handover to WP4 by 31 August 2027.

The objectives are to:

  • Establish a locked, hash-pinned evaluation protocol and onboard on an existing on-premises evaluation platform at APHRC.
  • Produce a pre-fine-tuning baseline report for all candidate open-weight models.
  • Measure the effect of fine-tuning on screening accuracy, clinical reasoning, Swahili and code-mixed language understanding, idioms of distress, audio understanding, empathy, cultural fit, safety and fairness, against the pre-fine-tuning baseline.
  • Involve clinicians, people with lived experience and caregivers as blinded evaluators of model(s) behaviour.
  • Assess readiness against the Track A freeze criteria and hand over a reusable evaluation harness to the APHRC team.

Duties / Responsibilities

Scope of work

Inception and Evaluation Protocol

  • Review the work package three (WP3) Technical Methodology, the work package (WP3
  • Model Evaluation Strategy, the FarajaMH study protocols and the work package four (WP4) design and agree the evaluation plan with the principal investigator (PI)and Work package three (WP3) team.
  • Finalise and lock the evaluation protocol before any model is run. The protocol is hash-pinned (SHA-256) and not changed once results are seen.
  • Map each evaluation measure to the governance decision it informs base-model selection, the per-round PROMOTE, RETRAIN or ROLLBACK gate, and the Track A freeze trigger.

On-Premises Evaluation Platform

  • Onboard on the existing evaluation platform or install, configure and document their evaluation platform on APHRC servers.

Evaluation Data Banks and Test Security

  • Work with clinicians, the WP2 team, linguists and Lived

Experience

  • Advisory Committee (LEAC)members to complete, quality-check and freeze the Testing Set v1.0: core cases (B1), language (B2), idioms of distress (B3), safety (B4), audio (B5), the FarajaMH MCQ set and the public benchmarks.

  • Validate the Golden Set (500 to 1,000 clinician-adjudicated examples) for coverage of all conditions, languages, sites and WP4 demographic strata, and confirm that it never enters training.

  • Calibrate the judge models against clinician ratings for each language variety (accepted at Krippendorf’s alpha ≥ 0.67; otherwise, all replies in that variety go to human raters).

  • Pre-Finetuning (Baseline) Evaluation

  • Evaluate every candidate model, as released by its developer, under identical conditions: hard gates (native audio, Swahili smoke test, LoRA dry run on one node, no critical safety failure) and the nine test areas (Swahili depth, idioms of distress, screening accuracy, clinical reasoning, empathy and cultural fit, safety, audio understanding, knowledge, practicality).

  • Score and rank the candidates with 95% bootstrap confidence intervals, DeLong tests for paired AUROC differences and a rank-stability analysis; shortlist the finalists.

  • Re-test the finalists after the APHRC team's short LoRA fine-tuning probe and prepare the base-model decision pack for tri-committee sign-off.

  • Post-Fine-Tuning Evaluation

  • Implement and validate the automated per-round Golden Set gate (per-condition AUROC, sensitivity, specificity, subgroup AUROC and safety refusal rate), with every PROMOTE, RETRAIN or ROLLBACK decision written to the audit trail.

  • At the end of each data wave within the contract period, re-run the full locked evaluation on the merged SFT adapter and on the DPO-aligned adapter, and report the change from the pre-fine-tuning baseline for every area.

  • Report classification performance (accuracy, precision, recall, F1-score, AUROC, calibration, sensitivity at fixed specificity) by condition, and generative quality (BLEU, ROUGE, BERTScore against clinician reference responses), by site and by country, including the held-out external test set.

  • Check for catastrophic forgetting across waves, registers (CLINICAL_NOTE), (CONVERSATION), (LONGITUDINAL) and modalities (text, audio, paired).

  • Evaluate the safety layer: single-turn and multi-turn red-teaming (including VERA-MH style crisis conversations), HarmBench and XSTest in English and Swahili, refusal scripts, content filters, the suicide-risk escalation pathway and over-refusal.

  • Audit fairness across language variety, country, site, sex and age band, and flag any subgroup AUROCgap above 0.05.

  • Human-Centred Evaluation

  • Design and run blinded, randomised rating sessions, before and after fine-tuning, with psychiatrists and clinical psychologists (reasoning and safety), people with lived experience, caregivers and Community Health Promoters (empathy, cultural fit, stigma and acceptability), and native speakers from each country (language and register).

  • Use two raters per reply with a third to resolve disagreements and report inter-rater agreement.

  • Run sessions in a trauma-informed way, in the participants' preferred language, with safeguarding and support arrangements agreed with the LEAC and the PI.

  • Report findings back to the team: idioms the model misses go to WP2, and failure patterns inform DPO preference data.

  • Track A Freeze Readiness and Handover

  • Assess the fine-tuned model against the four freeze criteria: Golden Set AUROC ≥ 0.78 for depression, anxiety and psychosis; no subgroup AUROC gap above 0.05; adversarial safety refusal rate ≥ 95%; and documented committee sign-off.

  • Prepare the evidence dossier for the Ethics and AI Evaluation Committee, the Data Governance and Protection Committee and the LEAC chairs and record the hash-pinned audit entry for the frozen artefact.

  • Hand over the evaluation harness, documentation and model card to APHRC, and train the APHRC team to run it for Track B and post-WP4 evaluation.

  • Timelines

  • Pre-Fine-Tuning Phase (baseline and base-model selection): January to April 2027 (D1 to D5).

  • Post-Fine-Tuning Phase (federated fine-tuning, DPO and safety layer): May to August 2027 (D6 to D10).

  • If the Scientific Advisory Board extends WP3 because the freeze trigger has not been met, the contract may be extended by up to two months by written agreement.

  • Budget and Payment Schedule

APHRC invites the consultant to propose the fee for each deliverable. The financial proposal must:

  • Complete the fee column of the table in Section six (6), in USD, for each of D1 to D10, with the total at the end.

  • Show, for each deliverable, the number of days of effort, the daily rate and the team members involved.

  • APHRC will provide the GPU servers, storage, network access, evaluation platform, meeting venues, clinicians, LEAC members, caregivers and other raters in line with APHRC guidelines.

  • These costs should not be included in the consultant's fees. No cloud computing, external API or software subscription costs will be accepted.

  • Payment is made per deliverable, within 30 days of the PI's written acceptance of that deliverable and receipt of an invoice. A deliverable that does not meet the agreed specification will be returned with comments and paid once accepted

  • Intellectual property, ethics, confidentiality, data protection and Data Residency requirements

  • All data, test items, model artefacts, code and project-related materials remain the property of APHRC. The consultant shall not disclose, publish or share any portion of the data, test items or findings without prior written consent from APHRC. Intellectual property generated from this consultancy, including the evaluation harness, will be vested in APHRC. Authorship of any resulting publication follows APHRC's authorship policy.

  • All evaluation platforms, models, data and results must remain on APHRC-controlled infrastructure. The consultant must ensure that: –

  • All evaluation software, models, judge models and rating tools are installed and run on APHRC servers in Nairobi (and, for Tanza

Your next opportunity starts here

Prepare, apply, track, interview and get hired — all from one platform, with AI in your corner.

Download app

Or sponsor Premium for someone who's job hunting →