Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.
Mobile

Video-Observed TB Treatment App with Offline Upload for Patients and Treatment Supporters

Build an Android app that lets a tuberculosis patient record a short video of taking each day's medicine, stores it encrypted, uploads it when there is signal and lets a treatment supporter review doses and follow up on missed ones. Daily in-person observation is hard for patients who work, live far from a clinic or have to travel. The project follows the model of a published randomised trial and focuses on making it work on cheap phones and poor connections.

Difficulty

Intermediate

A small team, or one strong student willing to learn something new.
Effort

1 semester · 2 to 3 students

Deliverables

7 to ship

4 optional extras

Suggested stack

KotlinJetpack ComposeCameraXWorkManagerRoom databaseFirebase or a FastAPI backend
A suggestion, not a requirement. Swap anything for what you already know.

What you should ship

  • A patient app that records a short dose video with on-screen guidance and a reminder at the patient's chosen time
  • On-device compression to a small file size and encrypted local storage
  • A background upload queue that retries on poor connections and never loses or duplicates a dose
  • A treatment supporter view to review videos, mark doses as observed, missed or unclear, and message the patient
  • Automatic deletion of videos after review, with only the dose record kept
  • Adherence summaries per patient for the supervising clinician
  • A usability and reliability test with volunteers on low-cost phones and weak networks

If you have time left

  • Side effect reporting with photos and urgent flags
  • A simple on-device check that a face and a hand are in the video before upload
  • Urdu voice reminders and instructions
  • An SMS fallback for confirming doses when uploads fail for days

The problem: six months of daily pills

Tuberculosis is curable, but treatment means taking medicine every day for months. Missing doses lets the disease come back and can lead to drug resistance, which is far harder to treat. Pakistan has one of the larger TB burdens in the world, and its programme, like many others, has relied on directly observed treatment: a health worker or treatment supporter watches the patient take each dose.

In practice, daily observation is hard. Patients work long hours, live far from clinics or travel. Supporters cannot visit everyone every day. Doses go unobserved, and nobody knows which ones were actually taken. Supporters spend much of their time travelling rather than supporting, and patients who need help with side effects or motivation may not be noticed until they stop treatment altogether.

What already exists and the gap

  • Directly observed treatment is the standard approach in TB programmes, with in-person observation.
  • Commercial video-observed therapy platforms are used by health departments in several countries, with apps for patients and review dashboards.
  • Medication reminder apps remind patients but cannot show that a dose was taken.

The gap is an open video-observed treatment app designed for the conditions many patients in Pakistan face: low-cost Android phones with little storage, patchy mobile data, shared phones and privacy concerns, with a review workflow simple enough for busy treatment supporters.

Inspiration

"Smartphone-enabled video-observed versus directly observed treatment for tuberculosis: a multicentre, analyst-blinded, randomised, controlled superiority trial" by Alistair Story and colleagues, published in The Lancet in 2019, compared smartphone video observation with in-person observation and found video observation improved observed adherence. Your project takes the same model of care and engineers it for low-cost phones and poor connections.

What you build

  • Patients get a reminder, record a short video of taking their medicine and see that it has been sent, or that it will send when signal returns.
  • Treatment supporters review the day's videos in minutes, mark each dose and contact patients who missed one.
  • Clinicians see adherence over time for each patient and are alerted to repeated missed doses.

The patient side must be very simple: one big button, clear progress, and nothing lost if the phone dies mid-upload. Many patients will use a shared or borrowed phone, so the app needs a PIN and must not leave videos in the phone's gallery.

The technically interesting part

  • Reliable offline upload. A dose video recorded in a village with no signal must reach the server days later, exactly once, even if the phone restarts. WorkManager, a durable queue and idempotent uploads are the core engineering.
  • Small files. Compress video on the phone to a size that cheap data packages can carry, while keeping it clear enough to see the pill being taken. Measure the trade-off.
  • Privacy. Health videos are sensitive. Encrypt at rest on the phone and on the server, keep them out of the gallery, and delete them after review.
  • Review speed. Supporters may review dozens of videos a day. Design the review screen for speed: autoplay, keyboard or one-tap decisions, and a queue sorted by risk.

How to evaluate it

  • Upload reliability: in tests with simulated and real poor connections and phone restarts, share of doses that arrived exactly once.
  • File size and clarity: average size per video and reviewers' ability to confirm the dose.
  • Review time: seconds per video for a supporter.
  • Usability: a short trial with volunteers on low-cost phones, recording problems and missed reminders.

Suggested plan

  • Weeks 1 to 3: read the Lancet trial, talk to someone in a TB programme about the workflow, design screens.
  • Weeks 4 to 7: recording, compression, encrypted storage and the upload queue.
  • Weeks 8 to 10: supporter review screen, messaging and summaries.
  • Weeks 11 to 13: reliability tests and volunteer trial.
  • Weeks 14 to 15: report and demo.

Path to a product

TB programmes, NGOs and private providers running treatment support need tools that fit their patients' phones and connections, and the same app works for other long treatments such as hepatitis C. An open app with paid hosting and support for programmes is realistic. The project shows serious Android engineering for real users, a strong portfolio piece.

Scope warning

Test only with volunteers acting as patients unless you have a clinical partner and ethics approval; never collect real patient videos in a student project without both. Do not build automatic dose verification in the main scope; a human reviews every video. Keep the app to Android.

Learn what you need on Sefism

Get help with this idea

The risk is an upload queue that loses doses on real networks. Tauseef can help you design the offline flow, the reliability tests and the conversation with a TB programme. If you are new here, create a free account first.

Ideas and guidance, not finished projects

These are project ideas and scoping guidance, published free for students to use as a starting point. I do not build, write, or sell final-year projects, and I do not complete coursework for anyone. Take an idea, make it yours, and build it.

Not sure this one fits you?

I help students pick an idea that matches their skills and their deadline, then scope it down until it is finishable. Guidance only, never done for you.

Discuss this idea
Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.