Inspiration
Nigeria accounts for about 29% of the world's maternal deaths, and many of them are preventable. The gaps we set out to close are missed antenatal and postnatal visits, danger signs that are recognised late, and paper records that get lost between clinics. We surveyed pregnant and recently pregnant women. 87.5% already track their weight, blood pressure and baby's movements, but on paper or from memory, with nothing to tell them when a reading is dangerous. They asked for reminders, vaccination tracking, and information they could trust.
What it does
Natal Diary is a pregnancy record that travels with the mother:
- A personal antenatal plan built from her due date using the WHO 8-contact schedule. It shows the next visit and what happens at it, missed-visit alerts and tetanus (Td) vaccine reminders.
- A 30-second daily check-in (BP, weight, temperature, kick count, symptoms) that runs through a danger-sign triage engine. Red means go to a hospital now, amber means call your clinic today, green means keep logging. Every result shows the exact reasons.
- "Ask Natal Diary", an assistant that answers only from a source-cited library of 28 entries. Emergency words such as "bleeding" or "not moving" always trigger a go-to-hospital warning first. When it isn't confident, it says so instead of guessing.
- One shareable record (plan, check-ins and visit notes) that she can show any clinic.
- Baby mode after delivery, with Nigeria's NPHCDA immunisation schedule and postnatal check reminders.
Everything stays on the phone, and the app works offline after the first load.
How we built it
- A dependency-free progressive web app (HTML, CSS, JavaScript) with a service worker for offline use, localStorage for on-device data and GitHub Pages hosting.
- Triage engine: a transparent rule system that encodes WHO antenatal guidance and the Nigerian FMoH danger-sign list. Its thresholds include BP of 140/90 or above, BP of 160/110 or above, pre-eclampsia combinations after 20 weeks, fever, and fewer than 10 kicks in 2 hours after 28 weeks.
- Assistant: TF-IDF retrieval over the library, with a Nigerian-English synonym map ("agbo", "fefol", "pee"), a confidence threshold and an emergency safety layer.
- Evaluation harness (
node eval/evaluate.js): 40 labelled clinical vignettes for triage and 30 paraphrased questions for retrieval.
Evaluation
- Triage (metric: exact urgency level on 40 labelled vignettes): 40/40 correct, and 19/19 emergencies flagged red (100% sensitivity).
- Assistant (metric: top-1 and top-3 retrieval accuracy on 30 paraphrased questions): 93.3% top-1 and 96.7% top-3, up from a 73.3% top-1 baseline after one round of error analysis.
- Limitations: the vignettes check that the rules match the guidelines; they are not clinical validation. The retrieval set was also used for error analysis, so a held-out set of real mothers' questions comes next. The library has not yet had a midwife review.
Sustainable Development Goal
Natal Diary addresses SDG 3, Good Health and Well-being, in particular target 3.1 (reducing maternal mortality) and target 3.2 (ending preventable newborn deaths), by helping mothers keep antenatal and postnatal visits and act early on danger signs. It is a prototype, and its health impact has not yet been measured.
Who benefits / who could be harmed
- Who benefits: pregnant women who miss visits or can't tell which symptoms are urgent, and midwives who need follow-up.
- Risks: false reassurance from a "green" result, over-reliance on an app instead of a clinic, and privacy of very sensitive data.
- Mitigations: conservative thresholds so the app flags more rather than less; every screen says "not a diagnosis" and any red flag routes her to a human; data stays on the device, designed with the Nigeria Data Protection Act 2023 in mind; a midwife review of all content before any pilot.
Challenges we ran into
- Choosing safety over flashiness. We deliberately did not use a generative chatbot, because every pregnancy answer has to be traceable to a source and work offline on low-end phones.
- Turning clinical guidance into thresholds that are conservative but not alarming.
- Matching how Nigerian mothers actually ask questions.
Accomplishments that we're proud of
- A working, offline, evaluated prototype informed by survey evidence.
- 100% sensitivity on emergency vignettes.
- An assistant that refuses to guess.
What we learned
How to turn the WHO antenatal model into software, why evaluation and stated limitations matter in health tech, and how talking to mothers first changes what you build.
What's next for Natal Diary
- Midwife review of the library and triage thresholds.
- Usability tests with 10 mothers and 2 midwives.
- Flutter Android app with encrypted storage, SMS reminders and Hausa, Yoruba and Igbo.
- A clinic dashboard.
- A pilot in 2 Abuja clinics, measuring on-time antenatal visit completion.
AI usage disclosure
The app itself uses classical retrieval (TF-IDF) and a rule-based clinical decision engine; it does not call a generative model. The project was AI-assisted: an AI coding assistant (Claude) was used on the prototype code, the evaluation harness and test cases, the pitch deck, the demo video (which uses a computer-generated voice) and this description. The team supplied the problem statement, the product direction, and the survey and interviews with pregnant and recently pregnant women.
Development disclosure
Done before the build: the problem statement, name, product research and the user survey and interviews. Built on 22 November 2026: all code, the evaluation, the pitch deck and the demo video.
Team
Team SEN322 Natal Diary. Entry team: Medugu Wali, Joan Azike, Adekola and Mutma, from an 11-member Software Engineering class group at Nile University of Nigeria, Abuja. Joan, Adekola and Mutma are not on Devpost, so Medugu Wali submits and represents the team.
Built With
- css3
- github
- html5
- javascript
- localstorage
- node.js
- pwa
- service-worker
- tf-idf
