Skip to content
HasanAI
Log in Sign up
Playground Series 2026 / Predicting Student Health Risk
NLP Healthcare 2026

Predicting Student Health Risk

Kaggle
3355 teams
Balanced Accuracy Score
Swag
Ended July 31, 2026
View on Kaggle

Playground Series - Season 6 Episode 7

What the winners did

Compared from 2 published write-ups Β· AI summary, check the originals

Lessons to take to your next competition All lessons & trends β†’

  1. Always trust rigorous OOF validation over Public Leaderboard fluctuations, especially when dealing with minority classes where binomial noise is high.
  2. For Balanced Accuracy, explicitly aligning the decision rule or probability scaling with the class priors (e.g., dividing by prior or using class multipliers) is more effective than standard probability calibration.
  3. Simple, robust ensemble methods (like linear blending or averaging independent initializations) often outperform complex nonlinear meta-learners which risk overfitting.
  4. Exact-value target encoding fitted strictly within training folds is a powerful feature engineering technique for both tabular and neural network models.
  5. Avoid adding complex features or models (like kNN density or full PLR) if they do not provide a clear, statistically significant improvement on OOF metrics.

Shared by the top teams (the baseline)

  • Using FT-Transformer as a key model component kava1, Ricky
  • Applying exact-value target encoding for feature engineering kava1, Ricky
  • Prioritizing Out-of-Fold (OOF) validation over Public Leaderboard scores to avoid overfitting to noise kava1, Ricky

What set each team apart (the edge)

  • kava1: Optimized an 18-model ensemble using SLSQP for weights and Nelder-Mead for class multipliers to directly maximize Balanced Accuracy on OOF predictions.
  • Ricky: Used a simple decision rule of argmax(probability / class_prior) to align predictions with the balanced accuracy metric without complex post-processing.
  • Ricky: Relied on a single model architecture (FT-Transformer) with 4 independent initializations per fold rather than a large multi-algorithm ensemble.

Side by side

The same questions answered for each published solution
TeamValidationModelsEnsembling & post-processingDidn't work
#2 kava1
Optimized 18-model ensemble weights via SLSQP and tuned class multipliers via Nelder-Mead to maximize Balanced Accuracy on OOF predictions.
  • Used full 690k OOF predictions for optimization to avoid Public LB noise.
  • Public LB fluctuations identified as binomial noise on minority classes.
  • No test labels or leaderboard feedback used for tuning.
  • 18 base predictors including LightGBM, XGBoost, CatBoost, FT-Transformer, RealMLP, and HGBC.
  • Specific contributors included FT-Transformer-v2, XGB OvR, and Unweighted LightGBM.
  • SLSQP optimization of class-specific weights across 18 predictors (54 parameters).
  • Direct linear blending used instead of nonlinear meta-learning to prevent overfitting.
  • FT-Transformer received largest weights (71.81% Class 0, 62.45% Class 1, 50.28% Class 2).
  • XGB OvR provided complementary strength (45.59% Class 2, 28.19% Class 1).
  • Nonlinear meta-learning stage rejected due to risk of overfitting out-of-fold metadata.
  • Chasing Public LB scores rejected in favor of OOF optimization.
#4 Ricky
Ricky's 4th place solution for predicting student health risk relied on aligning the decision rule with the balanced accuracy metric, using FT-Transformers with exact-value target encoding, and trusting robust cross-validation over public leaderboard fluctuations.
  • 7-fold stratified CV with shuffle and seed 42 was used.
  • Fold-local exact-value target encoding was fitted inside the training fold, with training-fold encodings generated out of fold.
  • Fixed epochs were used instead of selecting the best checkpoint on the same fold used for scoring to keep validation honest.
  • Public leaderboard (0.95094, rank 414) was a smoke test, but honest OOF (0.95063) was trusted over leaderboard noise, leading to private rank 4 (0.95084).
  • FT-Transformer was the main model, with 4 independently initialized members inside each fold.
  • Transformer used 2 blocks, hidden size 128, 8 heads.
  • Numeric embedding used PLR-lite, 24 frequencies, sigma 0.1.
  • An in-fold ensemble of 4 independently initialized FT-Transformer members was used.
  • Final decision rule: `argmax(probability / class_prior)` to align with balanced accuracy.
  • Full PLR instead of PLR-lite (effectively noise, +0.00003 OOF balanced accuracy).
  • Small-sample screening for exact-value TE (misleading due to sparse statistics).
  • Adding medium-resolution numeric TE on top of exact TE (-0.00004 OOF balanced accuracy).
  • kNN density features (+0.00014 OOF balanced accuracy, below threshold).

Solution cards

Structured notes from each write-up β€” the original is linked
πŸ₯ˆ kava1 0.95085 Optimized 18-model ensemble weights via SLSQP and tuned class multipliers via Nelder-Mead to maximize Balanced Accuracy on OOF predictions.

Validation

  • Used full 690k OOF predictions for optimization to avoid Public LB noise.
  • Public LB fluctuations identified as binomial noise on minority classes.
  • No test labels or leaderboard feedback used for tuning.

Features

  • Referenced shared notebooks involving feature engineering and per-value target encoding.

Models

  • 18 base predictors including LightGBM, XGBoost, CatBoost, FT-Transformer, RealMLP, and HGBC.
  • Specific contributors included FT-Transformer-v2, XGB OvR, and Unweighted LightGBM.

Training tricks

  • Minimized OOF LogLoss directly during weight optimization.
  • Applied class-wise probability multipliers to address class imbalance.
  • Optimized multipliers: C0 0.124044, C1 1.499826, C2 1.250181.

Ensembling & post-processing

  • SLSQP optimization of class-specific weights across 18 predictors (54 parameters).
  • Direct linear blending used instead of nonlinear meta-learning to prevent overfitting.
  • FT-Transformer received largest weights (71.81% Class 0, 62.45% Class 1, 50.28% Class 2).
  • XGB OvR provided complementary strength (45.59% Class 2, 28.19% Class 1).
  • Renormalized blended scores to form valid probability distributions before LogLoss evaluation.

What didn't work

  • Nonlinear meta-learning stage rejected due to risk of overfitting out-of-fold metadata.
  • Chasing Public LB scores rejected in favor of OOF optimization.
Read the full write-up on Kaggle β†’
#4 Ricky 0.95084 Ricky's 4th place solution for predicting student health risk relied on aligning the decision rule with the balanced accuracy metric, using FT-Transformers with exact-value target encoding, and trusting robust cross-validation over public leaderboard fluctuations.

Validation

  • 7-fold stratified CV with shuffle and seed 42 was used.
  • Fold-local exact-value target encoding was fitted inside the training fold, with training-fold encodings generated out of fold.
  • Fixed epochs were used instead of selecting the best checkpoint on the same fold used for scoring to keep validation honest.
  • Public leaderboard (0.95094, rank 414) was a smoke test, but honest OOF (0.95063) was trusted over leaderboard noise, leading to private rank 4 (0.95084).

Data & preprocessing

  • 690,088 training rows, 295,753 test rows, 13 features, and three target classes.
  • Target classes: 'at-risk' (85.87%), 'fit' (5.77%), 'unhealthy' (8.36%).

Features

  • 13 raw features were used.
  • 39 multiclass exact-value target-encoding features were created (13 columns Γ— 3 classes), for both categorical and numeric columns.
  • Target encoding for each outer fold was fitted only on that fold's training rows to prevent leakage.

Models

  • FT-Transformer was the main model, with 4 independently initialized members inside each fold.
  • Transformer used 2 blocks, hidden size 128, 8 heads.
  • Numeric embedding used PLR-lite, 24 frequencies, sigma 0.1.

Training tricks

  • Trained with ordinary multiclass loss and no class weights.
  • 16 fixed epochs, batch size 4096.
  • Optimizer: AdamW, learning rate 0.001, cosine schedule.
  • Regularization: weight decay 1e-5, no label smoothing.
  • No early stopping was used.

Ensembling & post-processing

  • An in-fold ensemble of 4 independently initialized FT-Transformer members was used.
  • Final decision rule: `argmax(probability / class_prior)` to align with balanced accuracy.

What didn't work

  • Full PLR instead of PLR-lite (effectively noise, +0.00003 OOF balanced accuracy).
  • Small-sample screening for exact-value TE (misleading due to sparse statistics).
  • Adding medium-resolution numeric TE on top of exact TE (-0.00004 OOF balanced accuracy).
  • kNN density features (+0.00014 OOF balanced accuracy, below threshold).
  • RealMLP with exact-value TE (strong OOF at 0.95051, but below FT-Transformer's 0.95063).
  • More complicated blending (no clean OOF evidence it beat the simple incumbent).
Read the full write-up on Kaggle β†’

No public write-up found for: #1 Shantanu Chopra, #3 Biel Escola Rodrigo, #5 xllenxu, #6 bplyc15, #7 Sergey Belov, #8 Jordi Corbilla, #9 (γƒŽβ—‘ <), #10 Laksamada.

Most Used Techniques

Aggregated across all top solutions
Blending 2
Cross Validation 2
Ensemble 2
Stacking 2
Transformer 2
XGBoost 2
CatBoost 1
Feature Engineering 1
Hyperparameter Tuning 1
LightGBM 1
PyTorch 1
Neural Network 1

Podium Solutions

Gold, Silver, and Bronze winning approaches
πŸ₯‡

Shantanu Chopra

Score 0.95085
πŸ₯ˆ

kava1

Score 0.95085
Blending CatBoost Cross Validation Ensemble Feature Engineering Hyperparameter Tuning LightGBM PyTorch Stacking Transformer XGBoost

Key idea: Optimized 18-model ensemble weights via SLSQP and tuned class multipliers via Nelder-Mead to maximize Balanced Accuracy on OOF predictions.

See the solution card β†’
πŸ₯‰

Biel Escola Rodrigo

Score 0.95084

Full Solutions Leaderboard

10 solutions archived
Rank Team Score Techniques Write-up
πŸ₯‡
Shantanu Chopra
0.95085
β€”
β€”
πŸ₯ˆ
kava1
0.95085
Blending CatBoost Cross Validation Ensemble Feature Engineering Hyperparameter Tuning LightGBM PyTorch Stacking Transformer XGBoost
πŸ₯‰
Biel Escola Rodrigo
0.95084
β€”
β€”
#4
Ricky
0.95084
Blending Cross Validation Ensemble Neural Network Stacking Transformer XGBoost
#5
xllenxu
0.95084
β€”
β€”
#6
bplyc15
0.95084
β€”
β€”
#7
Sergey Belov
0.95084
β€”
β€”
#8
Jordi Corbilla
0.95084
β€”
β€”
#9
(γƒŽβ—‘ <)
0.95081
β€”
β€”
#10
Laksamada
0.95081
β€”
β€”