JU

JananthanUthayakumar

I build and evaluate machine learning, causal inference, and deep learning models, with a focus on rigorous experimentation, transparent results, and understanding where different approaches fall short.

Studying
MSc in Engineering, Data Science, HSLU
Based in
Zurich area

Where my captioning model looks while it writes

Attention weights of my Show, Attend and Tell model on a Flickr8k test image. Red marks the image regions the decoder weighted most for each word. Select a word.

Projects

Five projects with full code on GitHub. Every README lists the limitations next to the results.

Causal inference

Right heart catheterization and ICU mortality

What was the estimated effect of right-heart catheterization on 30-day mortality when performed on the first day in the ICU?

After adjusting for 50 day-one covariates, the causal-forest AIPW estimate was +3.5 percentage points for 30-day mortality (95% CI 1.0 to 6.1), compared with a raw difference of 7.4 points.

Effect on 30-day mortality, percentage points

Estimator ladder with 95% confidence intervals.

Final estimateOther estimatorsPublished studyRandomized trials, 95% CI
Difference in means7.4 pp
Outcome model6.4 pp
IPW4.2 pp
AIPW, logistic models6.8 pp
AIPW, causal forest3.5 pp
Connors et al. 19964.8 pp
Show all estimates
EstimatorEstimate, ppSE95% CI
Difference in means7.41.34.8 to 9.9
Outcome model6.41.53.5 to 9.3
IPW4.22.4−0.4 to 8.8
AIPW, logistic models6.81.73.3 to 10.2
AIPW, causal forest3.51.31.0 to 6.1
Connors et al. 1996, converted4.80.6 to 9.1
13 RCTs, Shah et al. 2005, converted0.8−2.2 to 4.0

The size depends on the model: the doubly robust estimate with logistic models gives 6.8 pp, and only the causal forest lands inside the interval of the trials. In the linear sensitivity model, a hidden confounder 1.2 times as strong as all recorded diagnosis variables together would close the gap to the trials. The pipeline passes 4 of 6 robustness checks, and the two that fail are reported as such.

Data
SUPPORT study, 5,735 ICU patients, 2,184 with a catheter
Methods
Causal forest, doubly robust AIPW, overlap weights, Cinelli and Hazlett sensitivity analysis
Checks
Placebo treatment, random common cause, semi-synthetic outcome, trimming, nuisance models
  • EconML
  • Causal forest
  • AIPW
  • Overlap weights
  • Sensitivity analysis
Code and README on GitHub

Forecasting

Time-series forecasting pipeline

Monthly mortgage closures in a Swiss online-banking channel, predicted from interest-rate indicators and market factors for capacity planning.

A tuned Ridge model reaches R² 0.764 with an MAE of 3.29 closures per month. XGBoost reaches 0.617, SARIMAX 0.466.

R² by model

Optuna-tuned, expanding-window validation. Best model highlighted.

Ridge regression0.764
Lasso regression0.705
XGBoost0.617
Linear regression0.504
SARIMAX0.466
Show all metrics
ModelR²MAEMAPE
Ridge regression0.7643.2918.88%
Lasso regression0.7053.5721.05%
XGBoost0.6174.1023.52%
Linear regression0.5044.6326.72%
SARIMAX0.4664.9729.24%

Two customer channels turned out to behave differently. Modelling them separately gave more stable forecasts than a more complex single model. SHAP points to the SARON surcharge (lag 1) and the rent-price index (lag 3) as the strongest drivers. A static 80/20 split overstated performance, so the reported numbers use expanding-window validation.

Data
Confidential bank data. The repo ships synthetic data that runs the full pipeline.
Features
Five selection methods compared: Mutual Information, SelectKBest, RFE, Lasso, Random Forest
Tuning
Optuna, interpreted with SHAP and what-if scenarios
  • scikit-learn
  • XGBoost
  • SARIMAX
  • Optuna
  • SHAP
Code and README on GitHub

Causal inference

Smoking cessation and weight gain

How much weight do smokers gain because they quit? A causal ML pipeline on the NHEFS cohort, checked against the published estimate by Hernán and Robins.

The estimated effect of quitting was 3.38 kg of additional weight gain over 11 years (95% CI 2.46 to 4.30). The estimate remained robust across all five reported robustness checks.

Effect on weight change 1971 to 1982, kg

Estimator ladder with 95% confidence intervals.

Final estimateOther estimatorsHernán and Robins, 95% CI
Difference in means2.54 kg
Outcome model3.52 kg
IPW3.44 kg
AIPW, parametric3.26 kg
AIPW, causal forest3.38 kg
Show all estimates
EstimatorEstimate, kgSE95% CI
Difference in means2.540.491.59 to 3.50
Outcome model3.520.492.57 to 4.47
IPW3.440.532.41 to 4.47
AIPW, parametric3.260.512.27 to 4.26
AIPW, causal forest3.380.472.46 to 4.30
Hernán and Robins, published3.42.4 to 4.5

The naive comparison understates the effect by about a quarter, because quitters were older and heavier at baseline. Four adjusted estimators land between 3.26 and 3.52 kg, and IPW gives 3.44 kg, matching the published 3.4 kg. An unmeasured confounder would need about 9 times the strength of age to erase the effect.

Data
NHEFS cohort, 1,566 smokers, 403 of them quit
Methods
Causal forest, IPW, AIPW, DAG with backdoor check, Cinelli and Hazlett sensitivity analysis
  • EconML
  • causallib
  • Causal forest
  • IPW
  • AIPW
Code and README on GitHub

Deep learning

Image captioning on Flickr8k

Five captioning architectures on the same benchmark, from a CNN-LSTM baseline to a Transformer decoder with cross-attention.

Show, Attend and Tell reaches the best BLEU-4 (0.1915). Dot-product attention leads on METEOR (0.3961).

Test results by architecture

Best value per column marked. Lower perplexity is better.

ModelBLEU-1BLEU-4METEORPerplexity
Show and Tell0.59520.18630.387714.71
Show, Attend and Tell0.62060.19150.376716.49
Dot-product attention0.60180.19020.396115.21
GloVe init0.57610.17680.389715.24
Transformer decoder0.57350.18000.387715.27

The attention maps at the top of this page come from the Show, Attend and Tell model.

Attention raised BLEU-4 over the CNN-LSTM baseline (0.1863). The Transformer did not lead on 8,000 images, but it also trained for 20 epochs instead of 40, so the result is not a clean verdict on the architecture. The lowest perplexity (Show and Tell, 14.71) did not produce the best captions.

Data
Flickr8k, about 8,000 images with five reference captions each
Baseline
Pretrained ResNet-18 encoder with an LSTM decoder
Decoding
Greedy and beam search (k = 5)
  • PyTorch
  • CNN-LSTM
  • Attention
  • Transformer
  • BLEU
  • METEOR
Code and README on GitHub

Deep learning

CNN architecture study

Eight controlled image-classification experiments. Each one changes a single factor: depth, hyperparameters, regularization, optimizer or transfer learning.

A pretrained ResNet18 reaches 94.7% validation accuracy when fine-tuned and 94.5% as a feature extractor with only 5,130 trainable parameters. Trained from scratch, the same network reaches 77.7%.

Best validation accuracy

12 epochs per run.

PretrainedFrom scratch
ResNet18, fine-tuned11.2M trainable parameters94.7%
ResNet18, feature extraction5,130 trainable parameters94.5%
ResNet18, from scratch11.2M trainable parameters77.7%
Custom CNN, from scratch305K trainable parameters63.2%
Show all metrics
ModelBest val. accuracyBest val. lossTrainable params
ResNet18, fine-tuned0.94680.198811.2M
ResNet18, feature extraction0.94470.17305,130
ResNet18, from scratch0.77680.763111.2M
Custom CNN, from scratch0.63221.0639305K

The gap comes from the pretrained representations, not from the architecture. Fine-tuning peaked at epoch 7 and then began to overfit, while feature extraction kept the train-validation gap near zero. Adam and RMSprop converged clearly faster than SGD with or without momentum.

Data
Course-internal image dataset. The pipeline also runs on public sets such as CIFAR-10.
Tracking
Weights & Biases, Optuna
  • PyTorch
  • Transfer learning
  • Weights & Biases
  • Optuna
Code and README on GitHub

About

My background combines engineering, automation, and independent data science projects. I trained as a design engineer (Konstrukteur) at Ferag AG and later worked in junior project management at Belimo Automation. I completed my BSc in Digital Engineering at HSLU in 2025.

I am currently pursuing a part-time MSc in Engineering with a focus on Data Science at HSLU, building on my engineering background through projects in machine learning, causal inference, and deep learning.

Education
MSE in Data Science, HSLU · 2026–2029 (expected) · part-time
BSc in Digital Engineering, HSLU · 2023-2025 · part-time
Languages
German and Tamil (native) · English (fluent) · French (A2–B1)

Skills

Tools I have used in the projects above or at work.

Machine learning
scikit-learn, XGBoost, SARIMAX, Optuna, SHAP
Causal inference
Causal forests, IPW, AIPW, overlap weights, sensitivity analysis, EconML, causallib
Deep learning
PyTorch, CNNs, attention, Transformers, transfer learning

Contact

The code for every project on this page is on GitHub.