Preprint
Article

Forecasting Mortality Trends: Advanced Techniques and the Impact of COVID-19

Altmetrics

Downloads

79

Views

31

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

20 September 2024

Posted:

20 September 2024

You are already at the latest version

Alerts
Abstract
The objective of this research is to evaluate four distinct models for multi-population mortality projection in order to ascertain the most effective approach for forecasting the impact of COVID-19 pandemic on mortality. Utilising data from the Human Mortality Database for five countries Finland, Germany, Italy, the Netherlands, and the United States, the study identifies the generalized additive model (GAM) within the age-period-cohort (APC) analytical framework as the most promising for precise mortality forecasts. Consequently, this model serves as the basis for projecting the impact of the COVID-19 pandemic on future mortality rates. By examining various pandemic scenarios, ranging from mild to severe, the study concludes that projections assuming a diminishing impact of the pandemic over time are most consistent, especially for middle-aged and elderly populations. Projections derived from the superior GAM-APC model offer guidance for strategic planning and decision-making within sectors facing the challenges posed by extreme historical mortality events and the uncertain future mortality trajectories.
Keywords: 
Subject: Computer Science and Mathematics  -   Artificial Intelligence and Machine Learning

1. Introduction

In recent decades, life expectancy in the developed world has shown a substantial increase, exemplified by a notable 56.7% reduction in the mortality rate of 80-year-old men in the USA from 1933 to 2019. This trend, reflecting societal advancements and improved healthcare systems, underscores the importance of accurately predicting mortality trends for informed decision-making by policymakers, pension schemes, insurers, and social security systems. The emergence of the COVID-19 pandemic has further underscored the need to understand its impact on mortality trends over the short to mid-term. Our study focuses on assessing the impact of COVID-19 on mortality trends, aiming to enhance existing mortality models while maintaining explainability.
The literature presents a diverse range of approaches to mortality modeling, from traditional stochastic models like those discussed by [31], to modern methods such as the use of machine learning (ML) techniques. Recent studies have shown that methods like pure Gradient Boosting or Random Forests perform exceptionally well [34], while others have explored hierarchical approaches with ML building upon simpler LC models [30]. Furthermore, recent advancements include the application of neural networks to enhance mortality models, such as the Common-Age-Effect Model proposed by [32], and the extension of LC models for multiple populations demonstrated by [33]. Generalized Additive Models (GAMs), a well-established model class was first introduced by [39], and has been applied in mortality context, [38] describes a Bayesian APC model with an autoregressive prior on the age, period and cohort terms, also [28] proposed the use of a bivariate spline function within a GAM to effectively capture two-dimensional cohort information. A similar model was applied by [37] for projecting cancer incidence and mortality in Finland, [36] for mortality in the UK and by [35] for projecting breast cancer mortality in Spain. However, none of them is modeling and extrapolating GAM in APC framework with a tensor product in a multi-populational fashion. The literature on accounting for COVID in mortality projections is also growing, such as [48] that uses stochastic Li and Lee model, [50] that proposes parsimonious decomposition of the mortality surface on a polynomial basis with regularization and cross-validation, [32] that quantifies the impact of the 2020 mortality shock by calibrating the Lee–Carter model. However, none of the aforementioned studies employ GAM in APC and evaluate scenarios post-pandemic.
To compare with traditional stochastic mortality models LC [31] and Age-Period-Cohort (APC) [17], alongside contemporary ML methodology proposed by [30], this study introduces a cross-country GAM within an APC framework, utilizing a smoothed second-order spline with penalty points. To our knowledge, this research is the first to integrate the GAM method into the APC framework in a multi-population context and employ it to extrapolate the impact of COVID-19 on future mortality trends. We examine Germany, Finland, the Netherlands, Italy (representing Europe), and the United States (representing North America) using data from the Human Mortality Database [56]. We employ a cross-country approach, enabling the model to learn from multiple countries concurrently, thereby capturing both universal trends and country-specific variations in mortality patterns.
Our research makes three key contributions. First, we compare the predictive performance of four models, including traditional single-population and contemporary multi-populational models, for modeling and projecting future mortality rates for five countries. We find that the most promising approach is based on a GAM, where cohorts are represented as an interaction between age and period. This framework, adaptable for both aggregated and individual survival data, introduces a state-of-the-art method for the field of multi-populational cross-country mortality research. Secondly, we introduce partial APC plots as a novel graphical tool in mortality research, enabling the analysis of specific APC structures. This tool aids in communicating complex temporal patterns and highlights gender-specific and cross-country differences. Finally, we provide fresh insights into the factors driving the impact of the COVID-19 pandemic on mortality. Through analyzing age, period, and cohort associations in a multi-population context using a GAM within an APC framework, we extrapolate mortality rates into the future. Four scenarios, representing varying degrees of pandemic impact, are evaluated against observed mortality data post-pandemic to identify the most accurate scenario.
The practical implications of our findings are considerable. Our research demonstrates the efficacy of the GAM within the APC framework and its capacity to extrapolate mortality forecasts, accounting for the impact of the COVID-19 pandemic. This offers invaluable insights for policymakers and stakeholders, providing guidance in navigating the uncertainties brought about by the pandemic, with a particular emphasis on matters pertaining to life insurance and pension funds.
Our study follows a structured approach, beginning with an overview of the database and methodology. We then compare the predictive performance of benchmark methods across countries, offering insights into optimal trend forecasting techniques. Additionally, we conduct scenario analyses to evaluate the impact of COVID-19 on mortality trends. Finally, we conclude by summarizing our key findings and implications.

2. Data and Methods

2.1. Data

The study relies on the Human Mortality Database (HMD) [56], which provides mortality rates μ a , t , g , c , death counts D a , t , g , c , and population sizes E a , t , g , c categorized by age a, year t, gender g and country c. The selection of countries is based on their geographic context and the contrasting impact of the COVID-19 pandemic. Specifically, Finland (until 2019), Germany (until 2017), Italy (until 2018), the Netherlands (until 2019) represent Europe, while the United States (until 2019) represents North America.
For the most recent years up until 2023, the Short-Term Mortality Fluctuations (STMF) [57] series offers partial information on mortality rates and population, grouped by week and age categories. However, the study requires data on a yearly basis and in a metric age scale. To address this, we employ a methodology to construct mortality data on a yearly basis and in a metric age scale, which is then combined with the original HMD data. This process is based partly on the proposal by [55] and further detailed in Appendix A.
Figure 1’s heatmaps visualize mortality rate changes in the United States, showing a decreasing trend over the years. Darker red colors indicate higher mortality rates, with females generally exhibiting lower rates than males, especially in older age categories. Infant mortality rates have strongly improved, transitioning from red to white. The diagonal lines symbolize distinct birth cohorts, highlighting the three primary effects examined in this study: age, period, and cohort.

2.2. Methods

The aim of the developed and applied methodology is to enhance mortality modeling by prioritizing predictive performance and future trend forecasting. To achieve this goal, four different methods have been benchmarked and outlined below: traditional ones such as Lee-Carter (LC) and Age-Period-Cohort (APC), a more modern two-step approach using Gradient Boosting Machine (GBM), and finally, Generalized Additive Model (GAM) within the APC framework.

2.2.1. Lee-Carter (LC)

The classical LC model, initially proposed by Lee and Carter (1992) [31], estimates and forecasts mortality rates μ a , t at age a in year t. This model is applicable on single-populational data, considering one gender category for each country:
log μ a , t = α a + β a κ t + ϵ a , t
Here, α a represents the age-specific average over time, β a describes the rate of mortality improvement at age a, and κ t denotes the general trend of mortality at time t. The error terms ϵ a , t reflect the residual age- and year-specific historical influence on mortality rates that the model cannot capture. The authors suggest using the singular value decomposition (SVD) method to find the least squares solution to minimize the residual sum of squares. The original method is embedded in a single-populational Poisson regression model by [62]:
D a , t Poisson ( E a , t · μ a , t )
The expected number of deaths according to the LC fit can be calculated as D a , t = E a , t · μ a , t , using linear predictor η a , t = log μ a , t = α a + β a κ t with constraints like a β a = 1 , t κ t = 0 [13].

2.2.2. Age-Period-Cohort (APC)

The APC model extends the LC model by including a cohort effect γ t a and omitting the age-specific improvement rates, yielding in the following linear predictor: η a , t = α a + κ t + γ t a . The cohort is generally computed by c o h o r t = y e a r a g e . This model is applicable on single-populational data and has its origins in the field of medicine and demography and goes back a long way ([11,17]). However, [8] was the first who considered this type of model in the actuarial field. With the Poisson distribution assumption and the log link function remaining the same, it can be traced back to the general shape of Generalized APC models [13]. The identifiability is ensured with the following constraints: t κ t = 0 , c = t m i n 90 t m a x 0 γ c = 0 , c = t m i n 90 t m a x 0 c γ c = 0 , indicating that the cohort effect oscillates around zero, with no apparent linear trend.

2.2.3. Two-Step Approach with Gradient Boosting Machine (GBM)

In this study, we adopt a two-step approach proposed by [30] to refine mortality rate estimations derived from the LC model using Gradient Boosting Machine (GBM).
Firstly, we employ the LC model to estimate mortality rates μ a , t , g , c L C separately for each country c and gender g. Secondly, we leverage GBM to adjust these estimations by estimating the improvement factor q a , t , g , c , which corrects for underestimations (values greater than 1) or overestimations (values smaller than 1). This step involves training GBM with hyperparameter optimization on a multi-populational level using age, year, cohort, gender, and country as features, with death counts D a , t , g , c as the target variable:
D a , t , g , c Poisson ( q a , t , g , c · μ a , t , g , c L C = μ a , t , g , c · E a , t , g , c ) .
The adapted exposure E ˜ a , t , g , c is calculated as μ a , t , g , c L C · E a , t , g , c . Although the software does not permit the direct inclusion of E ˜ a , t , g , c as an offset, we circumvent this limitation by scaling the death counts by exposure D a , t , g , c / E ˜ a , t , g , c and using E ˜ a , t , g , c as weights, a method shown to be mathematically equivalent to using death counts as target and exposure as offset in the Poisson case by [10]. Details on the GBM methodology are given in Appendix B. Finally, the refined mortality rates are obtained as μ a , t , g , c = μ a , t , g , c L C · q a , t , g , c .

2.2.4. Generalized Additive Model (GAM) in APC framework

We integrate the APC framework into GAM in a multi-populational setting, allowing for the modeling of nonlinear, smooth effect structures and facilitating the capture of complex relationships.
In the traditional regression framework, collinearity arises among the three temporal components (age, period, and cohort), leading to identification problems. To mitigate this, we employ a bivariate tensor product with penalized B-splines between age and period, establishing a two-dimensional interaction surface. This surface inherently incorporates cohort information along its diagonals, as illustrated in Figure 1. By doing so, we address the identification problem without imposing restrictive assumptions or constraints [17,28].
By employing multi-populational modeling, within the same GAM framework, we estimate a separate bivariate function for each country and gender interaction. This enables the capture of specific mortality patterns within each subpopulation while allowing countries to learn from each other’s experiences through the intercept term.
Finally, we fit a semiparametric additive Poisson regression with a log link, using death counts D a , t , g , c as the target and offsetting for population size E a , t , g , c . The model structure is formulated as follows:
log ( μ a , t , g , c ) = β 0 + f a , t , g , c ( a g e , t i m e ) + log ( E a , t , g , c )
Here, f a , t , g , c represents the bivariate function for the interaction of age a and period t, specific to each gender g and country c combination.
To visualize the marginal effects of each component effectively, temporal developments are condensed in one specific dimension (either age, period, or cohort) and averaged over the respective other component. This approach allows for examining the effects of age or period by country and gender while considering the cohort values as post-stratification [18,27,41]:
f a , g , c ( a g e ) = 1 T t i m e T f a , t , g , c ( t i m e | a g e ) f t , g , c ( t i m e ) = 1 A a g e A f a , t , g , c ( a g e | t i m e ) f c , g , c ( c o h o r t ) = 1 A · T a g e A t i m e T f a , t , g , c ( a g e , t i m e | c o h o r t )
For forecasting purposes, the impact of COVID-19 on mortality rates is incorporated into the mortality model using an additional variable called c o v i d . This variable is specific to each country c and takes the value of 0 for years until 2019 and 1 for the years 2020 and 2021, representing the period during which the COVID-19 pandemic has proven to have a strong impact. The values taken for future predictions are subject to the scenario assumptions elaborated in the Results section.
log ( μ a , t , g , c ) = β 0 + f a , t , g , c ( a g e , t i m e ) + β c o v i d c o v i d * c + log ( E a , t , g , c )
The interaction c o v i d * c allows the model to capture the country-specific impact of the pandemic on mortality rates during the years 2020 and 2021 and thus project into the future.
To forecast the mortality rates into the future we follow differentiated approach as outlined in Figure 2. For the time-dependent components (period and cohort) of the LC, APC as well as the final rates of the two-step approach with GBM ARIMA model as random walk with linear drift and automated parameter estimation is selected [15,16,29]. The forecast of mortality rates for GAM is based on extrapolation of the spline fit, assuming a globally quadratic structure and a persistent curvature outside the observed data. The choice of degrees of freedom for the covariates can be either predetermined or estimated automatically. We caution against extrapolating too far into the future [41].
We employed R for the technical implementation of the LC and APC models [61], and their forecasting [29], as well as for GAM [26]. Additionally, for the two-step approach, we utilized Python to implement a Light GBM algorithm [58] and Hyperopt [60] for hyperparameter optimization.
To evaluate the accuracy of the models, the root-mean-square error (RMSE) is calculated, which measures the average difference between the mortality rates μ ^ a , t , g , c and the observed mortality rates μ a , t , g , c across all ages a, years t, genders g and countries c. The RMSE is computed as follows:
R M S E a , t , g , c = a A t T g G c C ( μ ^ a , t , g , c μ a , t , g , c ) 2 n
where n represents the total number of observations.

3. Results

This section begins with an evaluation of predictive performance, both in-sample and out-of-sample, for all four models. Table 1 gives an overview of the different training and test sets used in the analysis. It should be noted that for the purposes of benchmarking, years up to and including 2019 are used, on the assumption that they are not affected by the impact of the COVID-19 pandemic. This approach eliminates any year-specific artefacts that might otherwise affect the assessment of the predictive performance of the models themselves. The single-populational models LC, APC, and GBM (based on LC in the first step) are limited to using data from Germany from 1990 onwards due to data inconsistencies before reunification. In order to maintain comparability across the tensor-product spanned by years and ages, it is necessary to ensure that the multi-population GAM is coherent. This is because GAM requires a joint coverage of years ‒ a prerequisite for coherent modelling. As a result, available years for all countries will be restricted to 1990-2015 to ensure sufficient training for capturing current effects on mortality rates and projecting them into the future for 2016-2019.
Focusing on in-sample RMSE for single-populational LC, APC, multi-populational GBM, and GAM models, we fit the training periods range from 1950 to 2010 for Finland, Italy, the Netherlands, and the US, and from 1990 to 2010 for Germany. GAM models are fitted from 1990 to 2015 for all countries. In-sample error is calculated within the same range as the model training period and reveals that the two-step approach with GBM and GAM in the APC framework exhibit superior performance over traditional stochastic mortality models LC and APC. There is no clear preference between GBM and GAM, both achieving strong reductions in RMSE compared to LC and APC for in-sample predictions. Table A1 in Appendix C provides a comprehensive analysis of the goodness-of-fit.
Table 2 presents the out-of-sample results for different models, indicating the forecasting quality across countries and genders. Out-of-sample RMSE is calculated based on forecast periods ranging from 2011 to 2019 for LC, APC, and GBM models, while GAM forecasts span from 2016 to 2019 for all countries.
Although different forecast methods are applied and different years are tested, RMSE serves as a comparable estimator for mean error. While GBM shows improved fit and forecast performance, GAM exhibits stronger improvement in forecast accuracy, especially for short-term forecasts within a few years. The GAM-based APC model achieves notable reductions not only in fit but also in forecast errors compared to the classical APC model, implying improved accuracy of mortality rate predictions. The choice of GAM for further analysis is justified based on its superior forecast performance.
One key highlight of the GAM in APC framework is its multi-populational nature, enabling the interpretation of exponential marginal effects, with age, period, and cohort being the components analyzed further. Figure 3 displays the effects of the model based on these components: Both age and cohort effects conform to expectations, thus higher ages correspond to higher mortality rates, while cohort effects reflect variations stemming from individuals’ unique experiences based on their birth year [2,3,4]. Conversely, similar reverse effects are observable for age and cohort.
The period effect, which indicates the improvement of mortality over time and is influenced by external factors affecting all age groups equally at a given point in time, exhibits a notable increase leading up to 2020 [1,14]. However, the period effect notably spikes, particularly approaching 2020, signifying a strong influence of this year on mortality rates. Specifically, the strides made in improving mortality rates over preceding years or even decades appear to have been offset by the effect of COVID-19, resulting in a regression to levels observed around 2003. Appendix C contains this figure stratified by countries and genders for more detailed interpretation.
Following the benchmarking of the four models, we delve into an analysis of the effects of each temporal component on mortality rates throughout the considered time period. Finally, based on GAM in APC frameworkwe assess the trend forecast into the future considering COVID-19 impact.
Even though the impact of COVID-19 is, fortunately, diminishing in the present time, its impact on historical (and future) data and the persisting uncertainties in the future cannot be overlooked. These factors necessitate continued attention for many years to come. It is important to note that the idea and methodology employed in this study extend beyond COVID-19 and encompass other events, especially those occurring at the edge of time series, which can present challenges for standard breakpoint analyses.
The scenarios depicted herein must be viewed in light of a meticulous plausibility assessment and the underlying assumptions. To validate the scenario-based findings, we engaged with epidemiological experts. This collaboration is paramount for ensuring the reliability and robustness of the analysis, especially given the complexities inherent in such events. Comparing our framework with expert opinions in the literature, as done by [9], reveals a high level of agreement.
Four different scenarios are defined to provide insights into the potential future trajectories of mortality, taking into account various assumptions about the impact of COVID-19. Table 3 summarizes the different training and test periods used in the scenario analysis, now considering also years after 2019.
Scenario 1: In this scenario, the assumption is made that COVID-19 will disappear in the future. The model is trained using data up to 2019 only, excluding the years 2020 and 2021. The predictions are then made for the years 2020-2025, assuming no long-term effects of COVID-19 on mortality. This approach treats COVID-19 as a special event that does not have any influence on mortality in the upcoming years. The model focuses on the underlying mortality trend without considering the impact of COVID-19 and thus without the covid-indicator.
Scenario 2: In Scenario 2, the expectation is that the full COVID-effect will persist in the future. The model is trained on mortality data up to and including 2021, encompassing years impacted by COVID-19. The indicator variable c o v i d is incorporated, set to 0 for years before 2019 and 1 for 2020 and 2021. Predictions are then made for subsequent years, assuming c o v i d remains set to 1 to indicate the ongoing presence of COVID-19. This scenario assumes that the COVID-related situation will continue similarly as it did until 2021, and that it will have a consistent effect on mortality over the coming years.
Scenario 3: In this scenario, the assumption is made that the COVID-effect will flatten over time. Similar to Scenario 2, the model is trained using mortality data up to and including 2021. However, in this case, the COVID-19 effect is assumed to decrease exponentially over time. The predictions take into account the diminishing impact of COVID-19 in the future, reflecting the belief that the effect of COVID-19 on health and mortality will slowly flatten out and eventually disappear after a few years. Therefore, the c o v i d indicator takes exponentially decreasing values between 1 and 0 for each year.
Scenario 4: In Scenario 4, the focus is on adjusting for excess mortality associated with COVID-19. The years 2020 and 2021 are treated as outliers, but the excess mortality is explicitly considered. The model calculates the difference between the expected death counts and the actual mortality counts for these two years to account for the excess mortality. It is assumed that the excess mortality will not average out over the coming years and must be explicitly accounted for. The baseline mortality, representing the mortality trend without the influence of COVID-19, remains unchanged. This scenario allows for separate consideration of the excess mortality caused by COVID-19 while keeping the baseline mortality unchanged.
Figure 4 presents outcomes for four scenarios across various countries and genders, focusing on 80-year-olds. We chose age 80 for illustration, but the overall structure is similar for other ages, albeit with less intense COVID-19 effects for younger age groups. Notable high value outliers for Italy, the US, and the Netherlands in 2020 and 2021 indicate a pronounced impact of COVID-19. Different trend forecasts capture varying effects of COVID-19 on mortality rates. Scenario 1 represents a milder assumption, while Scenario 2 depicts a more severe projection. Future forecasts vary by country and age group, influenced by past behaviors and responses to the pandemic. Trend forecasts in different scenarios generally align with plausibility. Excluding 2020 and 2021 in Scenario 1 results in lower mortality rates, while adjusting for excess mortality in Scenario 4 leads to even lower rates, considering the population shift due to previous deaths. Scenario 2 with full COVID effect shows the highest mortality trend, particularly evident for older age groups. However, younger populations appear less affected. Scenario 3 starts similar to the Scenario 2 but gradually decreases over time. Different countries show distinct trends, likely influenced by COVID’s demographic and political impact. The Netherlands’ observed rates in years 2022 and 2023 align with the Scenario 2, whereas Italy and the US show patterns more consistent with the flattening effect. German scenarios show less differentiation, aligning closely with observations, while Finland’s forecast suggests lower mortality rates than observed.
The heatmap (Figure 5) illustrates both a cross-country and country-specific perspective on the y-axis, while age groups are delineated on the x-axis. Colors within the heatmap indicate the normalized RMSE (NRMSE) values for the years 2022 and 2023, when compared with the observed mortality rates from STMF and processed in accordance with Appendix A.
NRMSE is calculated by dividing RMSE by the mean of observed mortality rates in a specific category with values ranging usually from 0 to 1. A value of 0 means perfect predictions, while 1 suggests predictions are as accurate as predicting the mean. Values above 1 often suggest that the model’s performance may not be optimal. We prioritize the analysis on males since previous findings suggest a more pronounced emphasis on the COVID effect for this gender, although the overall patterns for females exhibit similarity. For males in 20-year age brackets, the graph shows a generally good overall forecast accuracy, especially for ages over 20, as colors tend towards blue for middle and older ages, indicating smaller NRMSE values, closer to 0, suggesting better forecast accuracy. No clear scenario preference is evident in the cross-country view across all age groups. In general, Scenario 3 (flattening COVID effect) tends to perform well for middle-aged individuals and in addition also Scenario 4 (COVID full effect) for older ages. Substantial variations in scenario performance are observed across different countries and age groups. For younger age groups, Scenario 1 (no COVID effect) performs best in Italy and the Netherlands, where substantial COVID impact was observed. Middle-aged groups demonstrate similarly high performance across all scenarios. Older age groups show stronger scenario differences with a clear preference for Scenarios 2 and 3, indicating better fit. Scenarios do not perform well for those under 19, possibly due to the unique characteristics and weak impact of COVID in this age group. Appendix C contains the same graph with individual ages instead of grouped age buckets for more detailed overview.

4. Conclusion

To summarize, this research work focused on addressing the challenge of capturing the mortalit-related extreme event at the edge of a time series, in particular, COVID-19 effect in future mortality forecasting.
The study applies the GAM in the APC framework with penalized smoothing second-order splines to forecast future mortality trends in a cross-country fashion. To compare the predictive performance against traditional stochastic mortality models and more contemporary approaches with GBM, the research considers data of Germany, Finland, the Netherlands, Italy, and the United States retrieved from HMD, supplemented with prepared data from STMF. The study defines four future scenarios to facilitate trend forecasting and provide insights into the potential impact of COVID-19 on mortality rates, spanning from mild to severe. To ensure a rigorous assessment, these scenarios and their underlying assumptions were thoroughly evaluated and discussed in collaboration with epidemiological experts. This approach including the content of scenarios aligns with existing literature and enhances the credibility of the forecast analysis [9].
Overall, this work contributes to the existing literature by introducing traditional, enhanced and novel models, comparing different approaches, and providing insights into the future development of mortality rates, considering the impact of COVID-19 in a cross-country context. The specific contribution of the GAM approach with the APC framework in this research lies in its novel application for mortality trend forecasting, particularly incorporating the impact of COVID-19 in multi-populational cross-country fashion.
Despite the waning impact of COVID-19 at present, it is crucial to recognize the enduring importance of historical data and the persisting uncertainties that lie ahead. These factors emphasize the need for ongoing attention in the years to come. It is important to acknowledge that the concept and methodology utilized in this study extend beyond COVID-19, encompassing other events that occur at the fringes of time series data. Looking towards future research directions, the GAM with APC framework has a promising potential for expanding the feature set by the inclusion of socioeconomic status, income, education as additional factors, allowing for a more comprehensive understanding of mortality trends.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Data Preparation

This section discusses the methodology employed to enrich existing mortality data obtained from [57], focusing on the number of deaths and population size for recent years absent in the [56] dataset. The primary challenge addressed is the aggregation of data into rough age categories, while the study requires a metric age scale.
The methodology involves several steps. Firstly, weekly population sizes are derived from the mortality dataset, followed by extrapolation to annual levels. Using mortality rates and death counts, the weekly population size can be calculated. This weekly data is then aggregated to annual figures. Similarly, weekly death counts are summed to obtain annual totals. To construct annual death counts and populations for individual ages for the aforementioned years, specific procedures were applied, as described below. The methodology ensures that the derived data aligns with observed mortality patterns within each age group.
Once the weekly population is extrapolated to the annual level by multiplying with a factor of 52, the approach leverages cohort-wise population patterns from previous years (2015-2019) and assumes a similar age distribution for 2020-2023. The initial population course i.e. for 2020 is created by shifting the population size pattern of 2019 one year forward. This shift leads to an initial gap at age 0 in 2020, which is linearly extrapolated based on data from 2018 and 2019. The resulting population values are adjusted to match observed data within age groups.
A three-stage approach is employed to distribute death counts from grouped to metric age scale on an annual basis. Firstly, averaged weights for each age in each age bucket [ l , u ] are computed based on data from the previous five years (2015-2019): w { l , u } = D { l , u } 1 u l + 1 · D [ l , u ] . Secondly, these weights are applied to the averaged death counts in each age group to correct for deviations from the mean: D { l , u } * = ( 1 5 j = 2015 2019 w { l , u } , j ) · 1 u l + 1 · D [ l , u ] , 2020 . Finally, the corrected death counts are adjusted to ensure equal counts in both grouped and metric versions within each age group: D { l , u } , 2020 = k { l , u } · D { l , u } * , with k { l , u } = D [ l , u ] , 2020 i = l u D i , 2020 *
The resulting mortality rates are computed by dividing death counts by population size for each individual age and subpopulation. This enriched mortality data is used to impute the [56] dataset for the years 2020-2023. The same procedure is applied across all subpopulations and missing years.

Appendix B. Details on Gradient Boosting Machine

Gradient Boosting is another form of an ensemble learner that is based on the weighted combination of weak predictive learners such as Decision Trees, usually outperforming Random Forest [23]. The model is built stepwise and optimized by a differentiable loss function, minimizing the in-sample loss [23]. It builds the model stepwise, like other boosting methods, and generalizes them by allowing optimization of any differentiable loss function. Whereas in bagging multiple samples of the original training dataset are used to fit a separate decision tree to each one independent of the others and to combine all trees into a single predictive model, boosting grows the trees sequentially, meaning the information gained from the previous trees is used to grow the current one. This helps to overcome the major issue of training a single large Decision Tree by possibly resulting in an overfitting problem. The gradient boosting algorithm instead learns by constructing a new model based on the previous one and adding the i t h base learner h a , t , g , c ( i ) :
q ^ a , t , g , c ( i ) = q ^ a , t , g , c ( i 1 ) + λ i h a , t , g , c ( i )
The model is improved in such a way that the current residual will be used as an outcome to fit a new Decision Tree and to add this into the originally fitted function with the notion to update the residuals. So, the gradient boosting algorithm fits the new predictor to the residual errors made by the previous predictor. The shrinkage parameter λ i helps to run the process even slower allowing for more trees and more detailed enhancement of the residuals. All parameters of the Decision Trees undergo optimization through the training of Poisson boosted trees, with the objective of minimizing the negative log-likelihood associated with the Poisson distribution, serving as the designated loss function. Overall in contrary to the bagging methodology, each tree depends on the previous ones [7]. Even though the gradient boosting keeps on minimizing the errors, this can cause overfitting in case of a lot of noise in the data and is computationally time and memory expensive, especially because trees are built sequentially (not in parallel as the Random Forest do). Due to the high flexibility, the gradient boosting algorithm also tends to be harder to tune than Random Forest [23]. In this study, we specifically utilized LightGBM [59] employing Microsoft’s library for implementing these models, which have demonstrated high accuracy in various scenarios [58].

Appendix C. Additional Results

The analysis in Table A1 highlights the superior in-sample predictive performance of the two-step GBM and GAM models within the APC framework over traditional LC and APC models, with no clear preference between GBM and GAM, across various training periods for different countries.
Table A1. In-sample RMSE comparison for LC, APC, GBM, and GAM models. LC, APC, and GBM are fitted from 1950 to 2010 (Finland, Italy, Netherlands, US) and 1990 to 2010 (Germany). GAM is fitted from 1990 to 2015 for all countries.
Table A1. In-sample RMSE comparison for LC, APC, GBM, and GAM models. LC, APC, and GBM are fitted from 1950 to 2010 (Finland, Italy, Netherlands, US) and 1990 to 2010 (Germany). GAM is fitted from 1990 to 2015 for all countries.
Country Female Male
LC APC GBM GAM LC APC GBM GAM
FIN 0.0045 0.0015 0.0035 0.0011 0.0072 0.0027 0.0066 0.0013
DE 0.0015 0.0022 0.0004 0.001 0.0021 0.0021 0.0007 0.001
ITA 0.0025 0.0021 0.001 0.001 0.0012 0.0025 0.0008 0.001
NLD 0.0019 0.0032 0.0014 0.001 0.0017 0.0015 0.0014 0.001
US 0.0014 0.0033 0.0005 0.0013 0.0017 0.0028 0.0004 0.0011
Figure A1. Estimated marginal effects of age, period, and cohort on mortality rates, differentiated by countries and genders. The horizontal lines represent the level of no effect. The GAM model was fitted for the years 1990-2015 and ages 0-90.
Figure A1. Estimated marginal effects of age, period, and cohort on mortality rates, differentiated by countries and genders. The horizontal lines represent the level of no effect. The GAM model was fitted for the years 1990-2015 and ages 0-90.
Preprints 118774 g0a1
GAM enables the interpretation of exponential marginal effects, with age, period, and cohort being the components analyzed and differentiated by countries and gender. Notably, while the descending trend in period effect for women is relatively consistent and shallow across all countries, men exhibit a much steeper decline, indicating a stronger improvement in mortality rates over the years. There are noticeable increases in mortality rates for Italy and the US in recent years, particularly for US males, which may be associated with factors such as the opioid crisis.
Figure A2. Heatmap showing the normalized RMSE of scenarios for extrapolated years 2022 and 2023 for males across different countries and individual ages.
Figure A2. Heatmap showing the normalized RMSE of scenarios for extrapolated years 2022 and 2023 for males across different countries and individual ages.
Preprints 118774 g0a2
The heatmap depicted in Figure A2 offers a detailed examination on an individual age basis for assessing the scenario analysis across the years 2022 and 2023.

References

  1. Rosella, L.C.; Calzavara, A.; Frank, J.W.; Fitzpatrick, T.; Donnelly, P.D.; Henry, D. Narrowing mortality gap between men and women over two decades: a registry-based study in Ontario, Canada. BMJ Open 2016, 6, e012564. [CrossRef]
  2. Hamilton, A. D.; Jang, J. B.; Patrick, M. E.; Schulenberg, J. E.; & Keyes, K. M. Age, period and cohort effects in frequent cannabis use among US students: 1991–2018. Addiction 2019, 114(10), 1763-1772. [CrossRef]
  3. Crimmins, E. M.; Shim, H.; Zhang, Y. S.; & Kim, J. K. Differences between men and women in mortality and the health dimensions of the morbidity process. Clinical Chemistry 2019, 65(1), 135-145. [CrossRef]
  4. Trovato, F.; & Lalu, N. M. Narrowing sex differentials in life expectancy in the industrialized world: Early 1970’s to early 1990’s. Social Biology 1996, 43(1-2), 20-37. [CrossRef]
  5. Reither, E. N.; Hauser, R. M.; & Yang, Y. Do birth cohorts matter? Age-period-cohort analyses of the obesity epidemic in the United States. Social Science & Medicine 2009, 69(10), 1439-1448. [CrossRef]
  6. Olshansky, S. J.; & Carnes, B. A. Ever since Gompertz. Demography 1997, 34, 1-15. [CrossRef]
  7. Deprez, P.; Shevchenko, P. V.; & Wüthrich, M. V. Machine learning techniques for mortality modeling. European Actuarial Journal 2017, 7, 337-352. [CrossRef]
  8. Currie, I. D.; Durban, M.; & Eilers, P. H. Smoothing and forecasting mortality rates. Statistical Modelling 2004, 4(4), 279-298. [CrossRef]
  9. Telenti, A.; Arvin, A.; Corey, L.; Corti, D.; Diamond, M. S.; Garcìa-Sastre, A.; ... & Virgin, H. W. After the pandemic: perspectives on the future trajectory of COVID-19. Nature 2021, 596(7873), 495-504. [CrossRef]
  10. Yan, J.; Guszcza, J.; Flynn, M.; & Wu, C. S. P. Applications of the offset in property-casualty predictive modeling. Casualty Actuarial Society e-Forum 2009, 1(1), 366-385.
  11. Hobcraft, J.; Menken, J.; & Preston, S. Age, period, and cohort effects in demography: a review. Springer 1985. [CrossRef]
  12. Therneau, T.; Atkinson, B.; Ripley, B.; & Ripley, B. (2015). Package rpart. Available online: cran. ma. ic. ac. uk/web/packages/rpart/rpart.pdf (accessed on 25 July 2024).
  13. Villegas Ramirez, A. (2015). Mortality: modelling, socio-economic differences and basis risk (Doctoral dissertation, City University London).
  14. Perls, T. T.; & Fretts, R. C. Why Women Live Longer than Men-What gives women the extra years? Scientific American 1998, (2), 100-103.
  15. Bai, J.; & Perron, P. Estimating and testing linear models with multiple structural changes. Econometrica 1998. [CrossRef]
  16. Zeileis, A.; Kleiber, C.; Kramer, W.; & Hornik, K. Testing and Dating of Structural Changes in Practice, Computational Statistics and Data Analysis. Computational Statistics & Data Analysis 2003. [CrossRef]
  17. Clayton, D.; & Schifflers, E. Models for temporal variation in cancer rates. II: age–period–cohort models. Statistics in medicine 1987, 6(4), 469-481. [CrossRef]
  18. Bauer, A.; Weigert, M.; & Jalal, H. APCtools: Descriptive and Model-based Age-Period-Cohort Analysis. Journal of Open Source Software 2022 , 7(73), 4056. [CrossRef]
  19. Carnes, B. A.; Olshansky, S. J.; & Grahn, D. Continuing the search for a law of mortality. Population and development review 1996, 231-264. [CrossRef]
  20. James, G.; Witten, D.; Hastie, T.; & Tibshirani, R. ISLR: Data for an Introduction to Statistical Learning with Applications in R. R package version 2017, 1(7).
  21. Gordon, A. D.; Breiman, L.; Friedman, J. H.; Olshen, R. A.; & Stone, C. J. Classification and Regression Trees. Biometrics 1984, 40(3), 874. [CrossRef]
  22. James, G.; Witten, D.; Hastie, T.; Tibshirani, R.; et al. An introduction to statistical learning. Springer 2013, 112. [CrossRef]
  23. Hastie, T.; Tibshirani, R.; & Friedman, J. H. The elements of statistical learning: data mining, inference, and prediction. Springer 2009, 2. [CrossRef]
  24. RColorBrewer, S.; & Liaw, A. Package ‘randomforest’. University of California, Berkeley: Berkeley, CA, USA 2018.
  25. Ridgeway, G.; & Ridgeway, G. The gbm package. R Foundation for Statistical Computing, Vienna, Austria 2004, 5(3).
  26. Wood, S.; & Wood, S. Package ‘mgcv’. R package version 2015, 1(29), 729.
  27. Weigert, M.; Bauer, A.; Gernert, J.; Karl, M.; Nalmpatian, A.; Küchenhoff, H.; & Schmude, J. Semiparametric APC analysis of destination choice patterns: Using generalized additive models to quantify the impact of age, period, and cohort on travel distances. Tourism Economics 2022, 28(5), 1377-1400. [CrossRef]
  28. Clements, M. S.; Armstrong, B. K.; & Moolgavkar, S. H. Lung cancer rate predictions using generalized additive models. Biostatistics 2005, 6(4), 576-589. [CrossRef]
  29. Hyndman, R. J.; & Khandakar, Y. Automatic time series forecasting: the forecast package for R. Journal of statistical software 2008, 27, 1-22. [CrossRef]
  30. Levantesi, S.; & Pizzorusso, V. Application of machine learning to mortality modeling and forecasting. Risks 2019, 7(1), 26. [CrossRef]
  31. Lee, R. D.; & Carter, L. R. Modeling and forecasting US mortality. Journal of the American statistical association 1992, 87(419), 659-671. [CrossRef]
  32. Schnürch, S.; Kleinow, T.; Korn, R.; & Wagner, A. The impact of mortality shocks on modelling and insurance valuation as exemplified by COVID-19. Annals of Actuarial Science 2022, 16(3), 498-526. [CrossRef]
  33. Richman, R.; & Wüthrich, M. V. A neural network extension of the Lee–Carter model to multiple populations. Annals of Actuarial Science 2021, 15(2), 346-366. [CrossRef]
  34. Bjerre, D. S. Tree-based machine learning methods for modeling and forecasting mortality. ASTIN Bulletin: The Journal of the IAA 2022, 52(3), 765-787. [CrossRef]
  35. Clèries, R.; Ribes, J.; Esteban, L.; Martinez, J. M.; & Borras, J. M. Time trends of breast cancer mortality in Spain during the period 1977–2001 and Bayesian approach for projections during 2002–2016. Annals of oncology 2006, 17(12), 1783-1791. [CrossRef]
  36. Dodds, S.; Williams, L. J.; Roguski, A.; Vennelle, M.; Douglas, N. J.; Kotoulas, S.-C.; & Riha, R. L. Mortality and morbidity in obstructive sleep apnoea–hypopnoea syndrome: results from a 30-year prospective cohort study. ERJ Open Research 2020, 6(3). [CrossRef]
  37. Bashir, S. A.; & Estève, J. Projecting cancer incidence and mortality using Bayesian age-period-cohort models. Journal of Epidemiology and Biostatistics 2001, 6(3), 287-296. [CrossRef]
  38. Bray, I. Application of Markov chain Monte Carlo methods to projecting cancer incidence and mortality. Journal of the Royal Statistical Society Series C: Applied Statistics 2002, 51(2), 151-164. [CrossRef]
  39. Hastie, T.; & Tibshirani, R. Generalized additive models: some applications. Journal of the American Statistical Association 1987, 82(398), 371-386.
  40. Nelder, J. A.; & Wedderburn, R. W. M. Generalized linear models. Journal of the Royal Statistical Society Series A: Statistics in Society 1972, 135(3), 370-384.
  41. Wood, S. N. Generalized additive models: an introduction with R. CRC press 2017. [CrossRef]
  42. Fritz, C.; De Nicola, G.; Rave, M.; Weigert, M.; Khazaei, Y.; Berger, U.; Küchenhoff, H.; & Kauermann, G. Statistical modelling of COVID-19 data: Putting generalized additive models to work. Statistical Modelling 2022. [CrossRef]
  43. Corlett, R. T.; Primack, R. B.; Devictor, V.; Maas, B.; Goswami, V. R.; Bates, A. E.; Koh, L. P.; Regan, T. J.; Loyola, R.; Pakeman, R. J.; et al. Impacts of the coronavirus pandemic on biodiversity conservation. Biological conservation 2020, 246, 108571. [CrossRef]
  44. Prata, D. N.; Rodrigues, W.; & Bermejo, P. H. Temperature significantly changes COVID-19 transmission in (sub) tropical cities of Brazil. Science of the Total Environment 2020, 729, 138862. [CrossRef]
  45. Ward, M. P.; Xiao, S.; & Zhang, Z. The role of climate during the COVID-19 epidemic in New South Wales, Australia. Transboundary and Emerging Diseases 2020, 67(6), 2313-2317. [CrossRef]
  46. Zhu, Y.; Xie, J.; Huang, F.; & Cao, L. Association between short-term exposure to air pollution and COVID-19 infection: Evidence from China. Science of the total environment 2020, 727, 138704. [CrossRef]
  47. Izadi, F. Generalized additive models to capture the death rates in Canada COVID-19. Mathematics of Public Health: Proceedings of the Seminar on the Mathematical Modelling of COVID-19 2021 (pp. 153-171). Springer. [CrossRef]
  48. Robben, J.; Antonio, K.; & Devriendt, S. Assessing the impact of the COVID-19 shock on a stochastic multi-population mortality model. Risks 2022, 10(2), 26. [CrossRef]
  49. Kupper, L. L.; Janis, J. M.; Karmous, A.; & Greenberg, B. G. Statistical age-period-cohort analysis: a review and critique. Journal of chronic diseases 1985, 38(10), 811-830. [CrossRef]
  50. Barigou, K.; Loisel, S.; & Salhi, Y. Parsimonious predictive mortality modeling by regularization and cross-validation with and without Covid-type effect. Risks 2020, 9(1), 5. [CrossRef]
  51. Yang, Y.; & Land, K. C. Age-period-cohort analysis: New models, methods, and empirical applications. Taylor & Francis 2013.
  52. Carstensen, B. Age–period–cohort models for the Lexis diagram. Statistics in medicine 2007, 26(15), 3018-3045. [CrossRef]
  53. Heuer, C. Modeling of time trends and interactions in vital rates using restricted regression splines. Biometrics 1997, 161-177. [CrossRef]
  54. Eilers, P. H. C.; & Marx, B. D. Flexible smoothing with B-splines and penalties. Statistical science 1996, 11(2), 89-121. [CrossRef]
  55. Robben, J.; Katrien, A.; & Sander, D. Assessing the impact of the COVID-19 shock on a stochastic multi-population mortality model. Risks 2022. [CrossRef]
  56. HMD. Human Mortality Database. University of California, Berkeley (USA), and Max Planck Institute for Demographic Research (Germany) 2024.
  57. STMF. Short-term Mortality Fluctuations. University of California, Berkeley (USA), and Max Planck Institute for Demographic Research (Germany) 2024.
  58. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. The Journal of Machine Learning Research 2011, 12, 2825–2830.
  59. Oram, E.; Dash, P. B.; Naik, B.; Nayak, J.; Vimal, S.; & Nataraj, S. K. Light gradient boosting machine-based phishing webpage detection model using phisher website features of mimic URLs. Pattern Recognition Letters 2021, 152, 100–106. [CrossRef]
  60. Bergstra, J.; Komer, B.; Eliasmith, C.; Yamins, D.; & Cox, D. D. Hyperopt: a python library for model selection and hyperparameter optimization. Computational Science & Discovery 2015, 8(1), 014008. [CrossRef]
  61. Ramirez Villegas, M. A.; Millossovich, P.; & Kaishev, V. (2016). StMoMo: an R package for stochastic mortality modelling. Available online: https://cran.r-project.org/web/packages/StMoMo/StMoMo.pdf (accessed on 25 July 2024).
  62. Brouhns, N.; Denuit, M.; & Vermunt, J. K. A Poisson log-bilinear regression approach to the construction of projected lifetables. Insurance: Mathematics and Economics 2002. [CrossRef]
Figure 1. Heatmaps of mortality rates for the US population are shown, with age groups and periods represented horizontally and vertically, respectively. The diagonal lines display unique cohorts.
Figure 1. Heatmaps of mortality rates for the US population are shown, with age groups and periods represented horizontally and vertically, respectively. The diagonal lines display unique cohorts.
Preprints 118774 g001
Figure 2. Illustration of the models used for fit and forecast.
Figure 2. Illustration of the models used for fit and forecast.
Preprints 118774 g002
Figure 3. The figure illustrates the estimated marginal effects of age, period, and cohort on mortality rates across multiple countries and genders based on GAM fitted for years 1990-2020.
Figure 3. The figure illustrates the estimated marginal effects of age, period, and cohort on mortality rates across multiple countries and genders based on GAM fitted for years 1990-2020.
Preprints 118774 g003
Figure 4. Trend forecasts for 80-year-olds across four distinct scenarios. Training data spans from 1990 to a maximum of 2021, depending on the scenario, with forecasts projected up to 2025. Circles and triangles represent observed rates, with red markers indicating those used for validation purposes.
Figure 4. Trend forecasts for 80-year-olds across four distinct scenarios. Training data spans from 1990 to a maximum of 2021, depending on the scenario, with forecasts projected up to 2025. Circles and triangles represent observed rates, with red markers indicating those used for validation purposes.
Preprints 118774 g004
Figure 5. Heatmap showing the normalized RMSE of scenarios for extrapolated years 2022 and 2023 for males across different countries and age groups. The cross-country section presents a summary of the NRMSE across all countries.
Figure 5. Heatmap showing the normalized RMSE of scenarios for extrapolated years 2022 and 2023 for males across different countries and age groups. The cross-country section presents a summary of the NRMSE across all countries.
Preprints 118774 g005
Table 1. Model training and test periods for benchmarking.
Table 1. Model training and test periods for benchmarking.
Model Country Training set (fitting period) Test set (forecast period)
LC, APC, GBM Finland, Italy, Netherlands, US 1950 - 2010 2011 - 2019
LC, APC, GBM Germany 1990 - 2010 2011 - 2019
GAM Finland, Italy, Netherlands, US, Germany 1990 - 2015 2016 - 2019
Table 2. Out-of-sample RMSE comparison for LC, APC, GBM, and GAM models. Forecast for LC, APC, and GBM based on ARIMA (2011-2019), while GAM extrapolates tensor product (2016-2019).
Table 2. Out-of-sample RMSE comparison for LC, APC, GBM, and GAM models. Forecast for LC, APC, and GBM based on ARIMA (2011-2019), while GAM extrapolates tensor product (2016-2019).
Country Female Male
LC APC GBM GAM LC APC GBM GAM
FIN 0.0021 0.0029 0.0028 0.0012 0.0029 0.0029 0.0027 0.0015
DE 0.0048 0.0046 0.0039 0.0021 0.0052 0.0045 0.0045 0.002
ITA 0.0045 0.0025 0.0044 0.0016 0.0042 0.0021 0.0026 0.0013
NLD 0.003 0.0020 0.0024 0.0013 0.0035 0.0038 0.0027 0.0011
US 0.0023 0.0018 0.0014 0.0010 0.0054 0.0020 0.0031 0.0016
Table 3. Overview of different scenario periods.
Table 3. Overview of different scenario periods.
Scenario Fitting period Forecast period Validation period
1 - Without COVID-effect 1990-2019 2020-2025 2022-2023
2 - Full COVID-effect 1990-2021 2022-2025 2022-2023
3 - Flattening COVID-effect 1990-2021 2022-2025 2022-2023
4 - Excess mortality 1990-2019 2020-2025 2022-2023
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated