The Machine Learning Model and Information

Documenting how the ML model is implemented and trained.

- 2 minute read

The current WPI Definition requires all the previously listed parameters to be present to produce a valid WPI score. The scarce parameters from the unmonitored water bodies are insufficient for our WPI Definition. This section proposes a Machine Learning (ML) model trained on a labeled set of results from our WPI definition. For the model, we chose XGBoost, a scalable tree boosting algorithm that that is efficient in spotting nonlinear patterns between data and the result. Additionally, we build a confidence metric for the model that indicates the 90% confidence of the model in the estimated score being between [x,y][x, y]. The larger the gap between xx and yy is, the more limited information the supplied parameters provided. This contributes in understanding when and when not to trust the model with its estimations.

Since our WPI definition is deterministic we can synthetically generate the data required for the models training. It is generated in four sections: the high ranges, mid ranges, low ranges, and lowest ranges, with each range approaching the ideal parameter values more. The high range has 15001500 samples, the mid and low ranges has 20002000 samples each, and the lowest range has 10001000 samples, with a total of 65006500 samples.

This data is then processed to create scenarios where some parameter values are hidden. This is applied to every combination of missing parameters, excluding the combination where all parameters are hidden, for a total of 255255 unique combinations.

This training data is then fed into the XGBoost Regressor model with 300300 estimators, 0.050.05 learning rate, and a max depth of 44. The calibration process is then executed which handles the confidence metric based on what parameter is missing.