 Research
 Open access
 Published:
A machine learning approach to small area estimation: predicting the health, housing and wellbeing of the population of Netherlands
International Journal of Health Geographics volume 21, Article number: 4 (2022)
Abstract
Background
Local policymakers require information about public health, housing and wellbeing at small geographical areas. A municipality can for example use this information to organize targeted activities with the aim of improving the wellbeing of their residents. Surveys are often used to gather data, but many neighborhoods can have only few or even zero respondents. In that case, estimating the status of the local population directly from survey responses is prone to be unreliable.
Methods
Small Area Estimation (SAE) is a technique to provide estimates at small geographical levels with only few or even zero respondents. In classical individuallevel SAE, a complex statistical regression model is fitted to the survey responses by using auxiliary administrative data for the population as predictors, the missing responses are then predicted and aggregated to the desired geographical level. In this paper we compare gradient boosted trees (XGBoost), a wellknown machine learning technique, to a structured additive regression model (STAR) designed for the specific problem of estimating public health and wellbeing in the whole population of the Netherlands.
Results
We compare the accuracy and performance of these models using outofsample predictions with fivefold Cross Validation (5CV). We do this for three data sets of different sample sizes and outcome types. Compared to the STAR model, gradient boosted trees are able to improve both the accuracy of the predictions and the total time taken to get these predictions. Even though the models appear quite similar in overall accuracy, the small area predictions at neighborhood level sometimes differ significantly. It may therefore make sense to pursue slightly more accurate models for better predictions into small areas. However, one of the biggest benefits is that XGBoost does not require prior knowledge or model specification. Data preparation and modelling is much easier, since the method automatically handles missing data, nonlinear responses, interactions and accounts for spatial correlation structures.
Conclusions
In this paper we provide new nationwide estimates of health, housing and wellbeing indicators at neighborhood level in the Netherlands, see ’Online materials’. We demonstrate that machine learning provides a good alternative to complex statistical regression modelling for small area estimation in terms of accuracy, robustness, speed and data preparation. These results can be used to make appropriate policy decisions at a local level and make recommendations about which estimation methods are beneficial in terms of accuracy, time and budget constraints.
Introduction
The health and housing situation of the Dutch population is regularly monitored by local authorities. In the Netherlands an extensive national survey, called the “Health Monitor Adults and Elderly (Gezondheidsmonitor Volwassenen en Ouderen)” (HeMo), is designed to gather the health information at a national and municipality scale. The survey is carried out every four years by the 25 Dutch municipal Health services (MHS) [1] and is coordinated by the National Institute for Public Health and the Environment (RIVM) and Statistics Netherlands (CBS). A second survey, called the “Housing Survey of Netherlands (Woon Onderzoek Nederland)” (WoON), collects information about the current and desired living situation. This survey is carried out every three years by Statistics Netherlands (CBS) in collaboration with the Ministry of Internal Affairs (BZK) to assess the living situation of the Dutch population and their wishes and needs in the field of housing [2]. Even though both surveys include tens to hundreds of thousands of respondents, many of the Netherland’s 13,808 neighborhoods have only few or even zero respondents. In that case, directly estimating the health and welfare at neighborhoods level from the survey responses becomes impossible.
To resolve this challenge, the field of Small Area Estimation (SAE) has developed many methods, we refer to the literature for a comprehensive review of their strengths and weaknesses [3]. Regression approaches train a model on the observed responses predicted by an auxiliary data set of features of the respondents, such as age and educational level. In our problem, regression models are particularly suitable because Statistics Netherlands has an extensive administrative data set of demographic variables covering the entire Dutch population. We can therefore train a regression model based on the observed healthrelated indicators or living quality ratings using the subpopulation of respondents in the survey. We then use this model to predict the missing survey responses of the remaining population. We can aggregate these predictions to any desired geographical level, such as municipalities, districts and neighborhoods.
A previous study has shown that complex regression models, such as a structured additive regression (STAR) model, achieve wellcalibrated predictions of several healthrelated indicators at neighborhood level in the Netherlands [4]. The statistical regressionbased approach has however some drawbacks. First, one has to select a model. This model should handle nonlinear relations between the auxiliary data and the outcome, but also interactions and spatial effects. This usually requires a statistician who translates prior knowledge into a model, and careful data preparation. Second, and this applies to any model, the model should be trained and overfitting should be prevented by regularization techniques, such as shrinkage or penalization methods [5]. Third, such complex statistical models may run into computational difficulties when handing huge data sets with millions of records.
Machine learning techniques can be used as an attractive alternative. They have many potential benefits compared to statistical models: more accurate predictions, faster training times for large data sets, more robustness to different data sets, and they require less work and knowledge from the statistician to design and implement. Machine learning is gaining recognition as a potential solution to the problem of SAE, even though it has seen limited use so far [6,7,8,9,10]. In our study, we apply machine learning to a massive prediction problem with an important spatial component: we generate predictions for every adult individual in the Netherlands. From a machine learning perspective, the above procedure is a supervised learning task. A supervised machine learning method can be seen as a general learning algorithm that takes any data set of features with examples of correct labels, and outputs a model that is able to predict unknown labels from the features.
In this paper we provide estimates of health, housing, and welfare indicators at municipality, district and neighborhood level using gradient boosted trees (XGBoost), a wellknown machine learning technique [11]. We compare the performance of XGBoost to a complex statistical structured additive regression model (STAR), designed specifically for this problem [4]. We show that it is possible to predict the indicators at the individual level using XGBoost and that the results are generally better compared to complex statistical SAE models.
Methods
Data sources
In this section we introduce the data sets that are being used in this study. Dutch policy makers are interested in small area estimation of many different surveys. It is important to verify that machine learning is able to adapt to each of these surveys, which can have quite different characteristics. The method could then be used in the future to automatically produce the desired estimates. We consider three surveys:

1
“Health Monitor Adults and Elderly” (HeMo)

2
“Housing Research of the Netherlands” (WoON)

3
“Experienced noise disturbance from traffic” (Noise) subsurvey of HeMo.
For the survey data sets we construct a corresponding population data set with features based on administrative data provided by Statistics Netherlands. The population data set includes the entire Dutch population, aged 18 years or older for the year of the survey, with the exception of institutionalized people who are not included in either survey. A secured identification number that links each survey to the administrative data was assigned to each respondent. Authorization for this linkage was provided by CBS. Disclosure and tracing of individuals is not possible. The data sets are summarized in Table 1. The outcomes and features will be described in further detail in the next sections.
Health monitor—HeMo
The Adult and Elderly Health Monitor (HeMo) is an extensive national survey about selfreported health and wellbeing. The survey is administered every four years by the MHS regions in collaboration of the National Institute for Public Health and the Environment (RIVM) and Statistics Netherlands (CBS). At the time of writing, data has been collected for years 2012, 2016, and 2020. In this paper we consider the results of the 2020 survey. Data were collected in September 2020 on 539,895 respondents (3.9% of the Dutch adult population) by an online questionnaire [1]. We consider 34 binary health indicators chosen from the survey. These include indicators like alcohol use, smoking behaviour, body weight, physical and mental health, disabilities, financial difficulties, exercise, loneliness, self perceived health and informal care giving. Table 9 in the Appendix describes all of the indicators.
Housing research of the Netherlands—WoON
The Dutch housing survey (WoON) is also a national survey, administered every three years by Statistics Netherlands (CBS) in collaboration with the Ministry of Internal Affairs (BZK). The survey gathers information about the current and desired housing situation of noninstitutionalized Dutch residents aged 18 years or older. At the time of writing, data has been collected for years 2006–2018. Here we consider the results of the 2018 survey. Data were collected between August 2017 and April 2018 on 67,523 respondents (0.54% of the Dutch adult population, noninstitutional) by an online questionnaire [2]. We consider eight continuous ratings of housing satisfaction from the survey. The first seven ratings are 1–5 scores (1: strongly disagree, 2: disagree,..., 5: strongly agree) and the last rating is a composite score between 1 and 10. Table 10 in the Appendix gives a full description.
Experienced noise disturbance from traffic—noise
Noise disturbance from traffic is an important subset of questions in the 2016 HeMo survey. The source of noise is identified as road, train or air traffic noise. The road noise is further divided into any noise, noise from traffic less than 50 km/h, or noise from traffic more than 50 km/h. The noise nuisance is then classified as (1) serious (2) moderate or serious, resulting in 10 indicators in Table 11 in the Appendix. The administrative data is expected to provide only limited information about how much the Dutch population experiences noise disturbance from traffic. Instead, the measured noise level at the individual’s spatial location can be expected to provide most information. RIVM has developed a noise dispersion model that predicts the noise level at each address based on actual measurements, knowledge of road and rail infrastructure, flight paths, etc. [12]. For this task, we only use the 18–64 year old population and add this as an additional feature to the administrative data. Table 12 in the Appendix describes the noise level predictions.
Administrative data for the population
The features of the Dutch population are obtained from CBS administrative data. Based on previous research and expert opinion of MHS and RIVM, we used 14 features for modelling the responses for HeMo, WoON, and Noise. At individual level we use age, sex, ethnicity, marital status, and highest completed level of education. At household level we have household type, size, income source, home ownership, income and assets and X and Ycoordinates of the home address. At neighborhood level we have the address density. For WoON, we also add eight additional neighbourhood features to test how well the models developed for HeMo generalize. First, the percentage of uninhabited houses, singlefamily homes, nonrental houses, social housing, and houses built before 2000. Second, the distance from an individual’s house to the nearest forest, backwater and public green. For Noise, we include the additional noise level predictions from the RIVM noise dispersion model.
Tables 2 and 3 summarize these features. For categorical features, the categories are given. For continuous features, the median and range are given. The percentage of missing features in the population data is provided as well. The most significant problem is the missing highest completed level of education. However, educational level is a very important predictor for health because it can be used to distinguish students that differ from other young individuals with low income. Therefore this feature is considered too important to be excluded. The handling of missing feature data will discussed in the next sections. To obtain demographic and spatial features of every individual as close to survey date as possible, we use a reference date of September 1, 2020 for HeMo. For WoON we have access to the dates on which people filled in the survey and therefore use these dates to obtain demographic and spatial information about the household on this exact date. However, several data sources are only updated yearly, so for those we use the reference date of January 1, 2018.
Municipalities, districts and neighborhoods
In 2020, the CBS administrative data had individuals registered in 25 municipal health regions, 355 municipalities, 3163 districts and 13,478 neighborhoods. Municipal health services work through a common system for several municipalities in a given region, called an MHS region, to carry out a number of tasks in the field of public health. Municipalities are administrative divisions that have corporate status and powers of selfgovernment or jurisdiction. Their duties are delegated to them by the central government. Districts are nested within municipalities and neighborhoods within districts. Districts and neighborhoods are coherent regions that typically share similar population characteristics such as age, social structure, economic area, geographical features, etc. They have no formal status; they are defined for administrative purposes and data collection by CBS.
Models
Formalization of the prediction problem
We train a model based on the observed health indicators, living quality ratings, or noise disturbance indicators using the subpopulation of respondents in the survey. We then use this model to predict the missing survey responses of the remaining population and generate predictions for every adult individual in the Netherlands. From a machine learning perspective, this is a supervised learning task.
Suppose we have a set of N individuals denoted by \([N]=\{1,2,\ldots N\}\). The survey is a subset \({\mathcal {I}}\subset [N]\) of n individuals from this population. From the administrative data set we get a vector of d features \(x_i\in {\mathbb {R}}^d\) for each individual i. From the survey data set we get responses \(y_i\in \{0,1\}\) (classification) or \(y_i\in {\mathbb {R}}\) (regression) if the individual was in the survey (\(i\in {\mathcal {I}}\)) and \(y_i=\text {NA}\) otherwise (\(i\notin {\mathcal {I}}\)).
The goal of supervised learning is to learn an unknown function \(f:{\mathbb {R}}^d \rightarrow \{0,1\}\) or \(f:{\mathbb {R}}^d \rightarrow {\mathbb {R}}\) from a set of training examples \({\mathcal {D}}=\{(x_i,y_i)\}_{i\in {\mathcal {I}}}\) each consisting of an input vector \(x_i\in {\mathbb {R}}^d\) and an associated output which may be binary \(y_i\in \{0,1\}\) or realvalued \(y_i\in {\mathbb {R}}\). This function should approximate the unknown true function \(y_i\approx f(x_i)\) on the training data \(i\in {\mathcal {I}}\) with the aim of generalizing to new data \(i\notin {\mathcal {I}}\) which is not seen in the training phase. When predicting the prevalence or average rating for policy makers, we would use the observed responses when available in the survey and the model predictions for every individual not in the survey. We therefore define the predicted response \(y^*_i\) as:
Given a partition of individuals into \(r=1,\ldots ,K\) mutually exclusive geographic regions \({\mathcal {R}}_r\), where \({\mathcal {R}}_1\cup \ldots \cup {\mathcal {R}}_K = [N]\) and \({\mathcal {R}}_r\cap {\mathcal {R}}_s=\emptyset \text { if }r\ne s\), we calculate the predicted prevalence or average rating in each region as simply the average:
Model agnostic prediction intervals can be determined as follows. The goal is to calculate \(b=1,\ldots ,B\) bootstrapped statistics \(p^{(b)}_r\) for the true mean in each region, and take their 95% percentile intervals as prediction intervals. To quantify model uncertainty, we bootstrap resample the training data as data sets \(\{{\mathcal {D}}^{(b)}\}_{b=1}^{B}\) and denote a model trained in each as \(f^{(b)}\). The outcome uncertainty in classification is a Bernoulli trial \(y_i \sim \text {Bern}(p_i)\) from true probability \(p_i\) and we assume the outcome in regression follows a normal distribution \(y_i \sim {\mathcal {N}}(\mu _i,\sigma _i^2)\) given true mean \(\mu _i\) and variance \(\sigma _i^2\). The outcomes are independent given their true means. We estimate the mean with the bootstrapped model prediction and a constant variance \(\sigma ^2 = \frac{1}{{\mathcal {I}}}\sum _{i\in {\mathcal {I}}}(y_i  {\overline{f}}(x_i))^2\) where \({\overline{f}}(x_i)=\frac{1}{B}\sum _{b=1}^{B} f^{(b)}(x_i)\). For every bootstrap sample \(b=1,\ldots ,B\), we train model \(f^{(b)}\) and sample the outcomes. For unknown outcomes (\(i\notin {\mathcal {I}}\)) we simulate \(y^{(b)}_i \sim \text {Bern}(f^{(b)}(x_i))\) in classification and \(y^{(b)}_i \sim {\mathcal {N}}(f^{(b)}(x_i),\sigma ^2)\) in regression. The known outcomes (\(i\in {\mathcal {I}}\)) are taken as observed \(y^{(b)}_i := y_i\), which corresponds to a finite sample correction. The bootstrapped mean is then calculated as \(p^{(b)}_r= \frac{1}{\Vert {\mathcal {R}}_r\Vert }\sum _{i\in {\mathcal {R}}_r} y^{(b)}_i\). Their 95% percentile intervals are the prediction intervals.
Null model
The first model is the null model. This model simply predicts the mean in the Netherlands: either prevalence or the average rating. Each individual and therefore each geographical region gets the same outcome:
Structured additive regression model (STAR)
The second model under consideration is a statistical model specifically designed for small area estimation in the Netherlands. This model is a structured additive regression model (STAR) and provides an elaborate framework for modelling nonlinear effects using penalized Bsplines and spatial information using Markov random fields. The generalized linear model and the generalized additive model can be considered as a special case of the STAR model [5].
In this paper we use an updated version of the STAR model that was presented by [4]. The current STAR model used by the RIVM has several improvements. First, the updated model includes educational level. Second, more twoway interactions are included: age by sex, age by ethnicity, age by marital status, age by educational level, sex by ethnicity, sex by marital status and sex by educational level. Third, all features enter the model using basis functions (Bsplines for continuous features, dummies for categorical features) and penalization of the regression coefficients. This also enables automated feature selection, i.e., features that are not relevant will not be selected in the model, resulting in a more parsimonious model [13]. The original STAR model was used to make the HeMo 2012 predictions, but the updated model was used for the HeMo 2016 predictions. It will also be used as a reference for the HeMo 2020 predictions.
Estimation of (hyper)parameters is carried out with restricted maximum likelihood (REML) using the bam function in the mgcv R package [14, 15]. Because of the size of the data set and the complexity of the model, it is impossible to fit this model to the entire data sets. The data sets is therefore split by MHS regions and a separate model was fit to each split, as in the original paper [4]. To avoid boundary effects, the model for each MHS region also includes all data within a 10 km buffer around the considered MHS region. These models have identical specification but the estimated coefficients and smoothing penalty may differ between regions.
Missing feature values are not allowed in the STAR model. We therefore used the random forest algorithm to sequentially impute the missing values from the least missing feature to the most missing feature.
Gradient boosting (XGBoost)
The third model is a gradient boosting with decision trees. This is a general machine learning technique for classification, regression, etc. It has been shown across many data sets that sophisticated machine learning models (random forest, kernel methods, neural networks, boosting with decision trees) tend to have good classification accuracy in tabular data sets such as our problem [16]. We chose gradient boosting with decision trees because previous studies that have compared machine learning methods in SAE have found them to work slightly better [8, 9] and they are computationally much faster in our large data sets.
Boosting creates a strong prediction model iteratively as an ensemble of weak prediction models, where at each iteration a new weak prediction model is added to compensate the errors made by the existing weak prediction models. Gradient boosting generalizes other boosting methods by allowing the optimization of arbitrary differentiable loss functions. Typically decision trees are used as the model, which is called gradient boosted trees. A decision tree model called Classification And Regression Trees (CART) can be used for both classification and regression. Given an arbitrary loss function \(L(y_i, f(x_i))\), the gradient boosted trees can be described in a general form as [13, 17]:

1
Start with a constant function: \(f_0(x) = \text {argmin}_{\gamma _0}\sum _{i=1}^{n}L(y_i,\gamma _0)\)

2
For each iteration \(t = 1,\ldots ,T\) construct a new tree:

(a)
For example \(i = 1,\ldots ,n\), compute the negative gradient
$$\begin{aligned} r_{it} =  \left[ \frac{\delta L(y_i, f(x_i)]}{\delta f(x_i)}\right] _{f=f_{t1}} \end{aligned}$$ 
(b)
Fit a classification and regression tree to the targets \(r_{i,t}\) giving terminal nodes \(j=1,\ldots ,J_t\) with corresponding terminal regions \(R_{j,t}\), i.e. the set of examples in terminal node j at iteration t.

(c)
For \(j=1,\ldots ,J_t\) compute the terminal node estimates
$$\begin{aligned} \gamma _{j,t} = \text {argmin}_{\gamma } \sum _{x_i \in R_{j,t}} L(y_i, f_{t1}(x_i) + \gamma ) \end{aligned}$$ 
(d)
Using learning rate \(\alpha \) update a new function \(f_{t}(x)\) as
$$\begin{aligned} f_{t}(x) = f_{t1}(x) + \alpha \sum _{j=1}^{J_t}\gamma _{j,t}{\mathbb {I}}(x \in R_{j,t}) \end{aligned}$$

(a)
The gradient boosting algorithm above has two main hyperparameters: the number of iterations i.e., the number of trees constructed T, and the learning rate \(\alpha \). We use the R package XGBoost implementation of gradient boosting [18]. The extreme gradient boosting (XGBoost) model [11] has been successfully used in many competitions and we selected it as a stateoftheart method. We denote the default hyperparameter values as “XGBoost0”, and the optimized model as “XGBoost”. We found that the default hyperparameter values \(\alpha =0.3, T=50\) work well. However, a lower learning rate \(\alpha \) always resulted in a more accurate model. The optimal number of iterations T depends on both the predicted outcome and the learning rate. In the optimized model, we therefore set a reasonably low value to the learning rate \(\alpha = 0.1\) and limited the number of iterations by early stopping based on fivefold crossvalidation on training data. XGBoost is able to handle missing feature values directly by considering these as a tree splitting criterion, just like ordinary values, so there was no need to impute missing feature values first. We found that missing values gave slightly better predictions with XGBoost.
Attention should be paid to the spatial location feature here, because location may provide information that cannot be accounted for by the demographic, household or neighborhood features only. While in the STAR model location is implicitly included in the model as a spatially correlated random effect using a Markov random field term, for a treebased model this information could be provided by simple x and y coordinates. However, this may result in orthogonal artifacts in the maps [19]. We therefore used oblique geographic coordinates (OGC) as an alternative. These are K additional features added to the data by a feature transformation of \(x_i\) and \(y_i\) coordinate features, calculated by:
where the angle \(\theta _k\) takes the values \(\pi (k  1)/K, k = 1, \dots , K\), in which K is a reasonably large number, chosen such that model accuracy does not improves any further. We found \(K = 24\) to be a good tradeoff. We added an extension “_ogc” to denote a model with this location information and “_xy” as the model with ordinary x &ycoordinates.
Validation
To evaluate model performance, we use the data set \({\mathcal {D}}=\{(x_i,y_i)\}_{i\in {\mathcal {I}}}\) of survey respondents with known binary healthrelated indicators or living quality ratings. We split this data set into five mutually exclusive training and test set pairs with fivefold crossvalidation, i.e., \({\mathcal {D}}_{\text {train}}\cup {\mathcal {D}}_{\text {test}}={\mathcal {D}}\) and \({\mathcal {D}}_{\text {train}}\cap {\mathcal {D}}_{\text {test}}=\emptyset \). For each pair, a model f is fitted to the training set \({\mathcal {D}}_{\text {train}}\) with observed responses and the unknown responses are predicted in the test set \({\mathcal {D}}_{\text {test}}\). Taking together the predictions in the five mutually exclusive tests sets, we therefore have outofsample predictions for the original data set \({\mathcal {D}}\).
To validate the models, two aspects are particularly important: discrimination and calibration. Discrimination only applies to classification, while calibration applies to both classification and regression. Discrimination measures to what extent the model is able to discriminate a high risk individual from a low risk individual, without necessarily considering the absolute values of the predictions. Calibration on the other hand quantifies how close the predicted probabilities or ratings are to the observed probabilities or ratings. In our classification task we aim to predict the individual probabilities as accurately as possible, so we need models that are also well calibrated.
The Receiver Operating Characteristic (ROC) is a popular discrimination visualization. The area under the ROC curve (AUC) only measures discrimination because it is calculated from the number of correct rankings of positive examples over negative ones [20]. Accuracy also considers discrimination because it is the proportion of correctly classified individuals for a given threshold value. In the case of binary responses, a calibration curve compares the predicted probability quantiles and the true probability of 1 in each quantile.
Statistics that measure both discrimination and calibration are the mean squared error (MSE) and negative loglikelihood (NLL), which we normalized by dividing by the sample size. We verified that different metrics gave consistent results across the models. We primarily report the model accuracy as the MSE, which is also a valid metric in binary classification known as the Brier score [21]:
Results
In this section, we first investigate the prediction task in detail using the HeMo indicator “drinker”, which is the first indicator in the data set. We then summarize the results for each of the 34 healthrelated indicators, the 8 living quality ratings, and the 10 noise disturbance indicators.
The predicted prevalences for all indicators at neighbourhood, district and municipality level for 2020, based on the HeMo survey, can be found in the URL provided in the Online materials.
Healthrelated indicator “drinker”
The task is to predict the binary response \(y_i \in \{0,1\}\), corresponding to the health survey question “Did you drink alcohol in the past 12 months?”, given demographic and spatial characteristics of individuals. The estimated prevalences of this indicator based on XGBoost model predictions are shown in the middle panel of Fig. 1.
There are some differences in XGBoost and STAR model predictions, even though the maps they produce seem very alike. We plot the differences in predicted prevalences in the right panel of Fig. 1 and list the absolute differences in Table 4.
In Table 5 we report the accuracy, AUC, MSE, NLL, and the average time taken to train the model and predict the responses in each fold. XGBoost is the most accurate model in every metric, and it is possible to obtain predictions in the matter of seconds for XGBoost with default hyperparameters, while training the STAR model takes almost half an hour.
To investigate the full profile of discrimination ability and make sure the models are wellcalibrated, we calculated the ROC curve and calibration curve in Fig. 2. Since Statistics Netherlands does not allow reporting individual predictions, we used 100 different threshold values for the ROC curve and 100 different quantiles of prevalence for the calibration curve. The models appear very close to each other in discrimination ability and every model is wellcalibrated.
Since the primary interest is small areas, we also wanted to make sure that the new model (XGBoost) matched the previous model (STAR) in these areas. In Fig. 3, we compare the predicted prevalence in each neighborhood and measure model accuracy by MSE for different area sizes. The Pearson correlation coefficient in this example is 95%, which means that the two models predict quite similar but not identical prevalences. The XGBoost model has a lower MSE for all area sizes for the ’drinker’ indicator.
All healthrelated indicators, living quality ratings, and noise disturbance
We fitted the XGBoost models (x and y, ogc) with optimized hyperparameters and the STAR model to each of the 34 healthrelated indicators, the 8 perceived living quality ratings, and the 10 experienced noise disturbance indicators. We measure the performance by their MSE, since the previous experiment indicated that different metrics give consistent results. Because the primary goal is to improve upon the existing statistical model by using a machine learning model, we also summarized the XGBoost vs. STAR model comparison with the following columns in each table:

The Pearson correlation (corr) of predictions for each neighborhood.

The % improvement in MSE of predictions (pred) obtained by XGBoost.

The % improvement in train & prediction time (time) by XGBoost.
In Table 6 we see that XGBoost is the best model for every one of the 34 health indicators. In Table 7, we see that XGBoost is the best model for all but one of the 8 housing survey ratings. In Table 8, we find that XGBoost is always better or equally good to the STAR model for the noise disturbance indicators.
The improvements of XGBoost over STAR appear small in terms of the overall MSE, being under 1%, but there are still differences between prevalences predicted for each neighborhood as indicated by the 84–97% correlation. The training and prediction time is much improved even in the XGBoost model that searches for the optimal hyperparameters. The training and prediction times are around 10% in the health monitor, under 1% in the housing survey, and around 5% in the noise disturbance of the STAR model.
Discussion
Ease of application
We investigated machine learning for small area estimation using gradient boosted trees. The idea of machine learning is to use a generic learning algorithm that can be applied to any new problem. The algorithm works as a ‘black box’ model: we must only define the features as input and labels as output. An accurate model is learned as a result. This means that an explicit model specification is not required, as is the case with statistical models.
The generic learning algorithm is very flexible: it can learn nonlinear effects, arbitrary interactions to several degrees, and complex spatial patterns. Spatial heterogeneity remains in the the survey data even after accounting for the features, so special attention should be paid to the spatial component. Simple x and ycoordinates work well, but oblique coordinates represent a feature transformation that may improve the accuracy. The approach allows for any possible interactions between location and the features in a flexible way, so it can also mimic Geographically Weighted Regression (GWR) if necessary.
Model application is straightforward. This model can be fitted into the entire Dutch population instead of splitting the data into subsets. The original data set can be used directly because the decision trees perform automatic feature selection, scaling, and splitting. Missing values can be used in the model instead of imputing them with complex methods. XGBoost saves a lot of time in data preprocessing, model specification, and prediction compared to the STAR model.
Accuracy of the models
All models achieved a significant improvement over the null model in our example task, indicating that there is some relationship between the demographic and spatial features to the survey outcomes. The null model is useless in practice because it predicts the same prevalence in each area. Otherwise the models appear very close to each other in the overall metrics. The models also have a similar profile of false positive and true positive rates at different threshold values. The calibration curves show that every model is wellcalibrated. Using oblique coordinates consistently resulted in lower errors than x and ycoordinates in the noise prediction task. It is possible that the signal is mostly spatial in this task and the smoothing effect benefits the model by removing orthogonal artifacts [19].
However, there are some differences if we look at the actual predictions of ‘drinker’ prevalence in each small area. Table 4 indicates that there are few neighbourhoods (0.6%) with more than \(\pm 5\%\) percentage point difference in predicted prevalences, even though these can differ up to \(\pm 12\%\) between XGBoost vs. STAR. Neighbourhoods with small but significant differences in the 0–5% range are more common. We could not identify characteristics of neighbourhoods that cause this difference, but spatial trends are identifiable in the right panel of Fig. 1. The STAR model has a more elaborate spatial model, while XGBoost has more flexibility in specifying how the demographic features affect the outcome. It is not possible to learn the spatial effect from very few respondents, but the spatial effect is able to compensate a biased model if many respondents are available. This bias could be caused by an oversimplified model specification or the data missing important features. For example, the study that introduced the original STAR model [4] found implausible estimates of smoking prevalence caused by the model specification missing the level of ‘education’ combined with few respondents in the neighbourhood.
These findings suggest that the overall metric may indicate little difference between the models whereas the actual prediction task shows considerable differences. It may be beneficial to pursue marginally more accurate models for better predictions into small areas. The ultimate goal is to predict prevalences accurately at neighborhood level, and we hope that improvement in accuracy metrics works as a surrogate measure of this ability. The overall metric is no guarantee that the model is better for small areas. For this reason, we verified that XGBoost was uniformly better for all area sizes. The smallest difference was observed for very small areas.
Interpretation of model fits
In many cases it is of interest to interpret the predictive model. The STAR model is directly interpretable: each of the terms describes how the prediction changes as a function of one feature value when all other features are held constant. It is possible to calculate both effect sizes and statistical significance from this model. In Fig. 4 in the Appendix, we plot all the different terms included in the model. Even though the model is interpretable in theory, it is quite challenging to understand the effect of several features (age, sex, ethnicity, marital_status, education) since this model includes so many interactions.
Shapley additive explanations [22] is one approach to the problem of interpreting machine learning models. A Shapley value is calculated for every feature value of every individual. On a conceptual level, the SHAP values explain every individual’s prediction as a sum of contributions of their features. In Fig. 5 in the Appendix, we plot the mean SHAP value of XGBoost at every feature value. They provide an interpretation which is very similar to the STAR model.
Limitations and possible extensions
Many other surveys that allow the linking of individual’s survey data to their administrative data could be investigated with the same method. The main limitation in our approach is the amount and quality of data. Regression based SAE requires an administrative data set for the population and a survey data set of reasonable size for a subset of the population.
The Netherlands collects a high quality administrative data set which is available in a secured CBS environment, but this is not the case in many other countries. Many features were available to train a complex model based on machine learning, but with less information simpler models could be competitive. Another limitation may be the survey size. We had tens to hundreds of thousands of respondents in each survey. With considerably fewer respondents it is possible that simpler approaches are sufficient because it is not possible to learn a complex model from little data. We have not investigated the minimum number of respondents required, but this may be a topic for further research.
Our surveys were a stratified sample throughout the Netherlands [1, 2], and the estimation procedure can in principle account for a nonrepresentative sample. This is because a regression approach assumes data of the entire population is available and predicts the answers of individuals who are not in the survey. For example, if high income individuals answer the survey more, directly using the survey would give biased results. The model based estimates should still be correct, because we predict the answers for both high and low income individuals as they are represented in the population. The only requirement is that the model is unbiased for the response, given the individual’s features. Simpler methods like survey weighting take this into account by incorporating design weights and poststratification.
Conclusion
We have used gradient boosted decision trees, as implemented in the ‘XGBoost’ R package, as a machine learning method for providing small area estimates of public health, housing and wellbeing in the population of Netherlands. The labels are responses in a survey and the features come from a registry data set of demographic and spatial variables. These responses are available for a small subset of the population, but the registry data is available for the entire adult population of Netherlands. The missing survey responses can therefore be predicted by a model trained on the observed responses, and these predictions aggregated into the predicted prevalence or average rating in each small area.
We have seen that machine learning has multiple benefits. A single machine learning method can learn the prediction task in a matter of minutes with similar accuracy as purpose built models for small area estimation in the Netherlands. Gradient boosted decision trees are able to slightly improve the accuracy, and drastically improve the training and prediction time. Default hyperparameters worked well and tuning achieved only a small performance improvement. The model is unmatched in the simplicity and ease of use. The statistician does not have to do a complex, time consuming, and errorprone model specification process. The method automatically learns nonlinear feature effects, interactions to many degrees, and complex spatial signal from x and ycoordinates. Accuracy and interpretation could be further improved using the oblique coordinate transformation when the signal was mostly spatial. These results suggest that machine learning is an attractive alternative for small area estimation.
Availability of data and materials
Tables https://statline.rivm.nl/#/RIVM/nl/dataset/50090NED. Code https://gitlab.com/majuvi/smap2020paper. Data can be accessed in the CBS remote access environment by authorized researchers, see https://www.cbs.nl/engb/onzediensten/customisedservicesmicrodata/microdataconductingyourownresearch.
References
Hiemstra M, Dinnissen C. Opbouw en instructie totaalbestand Gezondheidsmonitor Volwassenen 2020. Netherlands: Centraal Bureau voor de Statistiek; 2021.
Janssen S. Woon 2018 onderzoeksdocumentatie en kwaliteitsanalyse. Canada: Bron; 2019. p. 24.
Pfeffermann D. New important developments in small area estimation. Stat Sci. 2013;28(1):40–68.
van de Kassteele J, Zwakhals L, Breugelmans O, Ameling C, van den Brink C. Estimating the prevalence of 26 healthrelated indicators at neighbourhood level in the netherlands using structured additive regression. Int J Health Geogr. 2017;16(1):1–15.
Fahrmeir L, Kneib T, Lang S, Marx B. Regression; models, methods and applications. Berlin: Springer; 2013.
Kriegler B, Berk R. Small area estimation of the homeless in Los Angeles: an application of costsensitive stochastic gradient boosting. Ann Appl Stat. 2010. https://doi.org/10.1214/10AOAS328.
Anderson W, Guikema S, Zaitchik B, Pan W. Methods for estimating population density in datalimited areas: evaluating regression and treebased models in Peru. PloS ONE. 2014;9(7):100037.
Robinson C, Dilkina B, Hubbs J, Zhang W, Guhathakurta S, Brown MA, Pendyala RM. Machine learning approaches for estimating commercial building energy consumption. Appl Energy. 2017;208:889–904.
Kontokosta CE, Hong B, Johnson NE, Starobin D. Using machine learning and small area estimation to predict buildinglevel municipal solid waste generation in cities. Comput Environ Urban Syst. 2018;70:151–62.
Singleton A, Alexiou A, Savani R. Mapping the geodemographics of digital inequality in great Britain: an integration of machine learning into small area estimation. Comput Environ Urban Syst. 2020;82:101486.
Chen T, Guestrin C. Xgboost: a scalable tree boosting system. San Francisco: Proceedings of the 22nd Acm Sigkdd International Conference on Knowledge Discovery and Data Mining; 2016. p. 785–94.
Schreurs E, Jabben J, Verheijen E. Staminamodel description standard model instrumentation for noise assessments. Utrecht: RIVM; 2010.
Hastie T, Tibshirani R, Friedman J. The elements of statistical learning: data mining, inference, and prediction. New York: Springer; 2009.
Wood SN. Fast stable restricted maximum likelihood and marginal likelihood estimation of semiparametric generalized linear models. J R Stat Soc Ser B. 2011;73(1):3–36. https://doi.org/10.1111/j.14679868.2010.00749.x.
Wood SN, Goude Y, Shaw S. Generalized additive models for large data sets. J R Stat Soc Ser C. 2015;64(1):139–55. https://doi.org/10.1111/rssc.12068.
FernándezDelgado M, Cernadas E, Barro S, Amorim D. Do we need hundreds of classifiers to solve real world classification problems? J Mach Learn Res. 2014;15(1):3133–81.
Friedman JH. Greedy function approximation: a gradient boosting machine. Ann Stat. 2001. https://doi.org/10.1214/aos/1013203451.
Chen T, He T, Benesty M, Khotilovich V, Tang Y, Cho H, Chen K, Mitchell R, Cano I, Zhou T, Li M, Xie J, Lin M, Geng Y, Li Y. Xgboost: extreme gradient boosting. Vienna: R package version 1.4.1.1; 2021.
Møller AB, Beucher AM, Pouladi N, Greve MH. Oblique geographic coordinates as covariates for digital soil mapping. SOIL. 2020;6(2):269–89. https://doi.org/10.5194/soil62692020.
Fawcett T. An introduction to roc analysis. Pattern Recognit Lett. 2006;27(8):861–74.
Rufibach K. Use of brier score to assess binary predictions. J Clin Epidemiol. 2010;63(8):938–9.
Lundberg SM, Lee SI. A unified approach to interpreting model predictions. Long Beach: Proceedings of the 31st international Conference on Neural Information Processing Systems; 2017. p. 4768–77.
Acknowledgements
We thank the researchers involved with the Health monitor 2020.
Funding
This research was carried out in the framework of the Strategic Program RIVM (SPR), in which expertise and innovative projects prepare RIVM to respond to future issues in health and sustainability.
Author information
Authors and Affiliations
Contributions
MV was responsible for the model and experiments, authored the manuscript. LM participated in the model development and implemented WoON experiments, exported the online results, and reviewed the manuscript. LZ coordinated the project and reviewed the manuscript. JK authored and approved the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Authorization to the administrative data and a secured identifier linking the data sets was provided by the CBS. Disclosure and tracing of individuals is not possible. Only authorised institutions have access to the CBS microdata under strict conditions for statistical research.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Viljanen, M., Meijerink, L., Zwakhals, L. et al. A machine learning approach to small area estimation: predicting the health, housing and wellbeing of the population of Netherlands. Int J Health Geogr 21, 4 (2022). https://doi.org/10.1186/s12942022003045
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s12942022003045