Skip to main content

Disease scope

We currently support two diseases

Malaria and tuberculosis: models that estimate future case numbers, which you can test in the browser or through the API.

Malaria

Monthly surveillance for each district. Models estimate confirmed cases for an age and sex group from the case numbers of recent months, and can also use outside factors such as rainfall and temperature.

Typical inputs

  • Past months: district and case counts
  • Outside factors: rainfall, temperature, vegetation
  • One value per month

Targets

  • Confirmed cases by age and sex group
  • District totals

Available models

All malaria models โ†’

Open a model to see what it needs and test it with your own numbers.

Malaria surveillance visualization

Quick API examples

Each model needs different values. Fetch its ready-made example, send it back, then change the numbers. Replace <model> with a name from the list.

# 1. Save a ready-made example request
curl -s "https://comp-api.ocular-project.com/models/<model>/example?op=forecast" \
  | python3 -c "import json,sys; print(json.dumps(json.load(sys.stdin)['requests'][0]))" \
  > request.json

# 2. Send it
curl -s -X POST "https://comp-api.ocular-project.com/forecast/<model>" \
  -H "Content-Type: application/json" -d @request.json

Model types

Machine-learning (e.g. XGBoost) and statistical (e.g. Prophet) models. Forecasts use past values and optional outside factors such as rainfall.

API endpoints

/predict/<model>, /forecast/<model>, /evaluate/<model>, depending on what each model supports.

Data governance

Only send aggregated, de-identified data (for example monthly district totals), never patient details. Results support planning and surveillance, not decisions about individual patients.