Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Dec 8;16:222. doi: 10.1038/s41598-025-29316-4

Contrasting pre-vaccine COVID-19 waves in Italy through functional data analysis

Tobia Boschi 1,#, Jacopo Di Iorio 2,#, Lorenzo Testa 3,4,#, Marzia A Cremona 5,6,✉, Francesca Chiaromonte 4,7,✉
PMCID: PMC12769734  PMID: 41360858

Abstract

This study analyzes mortality patterns during two pre-vaccine COVID-19 waves in Italy, using data from its 107 provinces. Mortality is examined alongside information on mobility, governmental restrictions, and socio-demographic, infrastructural, and environmental factors using Functional Data Analysis tools. Publicly available differential mortality data and local mobility data from Google are processed with smoothing splines and aligned through landmark registration. The resulting curves are clustered to identify mortality patterns, and regression models are used to evaluate the impact of mobility, restrictions, and other factors on mortality. We find significant differences between the two waves: the first had higher, more concentrated mortality peaks, while the second was more widespread and asynchronous. Our results also support the effectiveness of timely restrictions in curbing mortality, and a strong positive association between local mobility and mortality in both pre-vaccine waves. Despite data quality limitations, our findings strengthen the evidence for the role of government restrictions and mobility controls during the pandemic.

Keywords: COVID-19, Functional Data Analysis, Italy

Subject terms: Statistics, Infectious diseases

Introduction

On January 30, 2020, Italy recorded the first two cases of SARS-CoV-2; a couple of Chinese tourists visiting Rome. The first non-travel related case was recorded in the municipality of Codogno (Lombardia) on February 19, 2020. With outbreaks quickly emerging in Lombardia and Veneto, local lockdowns were imposed in ten municipalities in the province of Lodi, and in one municipality in the province of Padova – affecting a total of over 50,000 people. As cases and deaths mounted, local and central authorities took progressively more stringent measures to limit mobility and social gatherings, e.g., suspending university activities, educational trips, sporting events, and exhibitions. These restrictions culminated with a general nationwide lockdown (March 9, 2020) and the suspension of all non-essential production activities (March 23, 2020), and were not lifted until May – when free movement was restored within the whole national territory.

After a fairly quiet summer, many countries in Europe, including Italy, witnessed a new rise in COVID-19 cases and deaths, leading to new containment measures. Face masks became mandatory, and gathering places such as gyms, theaters, and cinemas closed again. On November 4, 2020, the Italian government created a classification system whereby regions could be labeled as yellow, orange, or red based on a number of indicators of epidemic spread and stress on the healthcare infrastructure. Each color corresponded to different curfew rules and limitations on mobility. As a precautionary measure, during the holidays, red-zone rules were imposed in all regions – including those where the epidemic was not raging at the time (these were the strictest rules, equivalent to the lockdown of the first wave). In January 2021, as the second wave started to subside, restrictions were loosened again to the pre-holiday color system.

Prior analyses by our group, which employed Functional Data Analysis (FDA) tools1,2 on data from the first COVID-19 wave at the resolution of regions, characterized different epidemic patterns unfolding in different areas of the country, and suggested a relevant role for mobility and some socio-demographic, infrastructural and environmental factors as statistical predictors of mortality3. While our findings aligned with those of other studies4–7, they were potentially affected by signal dilution due to data aggregation. Furthermore, the limited sample size (Italy comprises only 20 regions) constrained our ability to use more complex statistical models without overfitting8. The current study builds upon Boschi et al.3 introducing significant novelty in data, methods and analysis aims. Here, we contrast the first and second wave of the epidemic, analyzing data on the two 150-day intervals from February 25, 2020, to July 23, 2020, and from October 1, 2020, to February 27, 2021. Moreover, we substantially increase spatial resolution considering 107 Italian provinces, as opposed to 20 Italian regions.

The increased resolution allows us to achieve a more granular characterization of the epidemic and its associations with potential predictors. Additionally, while some statistical techniques in this work relate to Boschi et al.3, we employ new methodology and define new proxies (derived from differential mortality curves) to handle shortcomings in public data. Crucially, while very different in terms of restriction regimes imposed on the population and of its mobility behaviors, the first and second waves of COVID-19 in Italy were both pre-vaccine (the vaccination campaign in the European Union, including Italy, started – for healthcare professionals and selected fragile categories – on December 27, 2020). Thus, contrasting them offers an opportunity to refine our understanding of the effectiveness of restrictions and non-vaccine-based interventions.

At the outset of our analyses, and yet among our key findings, is evidence of poor data quality. Specifically, we observe a vast under-counting of deaths in the official reports. This concerned especially the first epidemic wave (see also9,10) but persisted into the second. We also observe alarming discrepancies in case counts. Ignoring information on cases, properly processing information on deaths, and using FDA tools, we find marked differences between the two waves. The first was dramatic and spatially concentrated, hitting particularly hard and with fairly homogeneous timing a handful of provinces in Lombardia. In contrast, the second wave was less dramatic but more widespread, affecting more locations with less homogeneity in timing. Notably, provinces hardest hit during the first wave were among the least affected during the second; the contrast is particularly striking in the case of Bergamo, which experienced the heaviest mortality during the first wave, making headlines around the world11,12, and the lightest during the second. This may be due to the fact that inhabitants of provinces hardest hit during the first wave adhered more diligently to restrictions and safety mandates during the second, to a reduced number of people at risk (as an effect of the large number of deaths among the most vulnerable individuals during the first wave), or possibly to some kind of herd immunity13–15 (as an effect of the large number of cases during the first wave).

To evaluate how the timing of restrictions may affect epidemic unfolding, and more specifically, whether introducing restrictions early enough may help curb mortality, we create an ad-hoc variable measuring, for each province and separately for the two waves, the area under the mortality curve up to the point in time when restrictions were imposed. Such cumulative mortality should capture how much the epidemic had a chance to “build up” in the province prior to the implementation of restriction measures. In our analyses, this variable is far stronger than socio-demographic, infrastructural, and environmental factors as a predictor of the mortality unfolding henceforth – a result consistent with findings in other recent studies16,17. Assessing and comparing the role of mobility during the two waves is less straightforward. Restriction policies were very different in the two waves (uniform across the country in the first, localized and linked to the evolution of epidemic and stress parameters in the second), and so were the behaviors of the population in response to them. Likely as a consequence of these differences, the variability observed within the mobility curves of any given province, as well as the variability observed across such curves, changed markedly between the two waves. Notwithstanding these changes, we detect a strong and significant positive association between mortality and mobility in both waves, highlighting the importance of restrictions imposed specifically on the latter as tools to control the epidemic.

Our study offers some important elements of novelty compared to the vast literature devoted to the analysis of COVID-19 in Italy in the last five years – both in terms of study design and in terms of methodology. Compared to our prior work in Boschi et al.3 we increase resolution (province-level), contrast two pre-vaccine waves and, as we shall see in detail, use additional FDA tools and variables (e.g., landmark registration, concurrent functional regression, differential mortality curves and areas computed under them). Notably, Vinceti et al.15 do provide a province-level comparison of first vs. second-wave mortality, but do so without employing FDA tools or linking mortality to potential predictors. Mobility datasets and early lockdown effects are investigated in Pepe et al.18 and socio-economic drivers of mobility in Gauvin et al.19, but these works do not analyze mortality outcomes or FDA regressions. Ferrante20 examines associations between mobility restrictions and lethality, yet does not integrate additional covariates or FDA methodology. Finally, Scimone et al.21 employ FDA for autoregressive dynamics and spatial clustering of mortality but do not incorporate mobility or policy covariates in their regressions. Thus, through its scope, resolution and use of sophisticated statistical techniques, our study fills a gap not addressed by prior literature.

In the remainder of this article we present our results, provide a discussion of key findings and conclusions, and describe the methodology employed – including details on data retrieval and pre-processing. The data used for our analyses are available at https://github.com/tobiaboschi/fdaCOVID2.

Results

Here we present the salient outcomes of our analyses. First, we document inconsistencies in case and death counts across different sources and geographical resolutions. Next, we characterize mortality patterns during the two waves and evaluate the effects of various potential predictors – including socio-demographic, infrastructural, and environmental factors. Last, we study mobility curves, their dynamics, and their association with mortality curves during the two waves.

Inconsistencies in death and case data

Unlike our previous work on COVID-193, which employed the low spatial resolution of Italian regions, here we target the higher resolution of provinces. To date, Italian authorities (Dipartimento della Protezione Civile; DPC) provide COVID-19 case counts at both the regional and provincial level, and COVID-19 death counts only at the regional level (deaths by province remain undisclosed). However, differential mortality, which can be computed at both the regional and provincial level based on all-cause death counts published by the Italian National Statistical Institute (ISTAT; see Methods for details), is often advocated as an effective proxy when COVID-19 death counts are not available22–24.

A first, critical insight on data quality comes from comparing differential mortality as sourced from ISTAT and COVID-19 mortality as sourced from the DPC at the resolution of regions. These reveal a vast under-counting in the DPC official death records – markedly in the first wave, but also in the second9,10,25. Figure 1A contrasts, for each region, totals over the 150 days comprised in each wave. Overall, ISTAT and DPC data do become more consistent in the second wave, especially in regions such as Emilia Romagna, Lazio, Lombardia, Veneto, and Friuli Venezia Giulia. This, by and large, suggests an improvement in the DPC records – even though they remain much lower than ISTAT differential mortality in regions such as Basilicata, Calabria, and Sardegna. Notably, in Emilia Romagna and Lazio, DPC records were slightly higher than ISTAT differential mortality during the second wave. This may be a consequence of the fact that the latter also reflects phenomena indirectly related to COVID-19, affecting mortality in both directions; e.g., increases in mortality due to untreated emergencies or untimely treatment of chronic ailments, but also reductions in mortality due to fewer accidents during lockdowns or curfews.

Fig. 1.

Fig. 1

Inconsistencies in death and case data. Panel (A) displays, for each region and wave, the ratio between COVID-19 mortality as reported by the DPC and differential mortality based on ISTAT data. During the first wave, all regions show marked inconsistencies between the two sources, suggesting a vast under-counting of deaths in the official records (ratios much lower than 1). The situation improves during the second wave; even though some regions appear to still under-report deaths (e.g., Basilicata, Calabria, Sardegna). The ratios slightly above 1 in Emilia Romagna and Lazio may reflect reductions in mortality, perhaps indirectly related to COVID-19 (e.g., fewer accidents during lockdowns and curfews), exceeding the epidemic death toll. Panel (B) displays, for each region and wave, the ratio between DPC case counts obtained by aggregating province-level counts within each region, and DPC case counts provided at the regional level. The discrepancies (i.e., departures from 1) are staggering, especially during the first wave – when aggregated, provincial records exceeded regional records by over 12-fold in Molise, and around 7-fold in Sicilia. As for death counts, the situation improves during the second wave, but discrepancies remain strong enough to suggest that case data are not reliable.

A second insight on data quality comes from comparing the number of cases reported by the DPC at the resolutions of provinces and regions. These harbor massive and concerning discrepancies. As shown in Fig. 1B, aggregating reported province-level cases by region, one obtains totals that do not match reported region-level cases. This is strikingly demonstrated by Molise and Sicilia, where the sums of the cases reported in the provinces are, respectively, over 12 and around 7 times higher than the cases reported at the regional level.

Due to the strong inconsistencies that still exist in the official Italian COVID-19 data, we ignore cases and focus on mortality alone to characterize the epidemic. Moreover, we do so using a differential mortality proxy instead of recorded COVID-19 deaths. This proxy has its own limitations, as it may indeed comprise some deaths not related, or indirectly related, to COVID-19 – but it is still more likely to accurately reflect mortality than the officially released deaths records and, crucially, it allows us to perform analyses at the spatial resolution of provinces.

Mortality patterns

We smooth daily province-level differential mortality data over the time intervals corresponding to the two epidemic waves – each 150-day long. This generates two sets of 107 curves. Next, within each set (i.e., for each wave) we shift the curves as to align their peaks. Intuitively, this landmark registration synchronizes the curves and facilitates their comparison net of their “horizontal” (i.e., temporal) differences.

Figure 2A shows aligned mortality curves during the first and second wave. Figure S1, in addition, shows the curves before the shifts applied to align their peaks, as well as the shift distributions. Full detail on the processing techniques utilized to produce and align the differential mortality curves is provided in the Methods.

Fig. 2.

Fig. 2

Clustering of mortality curves. Panel (A) shows aligned province-level mortality curves in the first (top) and second (bottom) waves of the epidemic. For each wave, the curves are color-coded according to a partition in three clusters – with dark red, orange, and yellow representing decreasing aggressiveness of the epidemic. Thicker gray lines trace the means of the three clusters. Panel (B) shows the three clusters on the Italian map, for the first (left) and second (right) wave. Panel C shows again the Italian map, with provinces color-coded based on the difference in the ranks a province occupied in the first and second wave – for each wave, we constructed rankings based on the magnitude of the curves’ largest peaks. Thus, shades of blue (red) indicate provinces that suffered the first (second) wave more than the second (first).

Consistent with prior studies26,27, our curves delineate a dramatic and concentrated first epidemic wave, with similar timing across a small number of very hard-hit provinces, especially in Lombardia28, and a milder, more diffused second wave, with smaller differences and weaker synchronization across provinces. Notably, the largest mortality peaks were much higher in the first wave (around 20 daily deaths per 100,000 inhabitants) than in the second (around 5 daily deaths per 100,000 inhabitants), highlighting the grim death toll Italy withstood during the former. However, such death toll was very concentrated; many curves remained low, and just a handful had very high peaks. In contrast, the mortality peaks of the second wave were less differentiated, indicating an epidemic more evenly spread across the country. In terms of timing, the first epidemic wave was markedly more synchronous than the second; this can be appreciated considering the shifts required to align peaks, which are larger (a median of 19 vs. 12 days) and more variable in the second wave (see Fig. S1).

To characterize mortality patterns in a more systematic fashion, and further highlight differences in the unfolding of the two epidemic waves, we group the province-level aligned mortality curves in Fig. 2A using hierarchical clustering algorithms for functional data. Full detail is again provided in the Methods. The resulting dendrograms, one for each wave, are shown in Fig. S2. Their structure, along with the classical Hartigan29 index, suggest a cut into Inline graphic clusters in both waves. The curves in Fig. 2A are color-coded based on these clusters and Fig. 2B shows the clusters on the Italian map (cluster memberships for all provinces are reported in Fig. S3).

As previously documented at the regional level3, in the first wave Italy saw the unfolding of two very different epidemic patterns: a relatively mild one in the majority of the country, and a very strong one affecting the north-western areas. The current analysis, performed at the higher resolution of provinces, affords a more detailed description of this phenomenon: while the epidemic was more severe and more spatially concentrated in the first wave than in the second, both waves harbored two, possibly three different patterns; namely, a flatter, “mild” pattern in the majority of the provinces, a very steep, “exponential” one in a small number of provinces, and an intermediate, still “exponential” but less extreme pattern in the rest of the country.

The provinces that withstood the most dramatic losses during the first wave were Bergamo, Brescia, Cremona, Lodi, and Piacenza. These provinces (in dark red in the upper portion of Fig. 2A and in the left portion of Fig. 2B) are all contiguous, in an area between Lombardia and adjacent Emilia Romagna (the very first cases of COVID-19 in the country were reported in Codogno, a municipality in the province of Lodi). Interestingly, in the second wave, they all belong to the cluster with the lightest mortality (in yellow in the lower portion of Fig. 2A and in the right portion of Fig. 2B). This could be due to several factors. The inhabitants of these areas may have been more diligent in practicing social distancing rules and adhering to restrictions and safety mandates after the dramatic events of the first wave. In addition, the large number of deaths among vulnerable individuals during the first wave may have effectively reduced the number of people at risk in these areas. Finally, the large number of cases during the first wave may have induced some degree of herd immunity30.

In the second wave, the hardest hit provinces were Alessandria, Aosta, Asti, Biella, Cuneo, Udine, and Vercelli. The change in most affected provinces with respect to the first wave, along with the fact that fewer provinces belong to the lightest mortality cluster (in the first wave the yellow, orange, and red clusters, from lightest to hardest hit, comprise 86, 16 and 5 provinces, respectively; these counts for the second wave are 72, 28 and 7), confirm that, while less severe in terms of mortality, the epidemic had a broader spread across the country in the second wave.

We further compare the two waves considering the ranking of the province-level mortality curves based on their peaks (maxima; from smallest to largest) and the differences between such rankings – specifically, ranking in the second wave minus ranking in the first. These differences are color-coded on the Italian map of Fig. 2C, and show very clearly how many among the provinces most affected in the first wave (highest ranks) were among the least affected in the second (lowest ranks). The province of Bergamo is the clearest example; it ranks 107Inline graphic in the first wave and 1Inline graphic in the second. In contrast, some provinces in Piemonte were hard hit (high ranks) in both the first and second waves – showing very little difference in ranking.

Role of restrictions and socio-demographic, infrastructural and environmental factors

Next, we analyze associations between mortality and six scalar covariates representing a number of potentially relevant socio-demographic, infrastructural, and environmental factors, namely: aging of the population (Inline graphic Over 65); quality of distributed primary health care (Adults per family doctor); the potential of hospitals (Ave. beds per hospital), schools (Ave. students per classroom) and workplaces (Ave. employees per firm) to act as contagion hubs; and pollution levels (PM10) (see Table 1). The significance of this kind of covariates has been shown in recent studies3,16 related to COVID-19, both focusing on the first wave of the Italian epidemic, and on inter-generational relationships using data from 24 countries31. They could all be retrieved at the province-level from public databases with reasonable data quality. Full detail on their calculation and sourcing is provided in the Methods.

Table 1.

Scalar covariates: six variables considered as proxies of potentially relevant socio-demographic, infrastructural, and environmental factors.

Covariate Description Year and source
% Over 65 Aging of the population 2020, ISTAT
Adults per family doctor Quality of distributed primary care 2019, Ministry of Health
Ave. beds per hospital Hospitals acting as contagion hubs 2019, Ministry of Health
Ave. students per classroom Schools acting as contagion hubs 2019, Ministry of Education
Ave. employees per firm Workplaces acting as contagion hubs 2018, ISTAT
PM10 Pollution levels (particulates) 2019, ISTAT

We also consider two additional variables calculated from the mortality curves themselves, which we call area before, Inline graphic, and area after, Inline graphic. These measure the areas under the mortality curve to the left and right, respectively, of the date when restrictions were introduced (March 9, 2020, for the first wave and November 4, 2020, for the second – the calculation is performed before aligning the curves; detail is again provided in the Methods). Hence, they represent the cumulative mortality at the time of restriction and after restriction, respectively. Intuitively, before the introduction of restrictions the epidemic accelerates, with contagions spreading and, metaphorically, filling a pool of “potential deaths.” Restrictions, ideally, stop this process – or rather, in practice, curb it with varying degrees of effectiveness. After their introduction, as the mortality pattern unfolds over time, the pool of potential deaths empties.

Inline graphic is our attempt at capturing how far the epidemic has accelerated before restrictions hit the brakes on it – and to do so based on mortality data, not cases, because data on the latter are so poor and unreliable. We use it as a potential predictor in our regression models, along with socio-demographic, infrastructural, and environmental factors. In a way, it can be thought of as an “intermediate” predictor, subsuming the effects of a multitude of observed and unobserved factors, and influencing the subsequent unfolding of the mortality pattern. Inline graphic is our way to define a scalar summary of this subsequent unfolding, capturing its cumulative severity. We use it as a simpler, scalar response – in alternative to the full mortality curve (functional response). Inline graphic is akin in spirit to other proxies used to emphasize the importance of timely restriction policies in contrasting the spread of the epidemic. For example, using the effective reproduction number Inline graphic and case data that are not publicly available, a study of the first COVID-19 wave in Italy17 showed a strong relationship between the time spent above a given epidemic threshold prior to the introduction of restrictions and the total number of confirmed infections. Similarly, another study16 pinpointed the onset of the epidemic in an area and showed that the delay in such onset (and thus the shortening of the time between onset and restrictions) is a significant negative predictor of mortality levels.

To evaluate the relative importance of different variables, we perform feature selection in regression models for the scalar Inline graphic and for the mortality curves (functional regression). Full detail is provided in the Methods, and results for the two regressions, each fitted separately on first and second wave data, are summarized in the top graphics of Fig. 3A (elastic net for Inline graphic) and Fig. 3B (fgen functional elastic net for the mortality curves).

Fig. 3.

Fig. 3

Feature selection results. Panel (A) Elastic net results for Inline graphic (area after, scalar response). On the top, for each wave and each feature, we show balls with radius proportional to the average Inline graphic-ratio at which the feature enters the model across 500 replications of the regression on subsets of provinces (Inline graphic is the smallest penalty value associated with 0 selected features; the larger the Inline graphic-ratio, the earlier a feature is selected and the greater its relevance). On the bottom, for each wave, we show fitted line, coefficient estimate Inline graphic and Inline graphic for the marginal regression of Inline graphic on Inline graphic (area before) – the most relevant feature in both waves – run on all 107 provinces (marginal regression results for other predictors are provided in Fig. S5). Panel (B) Functional elastic net (fgen) results for mortality curves, in a format similar to Panel A. For the marginal regressions of mortality curves on Inline graphic, bottom plots show coefficient curve estimates Inline graphic as black solid lines, with bands built adding and subtracting Inline graphic point-wise standard errors (marginal regression results for other predictors are provided in Fig. S6).

For each regression and wave, we display the features’ average Inline graphic-ratios across 500 runs on subsets of provinces. As detailed in the Methods, these provide a robust measure of feature relevance in predicting the outcome. The predictor Inline graphic emerges as the most relevant by far in both regressions and in both waves, with the largest average Inline graphic-ratios. We note that when Inline graphic is used as a predictor in models where mortality curves are the response, it essentially summarizes the initial portion of the response itself. Nevertheless, this relationship does not limit the shape of the mortality curves nor force any constraint in the estimation of regression coefficients. Table S1 and Fig. S4 report results of the elastic net and fgen feature selection procedures obtained on the full set of 107 provinces and with the parameter Inline graphic chosen by 5-fold cross-validation.

As a parallel exercise, for each response and wave, we run marginal regressions on every predictor separately – using the full set of 107 provinces. Results concerning Inline graphic are shown in the bottom graphics of Figs. 3A and B. Specifically, on the bottom of panel (A) we display scatter plots with fitted lines, coefficient estimates and coefficients of determination for the marginal regressions of Inline graphic on Inline graphic in first and second wave. The coefficient of determination represents the share of variance explained, Inline graphic, where Inline graphic and Inline graphic are regression and residual sums of squares. On the bottom of panel (B) we display coefficient curve estimates and coefficients of determination for the marginal functional regressions of mortality curves on Inline graphic, again in first and second wave. The Inline graphic for a functional regression is a straightforward generalization of the coefficient of determination for a scalar regression1.

Marginal results are consistent with those obtained from elastic net-based feature selection, confirming strong positive (i.e., aggravating) statistical effects of Inline graphic in both waves of the epidemic. In fact, Inline graphic has by far the largest marginal Inline graphics among all predictors considered; results for all other predictors are shown in Fig. S5 (Inline graphic) and in Fig. S6 (mortality curves). The primacy of Inline graphic in our analyses provides further evidence that the timing of restrictions may play a crucial role in modulating the epidemic. Comparing marginal and joint results between the two waves, its effect appears to be larger in magnitude in the second wave for the scalar response, and in the first wave for the functional response. The Inline graphic values are always larger in the second wave, likely due to both Inline graphic and the mortality curves exhibiting less variability.

In addition to being generally weaker, the statistical effects of socio-demographic, infrastructural, and environmental factors appear to vary depending on the response, as well as the wave. For instance, considering mortality curves, adults per family doctor and average students per classroom exhibit a strong signal in the first wave, along with PM10 – confirming previous findings3. However, the relevance of these predictors decreases in the second wave, where the percentage of inhabitants over 65 seems to play a stronger role. These differences may result in part from the existence of collinearity among features (see Figs. S7 and S8), with the variable Inline graphic possibly subsuming a number of other effects, but they may also reflect actual changes that occurred between the two waves. For instance, average students per classroom (as measured in 2019; see Table 1) may indeed have been a good proxy for the potential of schools to act as contagion hubs during the first wave, but may have become a much less meaningful predictor during the second wave – when classroom sizes were reduced, many activities were held online, and even when attending school in person students had to adhere to masking and social distancing protocols.

Finally, we compute pc1 – the first principal component of the standardized socio-demographic, infrastructural, and environmental factors in Table 1, which can be used as an overall summary to control for their effects (Inline graphic is not included in this computation). pc1, which explains Inline graphic of the overall variance, combines adults per family doctor, average beds per hospital, average students per classroom and PM10 (see loadings in Fig. S5B), and presents only a very mild correlation with Inline graphic (see Fig. S9C). Therefore, we further gauge the role of Inline graphic by running both the scalar regressions (with Inline graphic as response) and the functional regressions (with the mortality curves as response) using Inline graphic and pc1 as joint predictors, and computing their partial Inline graphics. Results from these joint fits (see Fig. S9) support our previous statements, highlighting once again the importance of Inline graphic. The partial Inline graphic of a given predictor in a multiple regression is defined as Inline graphic, where Inline graphic is the coefficient of determination of the complete model, and Inline graphic that of the model comprising all predictors but the one being evaluated.

Mobility patterns

Several studies found evidence that local, short-range mobility worked as a key modulator of COVID-19 spread7,32,33. Here, we produce province-level mobility curves over the time intervals corresponding to the two epidemic waves smoothing daily values of the “Grocery & Pharmacy” and “Workplace” mobility indexes released by Google. These express percentage changes in mobility linked to shopping for necessities and commuting to work with respect to a pre-pandemic reference (the first five weeks of 2020; see Methods).

Before analyzing the association between mortality and these mobility curves (below), we compare mobility patterns between the two waves, highlighting some marked differences. During the first wave, mobility showed a dramatic reduction with respect to reference values, suggesting that the restrictions implemented by the government were generally effective in changing people’s behaviors. In more detail, the mobility curves in Fig. 4A show the “Grocery & Pharmacy” index reaching levels between Inline graphic and Inline graphic (depending on the province) during the first wave lockdown. This reduction occurred even though citizens were allowed to leave their homes for these necessities. In the same period, and in particular after the halting of all non-essential production activities on March 23, 2020, the “Workplace” index reached even lower levels, dipping to values between Inline graphic and Inline graphic.

Fig. 4.

Fig. 4

Mobility and lags. Panel (A) “Workplace” and “Grocery & Pharmacy” mobility curves during the first and second wave (no shift applied). Solid black lines are functional means, with bands built by adding and subtracting Inline graphic point-wise standard deviations. Vertical lines mark dates when mobility restrictions were introduced in the two waves (March 9, 2020, and November 4, 2020). Panel (B) scatterplot and marginal distributions of mortality peak values and lags for provinces with a discernible epidemic (hard- and medium-hit clusters 2 and 3; see Fig.2B) in the first and second wave. Lags are defined as the number of days between the mobility restriction date and the mortality peak for each province. Least-squares regression lines on the scatterplot have negative estimated slopes of Inline graphic (significant) for the first wave and Inline graphic (non-significant) for the second. Vertical lines on the marginal distributions mark medians. Panel (C) Inline graphic values, obtained by regressing each functional variable in the rows (“Workplace”, “Grocery & Pharmacy”) against each functional (“Grocery & Pharmacy”) and scalar (Inline graphic, pc1) variable in the columns, in the first and second wave. For the function-on-function regressions (“Workplace” on “Grocery & Pharmacy”) we fit a concurrent model2,34 with no lags, after shifting the mobility curves of each province by the same shift used to align its mortality curves. The background color intensity in each block is proportional to the Inline graphic values. These help us gauge predictor collinearities prior to building regression models for the mortality curves.

In contrast, during the second wave, while mobility still contracted with respect to the reference, reductions were less dramatic. The “Grocery & Pharmacy” index reached minima between Inline graphic and Inline graphic. The “Workplace” index again dipped deeper, between Inline graphic and Inline graphic, but only around Christmas and New Year – when the entire country was red-coded to try and take advantage of the holidays to curb the second epidemic wave. Also strikingly, the variance across curves was very low during the first wave, and much higher during the second.

In summary, mobility decreased dramatically and uniformly across the country during the first wave lockdown, and only moderately, with more variability from province to province – likely as a consequence of the adaptive restrictions imposed by the color-coded system – during the second wave. Notably, these patterns did not just reflect differences in the severity and uniformity of the restrictions themselves, but also differences in citizens’ attitudes. While during the first wave people limited also those activities that were permitted by the lockdown rules, during the second wave they took fuller advantage of whatever mobility was allowed to them.

Association between mortality and mobility

We now turn to the analysis of the association between mortality and mobility curves. To begin, we evaluate the delay between changes in mobility and their potential impact on mortality. For each province in each wave, we compute a lag, defined as the number of days between the date in which mobility restrictions were introduced and the date in which the province experienced its mortality peak. Restricting attention to the provinces which did experience a discernible epidemic in each wave (those in the hard- and medium-hit clusters 2 and 3; see Fig. 2B), Fig. 4B shows a scatterplot of mortality peak values against lags, together with their marginal distributions, for the two waves. For these provinces, lags are much more spread in the second wave than in the first, but their medians are remarkably similar (19 and 17 days, respectively). In contrast, peak values are higher and much more spread in the first wave than in the second; in particular, the first wave peak distribution has a long right tail. Notably, there appears to be a distinct negative relationship between lag and peak size in the first wave, which provides yet more evidence for the importance of restrictions timing. In the provinces most severely affected by the epidemic, restrictions came too late to curb mortality; these provinces reached their very high mortality peaks shortly after the implementation of the national lockdown. In contrast, provinces that, while affected, were spared the worst impacts were those where restrictions came earlier during the epidemic progression; they had smaller peaks occurring at a later stage. Intriguingly, an analogous negative relationship between lags and peaks cannot be traced in the second wave, when even in the worst-hit provinces peak values remained relatively low.

Next, we evaluate the impact of mobility on mortality developing appropriate regression models. We consider as potential predictors of mortality curves both “Grocery & Pharmacy” and “Workplace” mobility curves, as well as two scalar variables from our prior analyses; Inline graphic (which summarizes the progression of mortality up to the introduction of restrictions), and pc1 (which summarizes the factors listed in Table 1). To gauge collinearities, we fit functional regressions of “Grocery & Pharmacy” and “Workplace” on each other, and on each of the scalar variables. Figure 4C shows the resulting Inline graphics which, together with the correlations reported in Figs. S8 and S9C, provide an overall picture of the dependence structure among predictors. In the first wave, predictor collinearities are very strong. In particular, “Grocery & Pharmacy” and “Workplace” have an Inline graphic of 0.95, confirming the effectiveness of the first lockdown. Both mobility indices are also highly correlated with Inline graphic (the Inline graphic is 0.78 for “Grocery & Pharmacy” and 0.85 for “Workplace”). A possible explanation is that, while mobility plummeted everywhere, whatever variation existed in such reduction across the country saw places hardest hit by the epidemic up to the lockdown date contract mobility the most. Because of these strong linear associations, to avoid variance inflation phenomena, we consider a simple model for the first wave (Model A); namely, a concurrent functional regression of mortality curves on just one type of mobility curves, say “Workplace”, with pc1 added as a scalar control. In the second wave, predictor collinearities are much milder. The more nuanced and differentiated color-coded restrictions allowed “Grocery & Pharmacy” and “Workplace” mobility to vary more across the country and to capture different signals, with an Inline graphic decreasing to 0.39. Also the Inline graphics with Inline graphic decrease (to 0.18 for “Grocery & Pharmacy” and 0.30 for “Workplace”). We therefore consider both the simple model used for the first wave (Model A), and a more complex model (Model B); a concurrent functional regression of mortality curves on both types of mobility curves jointly, with both Inline graphic and pc1 added as scalar controls. In both models, we also introduce a binary predictor d to separate provinces with discernible epidemics (hard- and medium-hit clusters in Fig.2B; Inline graphic, Group 2) from the others (mild-cluster; Inline graphic, Group 1). Further detail on the concurrent functional regressions is provided in the Methods. These models specify a time lag Inline graphic for the association between mortality and mobility curves; since stability35 is of particular concern when modeling functional objects and estimating functional coefficients, we test a range of lags to determine whether coefficient curve estimates are heavily affected by the lag specification, or exhibit a consistent pattern. Based on the observed lag distributions, we consider Inline graphic values in the 15-to-24 day range (see Fig. 4B; the range includes the medians for both waves). This is in line with previous findings36 and with established epidemiological frameworks concerning, e.g., incubation period (time from exposure to symptom onset) and hospitalization-to-death intervals for COVID-1937–39.

Figure 5A summarizes the fit of Model A on each wave. As expected, coefficient curve estimates are generally larger in magnitude for the first vs. the second wave, and for hard/intermediate hit vs. mildly hit provinces. In both waves, “Workplace” mobility is the leading predictor variable (based on the partial Inline graphic). Its effect is positive along most of the domain during the first wave, but only at the beginning of the second wave. Notably, coefficient curve estimates are fairly consistent in shape and magnitude across lags suggesting stability of our findings. Robustness to varying model specifications is also confirmed using “Workplace” mobility and the group dummy d as predictors (without pc1 as control; see Fig. S11B), or replacing “Workplace” with “Grocery & Pharmacy” mobility (with pc1 and d; see Fig. S11A, or without pc1; see Fig. S11B). Interestingly though, coefficient curve estimates for “Grocery & Pharmacy” are slightly negative in the first half of the second wave. A mild (and temporary) negative association between this type of mobility and mortality may in fact make sense; since these “first necessity” movements were never restricted, the public may have engaged in them more liberally in provinces with lower mortality and a perception of (relative) safety. Finally, Fig. 5B summarizes the fit of Model B on the second wave. Coefficient curve estimates for both mobility predictors (“Grocery & Pharmacy” and “Workplace”), which are here considered jointly, are consistent with those obtained from Model A. However, the predictor with the largest partial Inline graphic here is Inline graphic, which shows a strong positive association with mortality – further confirming the critical role of restriction timing. Interestingly, the effect size of Inline graphic is similar in hard/intermediate and mildly hit provinces during the first half of the second wave. This may be due to the definition of Inline graphic, which is the integral of the curve in the first part of the domain (before restrictions take place). As in Model A, coefficient curve estimates are consistent in shape and magnitude across lags in the 15-to-24 day range, indicating a strong and stable effect. Furthermore, total and partial Inline graphics are comparable across lags. Thus, both the explanatory power of the model and the relationships between response and predictors are stable across the range of lags considered, lending reliability to our findings.

Fig. 5.

Fig. 5

Lagged concurrent functional regression results. Panel (A) for first (left) and second (right) wave, coefficient curve estimates for the regression of mortality on “Workplace” mobility and pc1, with an additional binary predictor separating provinces with mild (Inline graphic, Group 1) vs. hard/intermediate (Inline graphic, Group 2) epidemic courses. The plots show “beams” comprising 10 curves, one for each of the lags considered in the model (Inline graphic). Gray portions in a curve correspond to time intervals where it did not significantly depart from 0 (the confidence interval obtained adding and subtracting to the estimate Inline graphic pointwise standard errors contained 0). For each regression we report the average total and partial Inline graphics over the 10 fits with different lags. Panel (B) in a format similar to A, but for the second wave only, results for the regression of mortality on “Workplace” mobility, “Grocery & Pharmacy” mobility, Inline graphic and pc1, again including the binary predictor separating provinces with mild vs. hard/intermediate epidemic courses.

Discussion

Notwithstanding the limited availability and at times poor quality of publicly available data, we were able to leverage Functional Data Analysis (FDA) techniques to characterize and compare the initial two waves of the COVID-19 pandemic in Italy. Our analyses were conducted at the province-level; this finer resolution compared to prior studies3,24,40,41 allowed us to shed additional light on critical associations and relationships – avoiding the loss of signal caused by spatial aggregations and enabling the use of more sophisticated statistical models. The two waves span a complete year, from February 2020 to February 2021, and both occurred before the beginning of the vaccination campaign. Therefore, the patterns and associations we observed were not influenced by vaccine availability and the progressive increase of vaccine-related immunity in the country.

Using functional hierarchical clustering, we identified three groups of provinces in both waves; one characterized by a mild mortality pattern, and two characterized by an intermediate strength and a harsh exponential pattern, respectively. Perhaps the most interesting observation obtained by contrasting clustering results for the two waves is that some of the provinces most impacted during the first wave (e.g., Bergamo, Como, and Lodi in Lombardia) were among the least impacted during the second. This could have been due to a reduced number of vulnerable individuals after the deaths in the first wave, to behavioral adaptations that led the population in these areas to adhere more strictly to recommendations on, e.g., social distancing and mask use, and possibly to a degree of herd immunity.

Next, we highlighted the importance of a timely introduction of restrictions. Given the poor quality of data on cases, we created a variable, Inline graphic, that quantifies the escalation of the epidemic prior to the introduction of restrictions based on mortality data alone. Using a number of regression techniques we found Inline graphic to be a very strong predictor of mortality in both waves – in fact, a stronger and more consistent predictor than the proxies for socio-demographic, infrastructural, and environmental factors at our disposal. Potentially suboptimal proxies, collinearity, and possible confounding effects require that we interpret these results with care. But they do suggest that, by “hitting the brakes” on the exponential dynamics of mortality, restrictions play a pivotal role in curbing the spread of the epidemic and mitigating its impact.

Finally, we explored the relationships between mortality and mobility patterns. During the first wave lockdown, mobility exhibited very pronounced and similar contractions across the country. Following the introduction of the second wave color-coded restriction system, mobility contractions were milder and more geographically differentiated. Despite these differences, through additional functional regression exercises, we were able to identify significant and robust positive associations between mobility and mortality in both waves. We note that, through all our regression exercises, we adopted a minimalistic approach in terms of control covariates – using the first principal component of the variables listed in Table 1 as a single “summary” control. In future work, other, more exhaustive strategies should be explored. For instance, even though publicly available data is often not readily available to create appropriate proxies at province-level resolution, efforts to retrieve and analyze data on additional socio-demographic, infrastructural and environmental factors could provide further insights on the unfolding of the epidemic.

This study, alongside our previous work3, demonstrates the potential of FDA for analyzing epidemiological data. Specifically, FDA tools for smoothing and shifting (more generally, aligning) curves provide an effective way to handle outlying observations and compare phenomena that may occur asynchronously or in different time frames. Moreover, functional regression models can naturally incorporate a time dynamic along with predictors of different types. Also importantly, FDA-based analyses do not rely on the strict assumptions often required by standard epidemiological models, and thus allow a different perspective – and more flexibility – in representing the temporal evolution of the epidemic. FDA tools as a means to handle longitudinal data, or other data collected on structured domains in biomedical and public health research, are gaining in popularity42 but are still under-utilized. Showcasing well-established and recent FDA methods (including those developed by our group43) is one of the contributions of this study. We point out that smoothing, as well as FDA tools applied downstream from it, can be used to analyze spatial or even spatio-temporal data (2 or 3D domains) – provided the measurements are numerous enough21,44–46. Our study treated the temporal, but not the spatial, component functionally; extending functional treatment to the spatial component represents a promising avenue for future work in COVID-19 as well as other epidemiological research.

Methods

Data retrieval and pre-processing

Deaths and cases

Differential mortality was computed using the daily all-cause death counts provided by the Italian National Statistical Institute (ISTAT) for 7270 Italian municipalities (comprising about 93.5% of the Italian population). In particular, we take the difference between daily deaths and the average daily deaths in the five years prior to the pandemic (2015–2019), and divide by the total population as of January 1, 2019. This is done for each province and for each day in the first and the second waves of the epidemic; that is, for the two 150-day intervals from February 25, 2020, to July 23, 2020, and from October 1, 2020, to February 27, 2021, respectively.

Daily province-level differential mortality values are then smoothed into curves using cubic smoothing B-splines2 with knots approximately at each week (21 knots equally spaced over 150 days – the time domain of each wave) and a roughness penalty on the curve second derivative. Employing one knot per week allows us to focus on general trends and smooth out daily fluctuations. Separately for each wave, the smoothing parameter is selected as to minimize the average generalized cross-validation (GCV) error47 across all 107 province-level curves (the same criterion is employed to smooth mobility data; see below). GCV is a well-established, widely used selection criterion in the literature3,48; in Fig. S12 we compare it to alternative criteria and provide a quantitative justification for our choice. Next, we align the differential mortality curves using landmark registration2. Specifically, for each wave, we shift curves horizontally in order to align their peaks. For curves with multiple peaks, we consider the highest peak occurring between day 10 and day 100. The new common peak time is set to be equal to the time of the earliest peak, specifically day 20 (peak of the province of Lodi) for the first wave, and day 33 (peak of the province of Cagliari) for the second wave. Finally, we add (remove) days at the end (beginning) of the domain for the shifted curves, to guarantee the same 150-day length for all curves (curves are smoothed one more time after this “domain integration”, again choosing the smoothing parameter by minimizing the GCV criterion). As a result, the aligned, common time in each wave is the one of the province with the earliest peak. All computations are performed using the R package fda49.

We repeat mortality calculations at the level of regions, in order to compare results with the data provided by the Italian Civil Protection agency (Dipartimento della Protezione Civile; DPC), which releases regional daily counts of recorded COVID-19 deaths since February 2020. We divide both ISTAT differential death counts and DPC death counts by the total population as of January 1, 2019, to obtain ISTAT differential mortality and DPC mortality, respectively. We do not perform any further preprocessing, since we employ these data only for validation purposes.

We also consider two additional variables calculated from our differential mortality curves, which we call area before, Inline graphic, and area after, Inline graphic. For each province, these measure the areas under the curve to the left and the right, respectively, of the date when restrictions were introduced (March 9, 2020, for the first wave, and November 4, 2020, for the second). Note that Inline graphic and Inline graphic are computed before shifting the mortality curves, and therefore the number of days used to calculate each of them is the same for all provinces. Moreover, since both Inline graphic and Inline graphic are highly right-skewed, we take their logarithms to normalize them before using them in our regression models (see below).

Local mobility

Daily mobility indexes are provided by Google at the resolution of Italian provinces50. These measure the fractional reduction in mobility with respect to levels registered in the first five weeks of 2020 (January 3 to February 6), and are organized in categories based on mobility aims. We focus on two categories that capture the local, short-range mobility of individuals, which was allowed in all provinces also during mobility restrictions: the “Grocery & Pharmacy” index, which accounts for local trips to grocery and pharmacy stores, and the “Workplace” index, which accounts for trips to and from workplaces. We produce mobility curves by smoothing these daily data with the same procedure used for mortality curves (see above).

Socio-demographic, infrastructural, and environmental factors

We focus on six scalar covariates, listed in Table 1. These capture aging of the population (Inline graphic Over 65); quality of distributed primary health care (Adults per family doctors); the potential of hospitals (Ave. beds per hospital), schools (Ave. students per classroom) and workplaces (Ave. employees per firm) to act as contagion hubs; and pollution levels (PM10).

The variable % Over 65 is retrieved from ISTAT51 at the province-level. To compute Adults per family doctor, we divide the adult population of the province as of January 2019 (from ISTAT) by the number of family doctors in the province52. The latter is obtained by summing the number of family doctors at the level of “Aziende Sanitarie Locali” (Local Health Agencies, ASL) provided by the Ministry of Health for the year 2018. We manually retrieved data missing for some provinces in Lombardia, Molise, Sardegna, and Toscana from the corresponding ASL websites. To compute Ave. beds per hospital we use data from the Ministry of Health53, which provides the number of beds per ward in each hospital in 2019. We first aggregate them over wards belonging to the same hospital, and then average over hospitals in each province. To compute Ave. students per classroom we use data from the Ministry of Education54, which provides the number of students in each classroom of each school in the country (public or private, at every level of education), for the academic year 2019/2020. We average them over schools in each province. Missing data for Trento, Bolzano, and Aosta are filled through random forests imputation55, with default parameters maxiter=10 (maximum number of iterations performed if the stopping criterion is not met) and ntree=100 (number of trees grown in each forest). To compute Ave. employees per firm we use data from ISTAT52, which provides the number of employees per firm at the level of municipalities. We average them over firms in each province. To compute PM10 we use data from ISTAT56, which provides the average annual concentrations of PM10 (in Inline graphic) detected by air quality meters distributed over the Italian territory, and we average them over meters located in each province.

Statistical analyses

Clustering and rank comparisons

We perform functional clustering of the shifted province-level mortality curves, separately for each wave. This is done with an agglomerative hierarchical algorithm employing a Euclidean functional distance (Inline graphic) and complete linkage. The (squared) Inline graphic distance between two generic curves Inline graphic and Inline graphic on a generic domain Inline graphic is simply defined as Inline graphic. Starting from the matrix of pair-wise distances Inline graphic, the agglomerative hierarchical algorithm merges singletons based on their distance, and clusters based on the maximal distance between their members (complete linkage).

To further compare province-level mortality between the two waves, we rank mortality curves based on their peak values (the curve with the lowest peak is ranked first and the one with the highest peak is ranked 107th), separately for each wave. Next, for each province, we compute the difference between its rankings in the second and first wave.

Feature selection for scalar and functional regression

To evaluate the role of potential scalar predictors of mortality, we perform feature selection in two separate regression models. The first is a standard scalar regression, where the scalar response Inline graphic is modeled as a function of the scalar predictors (Inline graphic and the six covariates in Table 1). Here we use an elastic net penalized fit57 as implemented in the R package glmnet58. In symbols, the penalized fit corresponds to the minimization problem

graphic file with name d33e1646.gif 1

where Inline graphic is the response vector, Inline graphic is the (standardized) design matrix, Inline graphic is the coefficient vector, and n and p represent the number of units and features, respectively. We set Inline graphic, and we run the fit for different values of Inline graphic, starting from Inline graphic, which selects 0 features, and gradually decreasing it. To capture the relevance of each feature, we track its Inline graphic-ratio, defined as Inline graphic, where Inline graphic is the largest penalty weight such that feature j is included in the model. A higher ratio (earlier inclusion in the model) corresponds to higher relevance. Finally, to assess stability of the results, we repeat the procedure 500 times, each time using a random subset of Inline graphic provinces, with Inline graphic itself randomly selected between 90 and 107. Inline graphic-ratios are averaged over the 500 runs. By removing a random number of units randomly selected without replacement, we aim to mitigate the effect of potential outliers on our findings.

The second model is a function-on-scalar regression, where the full mortality curves (functional response) are modeled as a function of the same scalar predictors. Here we use fgen43, which extends the elastic net to this type of regression. In this case, the minimization problem is

graphic file with name d33e1718.gif 2

where Inline graphic is the collection of n response curves, X is again the (standardized) scalar design matrix, Inline graphic is the collection of p coefficient curves, and Inline graphic is the Inline graphic-norm for a generic n-dimensional vector of functions f(t). We handle Inline graphic and Inline graphic as in the scalar elastic net, track again the Inline graphic-ratio for each feature, and perform the same stability assessment repeating the procedure 500 times on random subsets of provinces.

Concurrent function-on-function regression modeling

We formulate both models A and B described in the Results section as “lagged” concurrent function-on-function regressions2,34 where the functional response (mortality) at time t is assumed to depend only on the functional predictor(s) (one or both mobility indexes) at time Inline graphic; in this formulation the lag Inline graphic is an additional model parameter. We shift the mobility curves of each province by the same shift used to align its mortality curves (Fig. S10 shows the mobility curves after this alignment), and we fit the models with 10 different values of Inline graphic ranging from 15 to 24 days. This range is consistent with the observed lag distributions (Fig. 4B), previous findings36, and established epidemiological frameworks37–39. Fitting our models with different lags addresses potential stability pitfalls35, and provides a robust characterization of the relationships under investigation. In symbols, the general formulation we utilize is

graphic file with name d33e1819.gif 3

where, as before, Inline graphic is the collection of n shifted mortality curves, Inline graphic, and Inline graphic are i.i.d. Gaussian errors. M is the number of functional predictors (Inline graphic in Model A and Inline graphic in Model B), all introduced with the same lag Inline graphic, and J is the number of scalar covariates (Inline graphic in Model A and Inline graphic in Model B). Finally, Inline graphic, Inline graphic, and Inline graphic are functional intercept and coefficient curves for provinces where the epidemic was mild (Inline graphic) while Inline graphic, Inline graphic, and Inline graphic are the corresponding coefficient curves for provinces where the epidemic was hard/intermediate (Inline graphic).

All concurrent functional regressions for Models A and B are fit in R using the pffr function in the refund package59. Curves are evaluated on a grid of 100 equispaced points (the model takes evaluated curves, not an explicit basis expansion). Other arguments are left at defaults, as follows. We use tensor-product terms of type ti to construct the smooth, t-varying coefficient functions. Along the response index Inline graphic, the global functional intercept Inline graphic uses cubic B-splines with Inline graphic and a first-order difference penalty; all Inline graphic-varying coefficient functions (including concurrent effects and varying scalar effects) use the response-index basis with cubic B-splines, Inline graphic, and the same penalty. Smoothing parameters are estimated by REML, and uncertainty quantification uses the default mgcv Bayesian covariance of the penalized spline coefficients. Finally, for each functional model, we also compute the Inline graphic and the partial Inline graphic of each covariate.

Supplementary Information

Acknowledgements

M.A.C. acknowledges the support of the Natural Sciences and Engineering Research Council of Canada (NSERC), of the Fonds de recherche du Québec Santé (FRQS), of the FRQ-IVADO Chair in Statistical Learning, and of Faculty of Business Administration, Université Laval. The work of F.C. was partially supported by the Huck Institutes of the Life Sciences at Penn State, the L’EMbeDS Department of Excellence of the Sant’Anna School of Advanced Studies, and the SMaRT COnSTRUCT project (CUP J53C24001460006, as part of FAIR, PE0000013, CUPB53C22003630006, Italian National Recovery and Resilience Plan funded by NextGenerationEU).

Author contributions

All authors conceived ideas and analysis approaches. T.B., J.D.I., and L.T. retrieved and processed data from multiple public sources, implemented pipelines and performed statistical analyses. All authors interpreted findings and participated to the writing of the manuscript. M.A.C. and F.C. supervised the research.

Data availability

The data used for all the analyses are available at https://github.com/tobiaboschi/fdaCOVID2.

Declarations

Competing interests

The authors declare no competing interests. 

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally to this work: Tobia Boschi, Jacopo Di Iorio and Lorenzo Testa.

Contributor Information

Marzia A. Cremona, Email: marzia.cremona@fsa.ulaval.ca

Francesca Chiaromonte, Email: fxc11@psu.edu.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-025-29316-4.

References

  • 1.Kokoszka, P. & Reimherr, M. Introduction to functional data analysis (CRC Press, 2017). [Google Scholar]
  • 2.Ramsay, J. O. & Silverman, B. W. Functional data analysis, 2 edn. (Springer, Berlin, 2005).
  • 3.Boschi, T., Di Iorio, J., Testa, L., Cremona, M. A. & Chiaromonte, F. Functional data analysis characterizes the shapes of the first COVID-19 epidemic wave in Italy. Sci. reports11, 1–15 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Collazos, J. A., Dias, R. & Medeiros, M. C. Modeling the evolution of deaths from infectious diseases with functional data models: The case of COVID-19 in Brazil. Stat. Medicine42, 993–1012 (2023). [DOI] [PubMed] [Google Scholar]
  • 5.Engle, S., Stromme, J. & Zhou, A. Staying at home: mobility effects of COVID-19. Available at SSRN3565703, 1–16 (2020). [Google Scholar]
  • 6.Nepomuceno, M. R. et al. Besides population age structure, health and other demographic factors can contribute to understanding the COVID-19 burden. Proc. Natl. Acad. Sci.117, 13881–13883 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Nouvellet, P. et al. Reduction in mobility and COVID-19 transmission. Nat. communications12, 1–9 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Hastie, T., Tibshirani, R. & Friedman, J. The elements of statistical learning: data mining, inference, and prediction (Springer Science & Business Media, 2009). [Google Scholar]
  • 9.Ciminelli, G. & Garcia-Mandicó, S. COVID-19 in Italy: an analysis of death registry data. J. Public Heal.42, 723–730 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Henry, N. J., Elagali, A., Nguyen, M., Chipeta, M. G. & Moore, C. E. Variation in excess all-cause mortality by age, sex, and province during the first wave of the COVID-19 pandemic in Italy. Sci. reports12, 1–12 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Buoro, S. et al. Papa Giovanni XXIII Bergamo hospital at the time of the COVID-19 outbreak: letter from the warfront. J Lab Hematol.42, 8–10 (2020). [DOI] [PubMed] [Google Scholar]
  • 12.Senni, M. COVID-19 experience in Bergamo, Italy. Eur Heart J. (2020). [DOI] [PMC free article] [PubMed]
  • 13.Golinelli, D. et al. Small-scale spatial analysis shows the specular distribution of excess mortality between the first and second wave of the COVID-19 pandemic in Italy. Public Heal.194, 182–184 (2021). [DOI] [PubMed] [Google Scholar]
  • 14.Perico, N. et al. Bergamo and COVID-19: how the dark can turn to light. Front. medicine8, 609440 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Vinceti, M., Filippini, T., Rothman, K. J., Di Federico, S. & Orsini, N. The association between first and second wave COVID-19 mortality in Italy. BMC Public Heal.21, 1–9 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Basellini, U. & Camarda, C. G. Explaining regional differences in mortality during the first wave of COVID-19 in Italy. Popul. Stud.76, 1–20 (2021). [DOI] [PubMed] [Google Scholar]
  • 17.Cintia, P. et al. The relationship between human mobility and viral transmissibility during the COVID-19 epidemics in Italy. arXiv preprintarXiv:2006.03141, 1–37 (2020).
  • 18.Pepe, E. et al. COVID-19 outbreak response, a dataset to assess mobility changes in Italy following national lockdown. Sci. data7, 230 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Gauvin, L. et al. Socio-economic determinants of mobility responses during the first wave of COVID-19 in Italy: from provinces to neighbourhoods. J. The Royal Soc. Interface18, 20210092 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Ferrante, P. The first year of COVID-19 in italy: incidence, lethality, and health policies. J. Public Heal. Res. 11, jphr–2021 (2022). [DOI] [PMC free article] [PubMed]
  • 21.Scimone, R., Menafoglio, A., Sangalli, L. M. & Secchi, P. A look at the spatio-temporal mortality patterns in Italy during the COVID-19 pandemic through the lens of mortality densities. Spatial Stat. 100541 (2021). [DOI] [PMC free article] [PubMed]
  • 22.Shet, A., Ray, D., Malavige, N., Santosham, M. & Bar-Zeev, N. Differential COVID-19-attributable mortality and BCG vaccine use in countries. MedRxiv 2020–04 (2020).
  • 23.Blangiardo, M. et al. Estimating weekly excess mortality at sub-national level in italy during the COVID-19 pandemic. PloS one15, e0240286 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Azzolina, D. et al. Regional differences in mortality rates during the COVID-19 epidemic in Italy. Disaster Medicine Public Heal. Prep.16, 1355–1361 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Modi, C., Böhm, V., Ferraro, S., Stein, G. & Seljak, U. Estimating COVID-19 mortality in Italy early in the COVID-19 pandemic. Nat. communications12, 1–9 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Borghesi, A. et al. Lombardy, Northern Italy: COVID-19 second wave less severe and deadly than the first? A preliminary investigation.. Infect. Dis.53, 370–375 (2021). [DOI] [PubMed] [Google Scholar]
  • 27.Chirico, F., Nucera, G. & Szarpak, L. COVID-19 mortality in Italy: The first wave was more severe and deadly, but only in Lombardy region. J. Infect.83, e16 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Zirilli, A., Limonti, F. & Alibrandi, A. COVID-19 pandemic waves in Italy: An epidemiological overview about infections, swabs and death rates. Open J. Epidemiol.12, 285–299 (2022). [Google Scholar]
  • 29.Hartigan, J. A. Clustering algorithms (John Wiley & Sons Inc, 1975). [Google Scholar]
  • 30.Randolph, H. E. & Barreiro, L. B. Herd immunity: understanding COVID-19. Immunity52, 737–741 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Arpino, B., Bordone, V. & Pasqualini, M. No clear association emerges between intergenerational relationships and COVID-19 fatality rates from macro-level analyses. Proc. Natl. Acad. Sci.117, 19116–19121 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Cuéllar, L. et al. Assessing the impact of human mobility to predict regional excess death in Ecuador. Sci. reports12, 1–12 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Rahman, M. M. & Thill, J.-C. Associations between COVID-19 pandemic, lockdown measures and human mobility: Longitudinal evidence from 86 countries. Int. J. Environ. Res. Public Heal.19, 7317 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Horváth, L. & Kokoszka, P. Inference for functional data with applications Vol. 200 (Springer Science & Business Media, 2012). [Google Scholar]
  • 35.Yu, B. & Kumbier, K. Veridical data science. Proc. Natl. Acad. Sci.117, 3920–3929 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Cartenì, A., Di Francesco, L., Henke, I., Marino, T. V. & Falanga, A. The role of public transport during the second COVID-19 wave in Italy. Sustainability13, 11905 (2021). [Google Scholar]
  • 37.Faes, C. et al. Time between symptom onset, hospitalisation and recovery or death: statistical analysis of Belgian COVID-19 patients. Int. journal environmental research and public health17, 7560 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Alene, M. et al. Serial interval and incubation period of COVID-19: a systematic review and meta-analysis. BMC infectious diseases21, 257 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Rai, B., Shukla, A. & Dwivedi, L. K. Incubation period for COVID-19: a systematic review and meta-analysis. J. Public Heal.30, 2649–2656 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Della Rossa, F. et al. A network model of Italy shows that intermittent regional strategies can alleviate the COVID-19 epidemic. Nat. communications11, 5106 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Guzzi, P. H., Tradigo, G. & Veltri, P. Spatio-temporal resource mapping for intensive care units at regional level for COVID-19 emergency in Italy. Int. journal environmental research and public health17, 3344 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Wang, J.-L., Chiou, J.-M. & Müller, H.-G. Functional data analysis. Annu. Rev. Stat. its application3, 257–295 (2016). [Google Scholar]
  • 43.Boschi, T., Reimherr, M. & Chiaromonte, F. A highly-efficient group elastic net algorithm with an application to function-on-scalar regression. Adv. Neural Inf. Process. Syst.34, 9264–9277 (2021). [Google Scholar]
  • 44.Ballari, D., Giraldo, R., Campozano, L. & Samaniego, E. Spatial functional data analysis for regionalizing precipitation seasonality and intensity in a sparsely monitored region: Unveiling the spatio-temporal dependencies of precipitation in Ecuador. Int. J. Climatol.38, 3337–3354 (2018). [Google Scholar]
  • 45.Delicado, P., Giraldo, R., Comas, C. & Mateu, J. Statistics for spatial functional data: some recent contributions. Environmetrics: The official journal of the International Environmetrics Society21, 224–239 (2010).
  • 46.Spassiani, I., Sebastiani, G. & Palu, G. Spatiotemporal analysis of COVID-19 incidence data. Viruses13, 463 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Craven, P. & Wahba, G. Smoothing noisy data with spline functions. Numer. mathematik31, 377–403 (1978). [Google Scholar]
  • 48.Lukas, M. A., de Hoog, F. R. & Anderssen, R. S. Practical use of robust GCV and modified GCV for spline smoothing. Comput. Stat.31, 269–289 (2016). [Google Scholar]
  • 49.Ramsay, J. O., Wickham, H., Graves, S. & Hooker, G. fda: Functional data analysis. R package version 2.2-6 (2011).
  • 50.Google. Community mobility reports. https://www.google.com/covid19/mobility/ (2021).
  • 51.ISTAT. Popolazione residente al 1 gennaio in tutti i comuni. http://dati.istat.it/Index.aspx (2020).
  • 52.ISTAT. Atlante statistico dei comuni. http://asc.istat.it/ASC/ (2020).
  • 53.Ministry of Health. Open data. https://www.dati.salute.gov.it/dati/dettaglioDataset.jsp?menu=dati&idPag=18 (2021).
  • 54.Ministry of Education. Portale unico dei dati della scuola. https://dati.istruzione.it/opendata/opendata/catalogo/#Scuola (2021).
  • 55.Stekhoven, D. J. & Bühlmann, P. Missforest: non-parametric missing value imputation for mixed-type data. Bioinformatics28, 112–118 (2012). [DOI] [PubMed] [Google Scholar]
  • 56.ISTAT. Tavole dati: Ambiente urbano. https://www.istat.it/it/archivio/236912 (2020).
  • 57.Zou, H. & Hastie, T. Regularization and variable selection via the elastic net. J. royal statistical society: series B (statistical methodology)67, 301–320 (2005). [Google Scholar]
  • 58.Friedman, J., Hastie, T., Tibshirani, R. & Narasimhan, B. glmnet. R package version 4.1-3 (2021).
  • 59.Goldsmith, J. et al. refund: Regression with functional data. R package version 0.1-16 (2016).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The data used for all the analyses are available at https://github.com/tobiaboschi/fdaCOVID2.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES