Abstract
In insurance, proposing an accurate premium that is adjusted to the insured risk profile allows companies to better manage their portfolios and to be more competitive. Machine learning methods have recently been adopted for various improvements in insurance ratemaking, especially in the automobile industry. These models are specifically used to mine potential data information and to build a predictive model for a variable of interest using explanatory variables. In this paper, we aim to provide a pricing method for ratemaking individual healthcare insurance contracts using machine learning algorithms that are applied to a Tunisian healthcare insurance portfolio. We start with a simple Classification and Regression Tree, and we work toward more advanced methods that are Random Forest, Extreme gradient boosting, Support Vector Regression, and Artificial Neural network regression model. The predictive performance of these non-parametric methods is compared with the standard generalized linear model. Our results showed the applicability of machine learning in the healthcare insurance market and that the XGBoost algorithm outperforms the predictive capacity of the classical generalized linear model.
Keywords
Introduction
Determining the right premium for a given insurance policy is one of the most important challenges for insurers. Dealing with this challenge involves putting research into practice by exploiting research advancements in operational contexts. The process of ratemaking healthcare contracts consists mainly of an accurate modelling of the frequency of claims produced by a policyholder as well as their costs. It is important that insurers performed the pricing models used to set premium to insure solvency of insurance companies. In fact, systematic under-pricing would lead to low profitability and possible losses.
In this regard, insurance companies are encouraged to seek more reliable actuarial pricing models to offer the best premium. Therefore, risk assessment and insurance premium determination are among the main challenges for insurers. Pricing in non-life insurance is typically operated within the framework of generalized linear models introduced by Nelder and Wedderburn (1972). With the current upswing of data analytics, the background of the present work lies in the growing advancement made in the research fields related to machine learning methods and their applications. In fact, in the present study we consider these techniques to develop a pricing process for individual healthcare insurance contracts that will be built from both frequency and severity of claims. Five machine learning methods for regression are considered: decision Tree known by CART model, Random Forest (RF), Extreme gradient boosting (XGBoost), support vector regression (SVR), and Artificial Neural Network (ANN).
The proposed approach is applied to a Tunisian Healthcare insurance portfolio and enable us to identify the factors explaining the claims rate and to propose a premium adjusted to the insured risk profile. In the Tunisian market of healthcare insurance, individuals demand complementary healthcare contracts to guarantee higher compensation for medical care. This lets the market today very competitive and makes premium pricing an issue for all insurers who are called upon to identify their consumers and segment their portfolios into classes of homogeneous risk (Blesa et al., 2020). According to specific characteristics, this research tends to find appropriate net premiums for each of the insureds with respect to their risk profile. In this work, we aim to investigate how can the integration of new techniques proceeding from machine learning improve the policyholder tariff over classical generalized linear models. In this sense, the predictive performance of applied machine learning methods is compared with the standard statistical learning model: the GLM. Our results showed that the extreme gradient boosting technique is consistently chosen as the best effective approach for frequency and severity of claim’s modelling; its higher flexibility greatly improves predictive power. It is important to mention that our methodology remains valid for application to any healthcare insurance database with explained and explanatories variables.
This article contributes to the existing literature by developing a complete tariff plan through the application of machine learning techniques for a real-life healthcare insurance portfolio. We propose an accurate ratemaking methodology for healthcare insurance policy. In contrast to the prevailing literature, our work takes a distinct approach by exclusively focusing on predicting both the frequency and the severity of individual health insurance claims. As a result, our study not only provides a tangible and real-world estimation of the individual pure premium in the realm of healthcare insurance but also extends the prior research by emphasizing the predictive accuracy of machine learning models. In particular we investigate how the tree-based pricing models XGBoost and Random Forest, the Support Vector Regression (SVR) and the Neural Network model perform in health care insurance ratemaking. Additionally, we conduct a comparative analysis between these machine learning models and the traditional actuarial approach using GLMs. Our study’s findings have important implications for marketing strategies, such as personalized pricing, which are critical for enhancing customer satisfaction and retention. In fact, when grouping similar risks together, the insurer can assess the risk characteristics of individuals within the same group and determine the appropriate adjusted risk premium based on the expected cost of claims and frequency. This ensures that the proposed prices are both adequate and competitive.
The remainder of this paper is structured as follows: section 2 is a review of previous works. Section 3 details the methodology with a brief theoretical background of GLM, CART, RF, XGBoost, SVR, and ANN regression models. Section 4 describes the dataset used in this study. Section 5 reports and discusses the empirical results of our analysis. Finally, section 6 concludes.
Literature review
The generalized linear models introduced by Nelder and Wedderburn (1972) are a parametric model that requires assuming the form of the conditional distribution of the explained variable as a function of the explanations. McCullagh and Nelder (1989) have pointed out the two main advantages of GLMs techniques. Firstly, these methods allow the deviation from the assumption of normality. Secondly, they allow the linear regression to be related to the dependent variable through a link function. These models have been successfully applied to solve actuarial problems (see Haberman & Renshaw, 1996). Indeed, considering a linear relationship between the variable to be explained and the explanatory variables reduces the ability of these models to capture the non-linear interactions between the loss factors. Additionally, GLMs method do not make it possible to model different effects for the same-named explanatory variable: the same coefficient applied for a continuous variable. Also, these models depend widely on the parametric law that will be specified. These facts can lead to a biased estimate of the insurance tariff (see De Jong & Heller, 2008; Kaas et al., 2008). The statistical machine learning models have the advantages of being non-parametric and nonlinear. Hence, thanks to their nature they are now suitable to address issues of pricing in non-life insurance. Recently, machine learning techniques have acquired increasing popularity in many fields such as genetics, rare disease detection, management, or engineering, but also in insurance field where a great interest is given by the pricing actuaries to these models. In parallel with these developments and around big data and data science methods, new sources of data are emerging and are available to insurers to allow a better knowledge of risk. In this context, teams of computer researchers continued to develop more flexible models, outperforming linear models in several research fields, and giving birth to the theory of statistical learning-machine learning, which was introduced for the first time by Vapnik (1998). These models acquired increasing popularity in business applications including for example fraud detection (Li et al., 2018), and pack classification tasks (Hang & Banks, 2019) and in insurance industry for claim analysis and modelling (Blier-Wong et al., 2020; Quan & Valdez, 2018).
In the past few years, researchers have begun studying these newer algorithms to tackle insurance-related tasks. The results obtained show that thanks to machine learning algorithms, it is possible to extract dependency structures between the data which until then remained undetected by classical regression tools. This results in a significant reduction in the error between the value predicted by the model and the measured value. Baudry and Robert (2019) have used the Extra-Trees algorithm for individual claims reserving. Neumann et al. (2019) applied five machine learning methods of classification to predict a car driver’s decision about taking a replacement car after a vehicle accident happens. They showed that the gradient boosting models outperform the classical logistic regression method and other machine learning models. In their work, Castellani et al. (2021) have applied deep learning networks and support vector regressors to the valuation of the solvency capital requirement of participating life insurance policies. Yang et al. (2018) have proposed a gradient tree-boosting algorithm and applied it to Tweedie compound Poisson models for auto insurance pure premiums. Their findings indicate that the new method is superior to the existing methods in the sense that it generates more accurate premium predictions. Wuthrich and Buser (2019) considered Adaboost, gradient boosting, regression tree boosting, GLM and generalized additive model for a suitable non-life insurance actuarial pricing model. Their experimental results indicate that the generalized additive model was able to outperform the generalized linear model for non-log-linear components. In the research of Grize et al. (2020), the authors have studied first a comparison of retention models for household insurance and then a dynamic pricing problem for online motor insurance. They have shown the advantages but also some of the difficulties of applying ML tools in practice. Furthermore, Staudt and Wagner (2021) have examined the predictive performance of the generalized linear model, the generalized additive model and the random forest model using a dataset of a Swiss collision insurance portfolio. Empirical results indicate that the generalized additive model has the best overall performance. A case study comparing machine learning techniques with generalized linear models to perform pricing optimization in car insurance is conducted by Spedicato et al. (2018). They have given both the advantages and disadvantages induced using these computer tools. More recently, Henckaerts et al. (2020) have focused on tree-based methods to develop full tariff plans built from both the frequency and severity of claims. Results show that boosted trees outperform the classical GLMs. Using Indonesia automobile Insurance dataset, Rustam and Ariantari (2018) show the capacity of the support vector machines model to classify policyholders satisfactorily (see also Dey et al., 2021). Huang and Meng (2019) have employed support vector machines, random forests, XGBoost and artificial neural networks for risk classification and Poisson GLM for claim frequency prediction. Based on automobile dataset from insurance company in China, results for risk classification problems show that XGBoost model has the highest accuracy of prediction and driving behavior variables play crucial roles in pricing automobile insurance.
In health insurance, Hartman et al. (2020) have analysed how to best predict which members will be high-cost next year by comparing the predictive accuracy of logistic regression to extreme gradient boosting using the Health Care Cost Institute data. They have found that the added flexibility of the extreme gradient boosting improves predictive power. Moreover, Rampal et al. (2020) introduced an Ensemble regression model to predict future health insurance premiums. The accuracy of this model was compared to four other regression models: Decision Table, Gaussian Process, Linear Regression, and Zero R. Their findings illustrated that the Ensemble regression model outperformed the others, establishing itself as the most accurate predictor of health insurance premiums. Similarly, Kaushik et al. (2022) applied an artificial neural network (ANN) model to forecast individuals' health insurance costs based on their characteristics. They conducted a comparative analysis of the predictive performance of the ANN-based regression model against a linear regression model. The empirical results demonstrated an impressive accuracy rate of 92.72% for the ANN-based regression model, highlighting its effectiveness in predicting health insurance costs. These studies align with our approach of employing advanced machine learning techniques to enhance the predictive accuracy of health insurance premium models. By incorporating similar methodologies, our research further validates the use of non-traditional models over conventional methods. Specifically, our study’s use of XGBoost, a robust ensemble learning algorithm, echoes the findings of Rampal et al. (2020), underscoring the superior performance of ensemble models in this domain. Moreover, our results complement those of Kaushik et al. (2022), demonstrating the efficacy of sophisticated machine learning models, such as ANN and SVR, in accurately forecasting health insurance costs. In light of these findings, our study extends the application of machine learning models to a real-life health insurance portfolio, reinforcing the practical utility and generalizability of these advanced methods.
Methodology
In this section, we provide a brief description of technical methods that will be considered in this work. In addition, we present two popular metrics used by the financial industry to measure the performance of regression type models: the mean squared error and the relative mean squared error.
Generalized linear models
The generalized linear models, introduced in the work of Nelder and Wedderburn (1972), are extensions of the simple linear model by relaxing the assumptions of normality and constant variance. They restrict themselves to the case of the exponential family, which groups together classical laws such as Poisson, Gamma, Normal, Binomial. These models make it possible to estimate an endogenous variable
Classification and regression trees
Classification and Regression decision Trees are introduced by Breiman et al. (1984) and constitute a major family of data mining methods. They are classified among non-parametric supervised models, i.e., they do not impose any hypothesis on the data distribution. They make it possible to obtain both explanatory and predictive models from a database. These algorithms are used to group the observation of the target variable
Construction of a saturated binary tree
A classification or regression tree begins at the root (initial node) where the entire sample is located. Then, each node is defined by the choice of an explanatory variable; and of a division criterion which induces a partition into two or more classes as homogeneous as possible leading to two new nodes that we will try to divide into two new ones (subclasses). The classification process is, therefore, recursive until the separation no longer improves the prediction. i.e., until the terminal node (a leaf) is obtained.
Pruning the optimal tree
The saturated tree tends to produce a very high number of leaves; the previous model is, then, particularly exposed to the risk of over-learning. This phenomenon results in a very high number of parameters in the standard regression, an excess against which it is possible to fight thanks to the automatic selection of the variables or the penalization. To avoid this risk, we use a cross-validation technique called pruning. This technique was introduced by Breiman et al. (1984). Its main objective is to arrive at a less precise and complex model on the learning base but whose ability to predict values on other bases is stable and robust. It consists of expanding the previously constructed tree to the maximum and then removing branches and nodes whose splitting does not significantly improve the tree on the test basis. Indeed, the sum of the quadratic errors is used as an adjustment criterion for a quantitative target variable, as is the case for our modelling.
Random forest
The Random Forest methods were introduced by Breiman (2001). The principle of these methods is to retain the advantages of the CART method while mitigating the effect of over-learning of the model and therefore the complexity of the pruning phase. These algorithms are known for their robustness and their flexibility. They are based on a sampling technique. A bootstrap is performed on the training sample containing p predictor variables. We proceed to the creation of
Extreme gradient boosting (XGBoost)
XGBoost is proposed by Chen and Guestrin (2016) as an alternative approach for predicting a response variable given certain exogenous variables. Data scientists claim that this algorithm is the fastest and the best performing boosting algorithm. We have chosen this model because it combines the strengths of regression trees model and boosting model (Elith et al., 2008). The general principle behind boosting is that it builds
Support vector regression
Support vector regression, introduced by Vapnik (1995), is a highly effective technique used for solving nonlinear regression problems. In recent years, this algorithm has become well known as one of the most effective machine learning methods. Its main objective is to minimize the generalized error bound. This generalization error bound is the combination of the training error and a regularization term that controls the complexity of the hypothesis space (Basak et al., 2007). It gives us the flexibility to define how much error is acceptable in our model and will find an appropriate line (or hyperplane in higher dimensions) to fit the data. Nevertheless, the hyperparameters of the SVR model should be carefully determined because inappropriate choice of SVR parameters may lead under-fitting or to over-fitting (Lin et al., 2005). Smola and Schölkopf (2004) have given an overview of the basic idea underlying support vector machines for regression and function estimation.
Artificial neural network regression model
Regression ANNs are able to handle non-linear representations and easily learn rich representations by mapping inputs to outputs. These algorithms are flexible in the way they can be used, particularly for pattern recognition, time series and image processing. Notably, they outperform traditional statistical models in terms of speed, simplicity, and capacity (see e.g. Hastie et al. (2009) for additional insights). In the current study, a neural network, featuring one hidden layer, was adapted to predict healthcare insurance premiums. The stopping criterion, crucial for optimal performance, was chosen by identifying the number of neurons in the hidden layer that minimizes errors on the test set. The most effective configuration was found, with a network comprising seven neurons in the hidden layer yielding the minimum error.
Performance metrics
Quadratic prediction error
Several prediction models could be applied to estimate the pure premium of the contracts in the portfolio. It is, therefore, necessary to define performance criteria to compare models and their results. To do this, we will study the criteria of the quadratic prediction error also called “Mean Squared Error”, and “the Relative Mean Squared Error” (MSE/MEAN). The MSE measure quantifies the gap between the predicted model and the perfect model.
Its formula is defined in the literature as follows:
Data
Data description
The database used for testing the methodology in this paper corresponds to the care expenses contracts related to specialist consultations gathered throughout one year from a Tunisian insurance company.
The database contains information about the insured population, all medical benefits received by these same insured persons and the various insured enterprises, indicating their type and their sector of activity, thus specifying the establishment service of each enterprise was created to provide both claims and beneficiary information with a total of 228343 contracts. Figure 1 shows the distribution of the average annual costs as a function of the number of individuals (left) and the distribution of the average annual costs as a function of the number of individuals with at least one claim (right). Table 1 below gives more details of the claim amount distribution. Before the modelling, we removed both upper and lower outliers which represent 1.26% of the total amount of claims (see Table 1). In our investigation, both visual and statistical methods have been employed to identify outliers. Our primary aim was to discern and exclude data that exhibit anomalies or deviate significantly from the overall distribution of the dataset. The scatter plot serves as a visual aid in visualizing data point distribution. This technique facilitates the identification of a threshold beyond which data is deemed as outliers. In our case, we set the upper threshold at 140,000. For the statistical analysis, we opted for the modified Z-score method to determine the lower threshold. Consequently, the lower threshold is determined to be 20,000. Thus, 25.15% of policyholders had a claim for an amount between 30,000 and 50,000 TND. These claims contribute to 91.35% of the total claims expense. The bounds of the intervals in Table 1 are chosen with reference to the histogram of claims average costs (right). Histograms of claims average costs (TND). Distribution of claim expense.
The setting of the explanatory variables
Definition of variables.
In this study, we define a reference modality for each explanatory variable, representing the most prevalent category within our portfolio for that specific variable. Consequently, the intercept in the GLM regression model, often referred to us as the reference individual, corresponds to all these chosen reference modalities and therefore, the consumption of any individual will thus be interpreted as overconsumption or underconsumption compared to the reference individual. It’s essential to note that the reference modality is coded as 0. The terms of the reference individual (Intercept) are as follows: Gender: Male; Age: [25, 46[; Dependency: Principal; Type: Public; Region: Tunis; Sector: Industry.
Analysis of Variance test results.
Correlation matrix.
Therefore, the average cost and the average frequency are modeled according to the following six explanatory variables: Dependency, Gender, Age, Region, Type of sector and Sector which are retained after carrying out the likelihood tests on the data processed. Figure 2 displays the distribution of claim’s frequency by Gender (Male, Female), and by type of beneficiary (Principal, Spouse, and Child). And Figure 3 exposes the distribution of Average severity and Frequency of claims by Age band ([0,6[, [6,25[, [25,46[, [46,61[, and [+61[). Distribution of claim’s frequency by Gender (left), and by type of beneficiary (right). Distribution of Average severity and Frequency of claims by Age band.

According to Figure 2, we can say that the most important claim frequency is mainly for women that is in the order of 90924 (57%), while that for men is in the order of 68024 (43%) claims. Also, we point out that the largest number and severity of claims principally come from people aged between 25 and 45 years old (See Figure 3). However, because of the small number of elderly people in the portfolio studied, about 7%, the frequency of claims that must be high is low. Additionally, the highest number of claims is for members. In fact, the frequency of claims for spouses is lower than that for children, which can be explained by the fact that the number of children insured is large.
Empirical results and discussion
In this section, we provide details of the numerical results of the various methods described in Section 4. Indeed, the handling of observations that did not make a claim is as follows: all observations, including the 72% that did not make a claim, were included in the claim frequency modelling. This is essential to accurately estimate the probability of a policyholder filing a claim. By including all observations, we ensure that our model captures the full spectrum of policyholder behavior, from those who do not file claims to those who do. For the claim cost modelling, only observations with at least one claim were included. This approach is standard practice as the objective here is to model the cost associated with claims. Including observations without claims would not contribute useful information to the cost estimation process and could potentially skew the results.
Coefficient estimates for the GLM model
To model the frequency and severity of claims, it is fundamental to treat the adequacy of empirical laws to theoretical laws to apply generalized linear models. As widely known in the actuarial literature (Charpentier, 2014),we have two discrete distributions which can possibly model the frequency of claims in non-life insurance: the Poisson distribution and the negative binomial distribution. And for the average cost, we have the Gamma and the Log Normal distributions. We carry out below a graphic adjustment of the theoretical law to the empirical law.
From Figure 4 above, we stress that the negative binomial law seems the most adequate for frequency modelling and from Figure 5, it seems that the Gamma distribution better adjusts the average severity. To confirm these results, we proceed to the Chi-square and the Kolmogorov-Smirnov tests, as presented in Table 5. Results indicate that the p values associated with Poisson and Negative Binomial distributions are null. Therefore, we base ourselves on the mean square error criteria to make our decision. The latter has a lower value for the negative binomial distribution. Additionally, it can be noted that the Gamma distribution gives a Kolmogorov-Smirnov statistic lower than that given by the log-normal distribution. Also, the AIC and BIC criteria have smaller values for the Gamma distribution. We will therefore use the Negative Binomial law for frequency modelling and the Gamma distribution for the average cost modelling. Adjustment of claim frequency by the Poisson and Negative Binomial distributions. Adjustment of Average severity by Log Normal and Gamma distributions. Chi-square and Kolmogorov-Smirnov tests results.

Regression estimates for frequency and average Cost modelling on train data.
***, **, * indicates statistical significance at 0.001, 0.01 and 0.05 level respectively.
The coefficient estimates in the output indicates that, with respect to the Negative Binomial distribution and the modalities employed for frequency modeling, all p-values are less than 5% except “Rgion_4”, “Sector_1”, “Sector_2” and “Sector_4”. Consequently, we would say that these covariates are not statistically significant predictors variables for frequency modelling at 5% significance level. In addition, we observe that the “Age_2”, “Age_3”, “Dependency_2” and “Region_1” are not significant predictors variables for average severity modelling since their associated p-values with the Gamma distribution being less than 5% significance level.
Results of machine learning algorithms
In this article, we use a cross-validation scheme. First, we tune the parameters in the algorithm under study on train data (70%). Second, we evaluate the predictive performance of the algorithms on test data (30%).
Hyper parameters
Tuning Parameters for Machine Learning algorithms.
To define the optimal dimension of the CART tree, an adjustment criterion depending on a penalty parameter α was defined. This setting allows for a compromise between the complexity of the structure of the tree and the fit to the original data. Initially, a zero-penalty coefficient is chosen. To pruning the saturated tree, it is necessary to determine the optimal penalization coefficient. The « plotcp » function of R software makes it possible to represent the curve of the prediction errors as a function of the penalty coefficient: the penalty coefficient to be chosen for pruning is therefore, that which minimizes the prediction error thus defined. The optimal trees for frequency and average severity modelling built using the “rpart” command of R software are displayed in Appendix A (see Figures 7 and 8).
For the random forest model, the idea is to retain the advantages of the CART method while overcoming its limitations, mainly the effect of over-fitting the model and therefore, the complexity of the pruning phase. It makes it possible to constitute a forest of
Variable importance
The fundamental concept behind Permutation Variable Importance (PVI) of Breiman et al. (1984) is to assess the increase in the deviance of a model after permuting the values of a specific covariate on the model’s performance. In other words, the importance of the variable is quantified by measuring the rise in the deviance of the model when the information provided by an explanatory variable is eliminated. A variable is considered important if the random mixing of its values results in an augmented model deviance, indicating that the model heavily depends on that specific feature for accurate predictions. Conversely, a covariate is not important if the act of shuffling its values yields minimal or negligible increase in the deviance of the model. In general, if a variable has a more substantial impact on one model’s performance compared to another, it suggests that the variable is more critical or influential in the former model. This difference in importance can arise due to various reasons such as the difference in the structure and the complexity of the models. A variable might be more influential in a complex model that can capture intricate patterns, while a simpler model may not give the same weight to that variable.
In this subsection, we conduct a comparative analysis of variable importance plots for both GLM and machine learning algorithms to identify which variable matter for predicting frequency and severity of claims. Figure 6 illustrates the variable importance in the predicting frequency and severity of claims. The left column displays the variable importance for frequency models, while the right column showcases the variable importance for severity models. Upon examination of frequency models, we observe a strikingly similar ranking across GLM, CART, RF, and XGBoost methods. Notably, the risk factors “Age” and “Dependency” emerge as relevant risk factors to these models. However, in the ANN regression model, variables such as “Age,” “Region,” and “Sector” seem far less relevant. Shifting focus to severity models, “Region” and “Sector” variables demonstrate heightened importance in GLM, CART, RF, and XGBoost models. Interestingly, the Region risk factor exhibits no discernible impact on frequency and severity predictions when employing the SVR model. Variable importance in the predicted Frequency and severity of claims methods.
Prediction performance
Evaluation of
Evaluation of
Regarding performance of the methods on test data, presented in Table 8 and Tables 9 and it can be clearly seen that all machine learning methods significantly outperform GLM in predicting frequency and severity of claims based on MSE metric. Indeed, XGBoost model shows the highest performance on test data with the lowest MSE value of 2.153 for frequency modelling and lowest MSE value of 25 486 324 for average severity modelling as compared to other models. This result is also validated by comparing the RMSE values of this model. However, when examining machine learning methods against each other, both SVR and ANN models exhibit the highest MSE and RMSE values for both frequency and severity in claims modeling. This can be explained by the fact that the SVR and ANN algorithms do not perform very well when the target classes are overlapping.
In specific figures, the MSE for GLM is 27 964 624 and for ANN is 26 956 259, while XGBoost records 25 486 324 on test data for average cost modeling. Hence XGBoost is 10% better than GLM and 6% better than ANN model. Additionally, the standard error on the coefficients for GLM, averaging at “1%”, underscores the significance of the observed differences. It is worth noting that these differences are not as pronounced in the training data, with a mere 2% difference in MSE, and both SVR and ANN models underperforming compared to GLM. Moreover, when categorizing variables into multiple categories, regression trees tend to lose information, and this makes it less effective in making predictions. Besides, while growing the trees, the random forest model is used to add additional randomness to the model by searching for the best risk factor among a random subset of risk factors. This model is known for its flexibility. But the extreme gradient boosting model is highly flexible. It can handle missing data and large datasets efficiently. Further, it has several hyperparameters that can be tuned to improve model performance by minimizing prediction errors. That is why the MSE for extreme gradient boosting technique is much better than for CART and RF models. Furthermore, it can be observed that the MSE and RMSE on the test set for the GLM model in claim frequency and severity modelling are distinctly greater than those on the training set, indicating a drop in predictive accuracy when applied to new data. GLMs are parametric models that can fit training data well, particularly when the relationship between the predictors and the response variable is adequately captured by the linear assumptions of the model. This often results in relatively high-performance metrics for the training dataset. While GLMs can fit training data effectively, there is a potential risk of overfitting, where the model captures noise and specific patterns in the training data that do not generalize well to unseen data. Several studies, including those of McCullagh and Nelder (1989), Harrell (2001) and Babyak (2004), address the issue of overfitting in generalized linear models. This overfitting might not be immediately apparent from the training performance alone but can manifest as reduced performance on test dataset. To sum up, it can be confidently asserted that the premium predicted by the XGBoost model aligns more closely with the empirical premium.
Analysis of the pure premium
Pure premium estimated on the train data.
The empirical average frequency is equal to 0.696 and the empirical average severity is equal to 38 098.59. Comparing the calculated pure premiums by the different models studied from Table 10, we find that the generalized linear model overestimates the average pure premium. While the ANN model adeptly approximates the pure premium, closely aligning with the empirical average, it presents a challenge in terms of interpretability as it is difficult to identify the effect of a variable on the final result. Additionally, the extreme gradient boosting model estimates the pure premium very close to the empirical average. This model facilitates the effective identification of risks, enabling the precise determination of premiums for policyholders that align with their individual risk profiles. This not only enhances the accuracy of premium pricing but also promotes fairness, ensuring that policyholders are charged in a manner that reflects their specific risk factors. Ultimately, the use of this model contributes to a more equitable and reasonable approach to premium pricing in the insurance industry. In summary, the experiments based on Tunisian healthcare insurance dataset indicate that the application of machine learning techniques based on a set of selected features outperforms the classical GLM, and the proposed methodology is fundamentally adaptable to different health insurance databases. Also, in the pricing process of individual healthcare insurance contracts, the most important features for frequency and severity of claim’s modelling are Age (Kelly & Nielson, 2006), Dependency and Region. In our work, we aimed to make the best use of the provided data to offer valuable insights into health insurance premium pricing based on the available features in the current dataset. However, we note that the inclusion of additional variables such that smoking and drinking could further enhance the accuracy and comprehensiveness of our pricing model. Furthermore, the pricing of individual health insurance contracts is based on the risk profile of each individual. Indeed, estimates of the average frequency and average cost for each individual, conditional on their specific characteristics, serve as indicators of their respective risk levels. Consequently, individuals with a higher risk profile will have a higher individual pure premium and will therefore pay more.
Conclusion
The constant evolution of the healthcare market as well as the capture of new low-risk clients challenge insurers to develop new methodologies for pricing and cultivating a profitable portfolio. In our study, we presented the different pricing methods for individual healthcare contracts. Indeed, during modelling by generalized linear models, an alternative method to the traditional frequency-cost approach was favored. We assumed a negative binomial distribution for modelling the frequency of complaints and a Gamma distribution for modelling the average severity. However, these models do not make it possible to bring out all the information on the insured risk even though they impose both constraints on the structure of the modeled risk and the interactions between explanatory variables of the risk. To overcome this limitation, we used non-parametric models from machine learning algorithms. The modeling process consists of subdividing the database into a train and a test sample to optimize the results and limit the phenomena of over-learning. The results provided are, therefore, more robust. The comparative analysis of the different models showed that the gradient boosting algorithms, particularly the XGBoost, were deemed to be the most satisfactory. In conclusion, our study highlights the importance of integrating AI into health insurance pricing. Our empirical finding reveals the effective predictive power of ML models compared to the classical statistical learning models (GLM) in the case of large-scale databases. The dynamic and adaptive nature of these innovative methods facilitates the identification of complex patterns in datasets, enabling continuous learning and adjustment to align premiums with policyholders' risk profiles. However, the challenges facing researchers and practitioners, who are actively shaping the future landscape of healthcare pricing, include issues such as model fairness and ethical considerations (see e.g. Char et al., 2020). Particularly in the field of data-driven decision making, it is very important to prevent potential discriminatory outcomes generated by AI models. Addressing these challenges is crucial to promote the responsible and ethical use of AI techniques, thereby contributing to the quest for transparency and unbiased ratemaking. Our findings have potential implication in health insurance market highlighting how advanced predictive models can improve customer segmentation and provide personalized pricing.
Footnotes
Acknowledgements
We are grateful to the anonymous referees whose valuable suggestions and remark allowed us to greatly improve the original version of this paper. We would like to thank Mr Ksouri Najed actuary and director of ERM partner which is a consulting firm in Risk Management and Actuarial in the insurance, finance and industry sector based in Tunisia for providing us with the database used in this study.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Data availability statement
The data that support the findings of this study are available on request from the corresponding author. The data are not publicly available due to restrictions related to protecting the proprietary information of the insurance company. The data contain confidential and sensitive information related to the company’s operations.
Appendix
The optimal tree for Frequency modeling. The optimal tree for Average Severity modeling.
