← Experience

Experience · Djamal TOE

Three problems, and how each one was worked through

Each experience is told in short animated scenes: the situation, the question, what made it hard, the choices, the work, the checks and the result, limits included.

Academic projects, told the same way →

Story 1 · Clinical development

From Phase II evidence to a probability of success

Servier France
Data Scientist (Biostatistics) intern
Onco Late Phase statistics team
May to September 2026 · Saclay

Story 1 · Servier
Servier · Onco Late Phase · 2026

In oncology, most drugs never reach patients.

3.4%of cancer drug programmes went from Phase I to approval, 2000 to 2015Wong, Siah and Lo, Biostatistics, 2019
42%of all drug development programmes in that dataset were in oncologysame study
The stake

Phase III is long and very expensive, and the evidence before it is thin.

Historical datainternal and external studies
→
Bayesian frameworkevery source of uncertainty
→
An applicationno maths or code needed

Few small studies, and they disagree. What chance does the Phase III have? That is the PoS.

Goal: a Bayesian framework on internal and external data, and an app that hides the maths.

Defining success

Success can mean many things. I focused on statistical success.

$$\mathrm{PoS} \;=\; \Pr\big(\,\hat{\theta}_{P3} < \nu \;\big|\; \text{data}\,\big)$$

The chance that the effect estimated by the Phase III, for example a hazard ratio, falls below the success threshold ν.

Framework 1 · analytical, after Kundu

A Brownian motion model gives closed-form formulas.

exact and instant
hard to add external dataone layer of uncertainty at a timefixed assumptions on the effect

These limits motivated a second, flexible framework.

Framework 2 · flexible, after Jiang et al. (2025)

Hedge the bet with a mixture prior.

Combine a skeptical and an optimistic scenario, and model several levels of uncertainty. illustrative

Randomised or not

A fair comparison needs a control group.

Randomised trial: chance decides who gets the drug, so the gap between arms is the treatment effect. ✓

Only the treated group exists. Against what do we compare it?

The missing control group is borrowed: it becomes external studies.

But several external sources each tell their own story, and they disagree. Which one, or which ones, should we trust?

A second hierarchical layer aggregates them, weighting each source by how much it disagrees with the others.

illustrative
Two more questions

Do external studies reflect today, and our own studies?

External evidenceMAP prior from the external studies
Systematic bias δ
Temporal drift · older studies, older standard of care
Geographic gap · other countries, other practices
The shift δ · estimated, not ignored
Comparability with internal studiescommensurability matrix: how much to borrow from each external study

Other times, other places: a systematic bias δ separates external studies from today.

How comparable is each external study with ours? The commensurability matrix sets how much to borrow.

The hierarchical model

Borrowing from past trials to inform the next one.

One true effect μ_Pop, never observed directly.

τ_P2: the historical studies differ from one another.

τ_P3: extrapolation uncertainty from past evidence to the future Phase III.

The data update μ_Pop, which in turn updates θ_P3: information from previous trials informs the future one and gives the PoS.

The answer

Not one number: a full distribution carrying 7 levels of uncertainty.

  1. 1Sampling noise within each study
  2. 2Heterogeneity between historical trials
  3. 3Disagreement between external sources
  4. 4Systematic bias: time and geography
  5. 5Comparability with internal studies
  6. 6Prior on the effect: skeptical vs optimistic
  7. 7Extrapolation from Phase II to Phase III
The tool

An R Shiny app: no maths, no code for the user.

Inputs
phase2_data.csv✓
BinaryContinuousTime to event
Mixture weight ω
Borrowing
Threshold νHR < 0.80
Results
PoS64 %
HR0.74
DecisionGO

About 2 chances in 3 that the Phase III meets its threshold.

illustrative values

Convergence
R-hat1.00
ESS2,400

0 divergent transitions

Report
Generate the report
PDFWord
  1. Enter the endpoint, data and assumptions.
  2. Read PoS, HR or OR, decision, interpretation.
  3. Check that the computation converged.
  4. Generate the full report.
Unit testedlayered, tested architecture
Validated by simulationchecked on simulated scenarios
In productionon Servier's internal server
Shared and questioned

Three audiences

Onco Late Phase teamServier Global Biometrics, several countriesSFdS Journées de la Biostatistique, CNAM Paris, 5 Nov. 2026
The full model

Framework II, everything in one place.

$$\begin{aligned}&\textbf{Phase II studies} && \hat{\theta}_{P2,k}\mid\theta_{P2,k}\sim\mathcal{N}\big(\theta_{P2,k},\,se_{P2,k}^2\big),\quad \theta_{P2,k}\mid\mu_{\text{Pop}},\tau_{P2}\sim\mathcal{N}\big(\mu_{\text{Pop}},\,\tau_{P2}^2\big)\\&\textbf{Future Phase III} && \theta_{P3}\mid\mu_{\text{Pop}},\tau_{P3}\sim\mathcal{N}\big(\mu_{\text{Pop}},\,\tau_{P3}^2\big),\quad \tau_{P2}\sim\mathcal{HN}(0,z_{P2}^2),\ \tau_{P3}\sim\mathcal{HN}(0,z_{P3}^2)\\&\textbf{Mixture prior} && \mu_{\text{Pop}}\sim\omega\,\mathcal{N}\big(\delta_P,\,\sigma_{\text{opt}}^2\big)+(1-\omega)\,\mathcal{N}\big(0,\,\sigma_{\text{scept}}^2\big)\\&\textbf{External SOC (MAP)} && y_{SOC,j}\mid\theta_{SOC,j},b_j\sim\mathcal{N}\big(\theta_{SOC,j}+b_j,\,\sigma_{SOC,j}^2\big),\quad \theta_{SOC,j}\sim\mathcal{N}\big(\mu,\,\tau_{SOC}^2\big),\quad b\sim\mathcal{N}\big(m_b,\,\sigma_b^2\big)\\&\textbf{Commensurability} && \theta_{SOC,new,k}=\theta_{SOC,new}+\sqrt{\tau_{SOC}^2\,\tfrac{J-J_k}{J_k}}\;u_{comm,k},\quad J_k=\textstyle\sum_{j} I_{kj},\quad u_{comm,k}\sim\mathcal{N}(0,1)\\&\textbf{Synthetic Phase II effect} && \hat{\theta}^{\,\mathrm{synth}}_{P2,k}=\theta_{SOC,new,k}-\hat{\eta}_{E,k}\\&\textbf{Probability of success} && \hat{\theta}_{P3}\mid\theta_{P3}\sim\mathcal{N}\big(\theta_{P3},\,SE_{P3}^2\big),\quad \mathrm{PoS}=\Pr\big(\hat{\theta}_{P3}<\nu\mid\text{historical data}\big)\approx\frac{1}{S}\sum_{s=1}^{S}\mathbb{I}\big(\hat{\theta}^{(s)}_{P3}<\nu\big)\end{aligned}$$

Notation of my internship report. Framework II after Jiang et al. (2025), on the log hazard ratio scale. Fitted in Stan (NUTS, non-centred parameterisation).

Press Play, tap the sides or use the arrow keys. ♪ Music adds a calm background track. Study data are confidential: curves and proportions are illustrative.

Tech stack

  • Rmodelling and analysis
  • R Shinyinteractive decision-support app
  • StanMCMC, HMC and NUTS sampling
  • Bayesian hierarchical modelsMAP priors, borrowing across studies
  • Unit testslayered, tested app architecture
  • HTMLapp interface
  • CSSapp styling
  • JavaScriptapp interactions
  • Brownian motion framework (Kundu)closed-form PoS
  • Mixture and MAP priorsrobust borrowing, commensurability
  • Servier internal serverproduction deployment

Story 2 · Public health

Did community health workers lighten the load on health centres?

Centre MURAZ (INSP Burkina Faso)
Biostatistics intern · REACT2 project
August 2023 to April 2024 · Bobo-Dioulasso
Study data: June 2021 to Dec. 2023

Story 2 · Centre MURAZ
Centre MURAZ · Burkina Faso · 2024

Malaria is the first reason people see a doctor in Burkina Faso.

282 Mmalaria cases worldwide in 2024WHO, World Malaria Report 2025
11African countries carry about two thirds of cases and deaths. Burkina Faso is one of themsame report
The programme · REACT2

Health workers who test and treat inside the village.

wave 1wave 2wave 3positions anonymised

Burkina Faso: Centre MURAZ is in Bobo-Dioulasso.

Zoom on the Diébougou district: 18 villages far from health centres.

Did fewer cases reach the health centre once a village had its own health workers?

The trap

Malaria rises with the rains, whatever happens.

A simple before and after would mix the programme with the season.

The design · stepped wedge

Villages joined in 3 random waves.

  1. Phase 0 · Jun. to Nov. 2021: all 18 villages are controls.
  2. Phase 1 · wave 1 gets health workers. 12 villages are still controls at the same dates.
  3. Phase 2 · wave 2 joins. 6 villages remain controls.
  4. Phase 3 · every village is covered. Each one is compared with its own past.
The data

From survey exports to one clean table.

3 datasetshealth-centre surveys, Kobo and Excel
→
Cleaned in Rdates fixed, variables typed, gaps reported
→
17 villages2,295 village-weeks analysed

One village with incomplete records was left out after the gaps were reported.

The raw numbers

Median cases per week, 18 villages.

But phase 1 (December to May) is mostly dry season: raw numbers mix programme and calendar.

Choice 1 · the count model

Poisson was overdispersed: dispersion 1.53, p < 0.001.

NB1
$$\mathrm{Var}(Y)=\mu(1+\alpha)$$
proportional to the mean
NB2 · retained
$$\mathrm{Var}(Y)=\mu+\mu^2/\theta$$
faster than the mean

Negative-binomial mixed models compared by AICc (lower is better): NB2 kept.

Choice 2 · the weather

Eleven weather variables that mostly say the same thing.

11satellite weather variables
→
2 axesPCA, 74.3% of the information
→
3 kepttemperature, humidity, wind
The final model

A negative-binomial (NB2) mixed model.

weekly counts repeated in each village are correlatedvillages differ in their baseline level

The village random effect uv accounts for both.

$$\begin{aligned} Y_{vt} &\sim \mathrm{NB2}(\mu_{vt},\theta) \\ \log \mu_{vt} &= \log(\mathrm{pop}_v) + \beta_0 + \beta_1\,\mathrm{REACT2}_{vt} + \beta_2\,t + \beta_3\,\mathrm{REACT2}_{vt}\,t \\ &\quad + \beta_4\,\mathrm{Dry}_t + \beta_5\,\mathrm{REACT2}_{vt}\,\mathrm{Dry}_t + \boldsymbol{\gamma}^{\top}\mathbf{w}_{vt} + u_v \\ u_v &\sim \mathcal{N}(0,\sigma_u^2) \end{aligned}$$

v: village, t: week, pop: population (offset), w: temperature, humidity, wind. Fitted with glmmTMB. Estimated σu = 0.60.

The checks

Does the model hold?

1,181 vs 1,183weeks with zero cases, observed vs predicted
OKsimulated counts match the observed ones
OKvillage effects close to normal
time terms are correlated: read them with care
The result
≈ 42%

fewer malaria cases reached health centres once a village was covered.

Rate ratio 0.57, 95% interval 0.42 to 0.78, everything else held equal.

The full picture

Every effect in the model.

The benefit fades slightly over time and is weaker in the dry season. It measures cases seen in health centres, not transmission or deaths.

Press Play, tap the sides or use the arrow keys. ♪ Music adds a calm background track. All figures come from the internship report.

Tech stack

  • Rcleaning, models, figures
  • glmmTMBnegative-binomial mixed models
  • KoboToolboxhealth-centre survey exports
  • Excelsource datasets
  • NASA POWERsatellite weather data
  • PCAweather variable reduction
  • GADMadministrative maps

Story 3 · Event operations

What separates accepted and refused volunteer applications?

Les Vieilles Charrues
Data Science intern
Summer 2025 · Carhaix-Plouguer
Detailed results are confidential

Story 3 · Les Vieilles Charrues
Les Vieilles Charrues · Summer 2025

One of France's largest music festivals runs on volunteers.

264,000festivalgoers over four days in July 2025Gendarmerie nationale, 2025
7,000+volunteers mobilised by the festivalVieilles Charrues CSR press kit, 2024

Every year, many people apply. Some are accepted, some are not.

All charts in this story are fictitious illustrations: we are bound to keep the data confidential. Only the AUC (0.68) is a real result.

The question

Which factors go with an application being accepted?

Step 1 · the data

First, make the applications usable.

duplicatesmissing answersanswers to recodenew variables

I automated the cleaning, so it can be rerun every year.

Step 2 · the profiles

Who applies? One map of all the answers.

originlanguagesvolunteeringdecision

A multiple correspondence analysis: answers often given together sit close. Here, experienced and local applicants sit near “accepted”. fictitious

Step 2 · the applicants

Each dot is one application.

The two groups overlap: the profile alone does not decide everything. fictitious

Step 3 · the model

A logistic regression turns a profile into a probability of acceptance.

$$\log\frac{p}{1-p} = \beta_0 + \beta_1 x_1 + \dots + \beta_k x_k,\qquad \mathrm{OR}_j = e^{\beta_j}$$

p: probability that the application is accepted; x: answers of the applicant; an odds ratio above 1 goes with acceptance.

Check 1 · calibration

Are the probabilities right on average?

Hosmer-Lemeshow test: points close to the diagonal mean well calibrated. fictitious

Check 2 · discrimination

Does it rank accepted above refused?

The ROC curve. The area under it, the AUC, is the real result; the curve shape is fictitious.

The result

In about 68 pairs out of 100, the accepted application is ranked first.

Take one accepted and one refused application at random. A coin toss would get 50.

The lesson

Good to understand the selection. Not to automate it.

Part of the decision is simply not in the application data. Detailed results stay confidential.

Press Play, tap the sides or use the arrow keys. ♪ Music adds a calm background track. All illustrations are fictitious: we are bound to keep the data confidential. Only the AUC (0.68) is real.

Tech stack

  • Automated preprocessingduplicates, missing values, recoding
  • MCAmultiple correspondence analysis
  • Logistic regressionprobability of acceptance
  • Hosmer-Lemeshowcalibration check
  • ROC and AUCdiscrimination check