Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-05T10:48:09.639Z Has data issue: false hasContentIssue false

Smoothness and monotonicity constraints for neural networks using ICEnet

Published online by Cambridge University Press:  01 April 2024

Ronald Richman*
Affiliation:
University of the Witwatersrand, Johannesburg, South Africa Old Mutual Insure, Johannesburg, South Africa
Mario V. Wüthrich
Affiliation:
RiskLab, Department of Mathematics, ETH Zurich, Zürich, Switzerland
*
Corresponding author: Ronald Richman; Email: ronaldrichman@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Deep neural networks have become an important tool for use in actuarial tasks, due to the significant gains in accuracy provided by these techniques compared to traditional methods, but also due to the close connection of these models to the generalized linear models (GLMs) currently used in industry. Although constraining GLM parameters relating to insurance risk factors to be smooth or exhibit monotonicity is trivial, methods to incorporate such constraints into deep neural networks have not yet been developed. This is a barrier for the adoption of neural networks in insurance practice since actuaries often impose these constraints for commercial or statistical reasons. In this work, we present a novel method for enforcing constraints within deep neural network models, and we show how these models can be trained. Moreover, we provide example applications using real-world datasets. We call our proposed method ICEnet to emphasize the close link of our proposal to the individual conditional expectation model interpretability technique.

Information

Type
Original Research Paper
Copyright
© The Author(s), 2024. Published by Cambridge University Press on behalf of Institute and Faculty of Actuaries
Figure 0

Figure 1 Diagram explaining the ICEnet. The same neural network $\Psi _W$ is used to produce both the predictions from the model, as well as to create predictions based on pseudo-data. These latter predictions are constrained, ensuring that the outputs of the ICEnet vary smoothly or monotonically with changes in the input variables $\boldsymbol{x}$. In this graph, we are varying variable $x_1$ to produce the ICEnet outputs which are $\Psi _W(\tilde{{\boldsymbol{x}}}^{[1]}(\!\cdot\!))$.

Figure 1

Figure 2 PDPs for each of the components in $\boldsymbol{x}$.

Figure 2

Figure 3 Two-dimensional PDPs for covariates $x_4$ and $x_5$ (left panel, with $x_4$ as the main variable) and $x_5$ and $x_6$ (right panel, with $x_5$ as the main variable). The color of the lines varies by the value of the covariate with which the first variable interacts.

Figure 3

Table 1. Smoothing and monotonicity constraints applied within the ICEnet for the simulated data

Figure 4

Table 2. MSE loss for the FCN and the ICEnet, training, and testing losses

Figure 5

Figure 4 PDPs for each of the variables in $\boldsymbol{x}$, test set only. Red lines are the true PDPs from Equation (4.1), green lines are PDPs from the FCN (unsmoothed) and blue lines are PDPs from the ICEnet (smoothed). Note that the scale of the $y$-axis varies between each panel. $x$-axis shows ordinal values of the pseudo-data on which the PDP is evaluated.

Figure 6

Figure 5 ICE plots of the output of the FCN and the ICEnet for $3$ instances in the test set chosen to be the least monotonic based on the monotonicity score evaluated for each instance in the test set on the outputs of the FCN. Note that the smoothed model is the ICEnet and unsmoothed model is the FCN. $x$-axis shows ordinal values of the pseudo-data on which the ICE is evaluated.

Figure 7

Figure 6 ICE plots of the output of the FCN and the ICEnet for instance $1240$ in the test set among the least smooth based on the smoothness score evaluated for each instance in the test set on the outputs of the FCN. Note that the smoothed model is the ICEnet and unsmoothed model is the FCN. $x$-axis shows ordinal values of the pseudo-data on which the ICE is evaluated.

Figure 8

Table 3. MSE loss for the FCN and the ICEnet, training, and testing losses, constraint for variable $x_3$ set to $100$

Figure 9

Figure 7 PDPs for variable $x_3$, test set only. Blue lines are the PDP from the FCN (unsmoothed) and red line is the PDP from the modified ICEnet (smoothed). The constraint for variable $x_3$ was set to $100$. $x$-axis shows ordinal values of the pseudo-data on which the PDP is evaluated.

Figure 10

Table 4. Number of records, total exposure, and observed claims frequency in the French MTPL dataset, split into training and testing sets

Figure 11

Figure 8 Empirical claims frequency (top panel) and observed exposures (bottom panel) in the French MTPL dataset for each of the Bonus-Malus, Density, Driver Age, Vehicle Age and Vehicle Power covariates (univariate analysis only), training set only. Note that the $y$-scales for each variable are not comparable.

Figure 12

Table 5. Smoothing and monotonicity constraints applied within the ICEnet

Figure 13

Table 6. Poisson deviance loss for the FCN and the ICEnet, training, and testing losses. For multiple runs, the average and standard deviation (in parentheses) are reported

Figure 14

Table 7. Poisson deviance loss for the ICEnet, training, and testing sets. For multiple runs, the average and standard deviation (in parentheses) are reported. Constraints are varied as described in the relevant column

Figure 15

Figure 9 PDPs for each of the Bonus-Malus, Density, Driver Age, Vehicle Age, and Vehicle Power fields shown in separate panels, test set only. Blue lines are PDPs from the FCNs (unsmoothed), and red lines are PDPs from the ICEnet (smoothed). Bold lines relate to the PDPs from the first of 10 runs; the lighter lines relate to the remaining runs. Note that the scale of the $y$-axis varies between each panel. $x$-axis shows ordinal values of the pseudo-data on which the PDP is evaluated.

Figure 16

Figure 10 Density plots of the difference between the monotonicity and smoothness components of the ICEnet loss function (3.4) (differences are shown on the $x$-axis) evaluated for each observation in the test set.

Figure 17

Figure 11 ICE plots of the output of the FCN and the ICEnet for two instances chosen to be among the least monotonic based on the monotonicity score evaluated for each instance in the test set on the outputs of the FCN. Note that the smoothed model is the ICEnet and unsmoothed model is the FCN. $x$-axis shows ordinal values of the pseudo-data on which the ICE is evaluated.

Figure 18

Figure 12 ICE plots of the output of the FCN and the ICEnet for two instances chosen to be among the least smooth based on the smoothness score evaluated for each instance in the test set on the outputs of the FCN. Note that the smoothed model is the ICEnet and unsmoothed model is the FCN. $x$-axis shows ordinal values of the pseudo-data on which the ICE is evaluated.

Figure 19

Table 8. Poisson deviance loss for the ICEnet, training, validation, and testing sets. The magnitude of the constraints is varied as described in the first column; “meta-model” denotes the results of the meta-model with no constraints applied

Figure 20

Figure 13 PDPs of the meta-model and ICEnets with the penalty parameters varied from $10^{-5}$ to $10^5$. The PDPs of the meta-model are in black and the PDP of the optimal model – with smoothing parameters set equal to $1$ – based on the validation set is shown in red. $x$-axis shows ordinal values of the pseudo-data on which the PDP is evaluated.

Figure 21

Table 9. Smoothing and monotonicity constraints applied within the local ICEnet

Figure 22

Table 10. Poisson deviance loss for an FCN and the local ICEnet, training, and testing sets. For multiple runs, the average and standard deviation (in parentheses) are reported

Supplementary material: File

Richman and Wüthrich supplementary material

Richman and Wüthrich supplementary material
Download Richman and Wüthrich supplementary material(File)
File 344.5 KB