Our approach to research

ClerQ's research agenda is driven by a clear mission: transforming African healthcare by building technology that works on hardware frontline clinics afford, on connectivity they rely on, and in the languages clinicians and patients speak daily. Starting from Tanzania's frontline realities, we tackle the hardest operational constraints first.

We publish what we can, open-source what's useful, and share what we learn. Not because openness is fashionable, but because the problems we're working on exist in dozens of countries with similar constraints, and no single team is going to solve them alone.

All research below is conducted in collaboration with Nama Labs, our research partner.

Sema

Structured bilingual clinical NLP

The problem

Modern language models are overwhelmingly trained on English-language data. When you need a model that can reason about clinical scenarios in Swahili, you have two standard options: fine-tune a large model on Swahili clinical data (expensive, data-scarce, and too large to run on a phone), or translate Swahili input to English, process it, and translate back (lossy, slow, and introduces translation errors that are invisible to the end user and dangerous in a clinical context).

Neither option works when your deployment target is a budget Android phone with no connectivity in a dispensary that sees 80 patients a day.

The approach

Sema provides offline semantic anchoring for low-resource languages. Sema anchors clinical Swahili locally on device. Implemented in high-performance Rust with zero runtime dependencies, Sema resolves surface Swahili words to lemmas, parts of speech, English glosses, and derivational roots in microseconds from a compact 1.8 MB lexicon directly on the phone.

This powers ClerQ across all its operational flavours:

ClerQ CDS Mobile

Runs completely offline on budget Android phones without network signal. Over 19,700 lemmas and morphology affix tables resolve complex verb conjugations instantly.

Lucy AI Clinical Assistant

Enables the double-pass architecture: Swahili symptoms anchor to clinical concepts, the reasoning model evaluates in English, and results render via verified bilingual clinical templates.

STG 2026 Protocol Indexing

Stripping Swahili inflectional prefixes and suffixes before indexing turns national Standard Treatment Guidelines into near-instant, deterministic search hits.

Current release: v0.2

With v0.2, Sema moves beyond forward word lookup into deterministic back-pass synthesis and verification. Rather than relying on a language model to generate free-form Swahili prose, Sema v0.2 compiles structured grammatical intents (subject and object concords across noun classes C1–C18, tense-aspect-mood markers, negation, and vowel harmony) into surface Swahili verbs in roughly one microsecond. Every synthesized form passes through a forward self-consistency gate to prevent negation flips, while dictionary term shielding locks drug names and numeric dosages behind opaque tokens so clinical facts cannot be altered in transit.

Sema morphological linguistic notes and STG clinical guidelines

Rafiki

Edge-native digital twin training framework

The problem

Most AI systems are trained in datacenters on large, centralized datasets, then deployed to environments that look nothing like the training data. In healthcare, this gap is dangerous: a model trained on hospital data from Nairobi or London will behave unpredictably when deployed in a dispensary in Mtwara with different disease prevalence, different drug availability, and different clinical workflows.

The approach

Rafiki is a digital twin training framework designed for edge-native systems. Rafiki enables models to learn directly from the specific environment they serve. It creates a digital twin of the local clinical context: disease patterns, available resources, and workflow rhythms, using that twin to continuously refine system performance without sending patient data across networks.

All computation stays on-device. All data stays local. The digital twin evolves directly alongside facility operational practices.

Status

Rafiki is in active development. The framework architecture is established and we're working on validation across different facility types. This is early-stage work, we're transparent about that, but the direction is clear and the collaboration with Nama Labs continues to be productive.

Rafiki edge digital twin field validation with Tanzanian clinicians
Hakiki

Declarative guideline verification and clinical Model Context Protocol

The problem

Clinical AI systems often embed diagnostic and treatment rules directly in complex neural weights or opaque codebases. When national guidelines (like Tanzania's Standard Treatment Guidelines, STG 2026, and NEMLIT) change, updating black-box models requires expensive retraining and introduces unpredictable behavioral shifts. Furthermore, external regulators and health authorities cannot inspect how a conclusion was reached line-by-line against statutory protocols.

The approach

Hakiki completely decouples clinical rule logic from application software. Every symptom weight, threshold, and contraindication is encoded as declarative, versioned data mapped verbatim to page and paragraph citations of Tanzania's STG 2026. Hakiki's confidence scoring uses deterministic bar-crossing ratios: clinical severity saturates immediately upon encountering red-flag criteria established by national pediatric and adult guidelines.

Additionally, Hakiki exposes a clinical Model Context Protocol (MCP) server. External AI agents (such as Claude, Cursor, or custom IDEs) can query Tanzania's STG rules directly through an auditable protocol layer that proposes candidate updates for human medical expert sign-off, decoupling who can reason over national guidelines from who built the original application.

Status

Hakiki is currently request-only for research partners, regulatory bodies, and clinical collaborators. It is the internal validation harness for Lucy's underlying reasoning rules.

What's next

Our research roadmap is guided by clinical need, not by what's publishable. We're working on expanding ClerQ's coverage across more clinical domains within the STG, improving Lucy's reasoning on complex multi-condition presentations, and building validation frameworks that can measure real-world clinical impact, not just benchmark accuracy.

If you conduct research in edge AI, low-resource NLP, clinical informatics, or health systems strengthening and seek field collaborations, connect with our research team.

See partnership opportunities