There is a newer version of the record available.

Published November 5, 2026 | Version v1

Leprosy detection forecasting and clustering in the health regions of Pará, Brazil (2001–2020): data, models and code

Description

Supplementary data and code for the manuscript "Two decades of leprosy in the Brazilian Amazon (2001–2020): forecasting detection coefficients and identifying priority regions through hierarchical and deep-learning models" (Scientific Reports, under review).

The record contains: (i) municipal leprosy detection indicators for the 144 municipalities of Pará (2001–2020; SINAN and IBGE), the territorial structure (microregion, mesoregion, health region) and the regional series used for modelling (13 health regions × 3 indicators × 20 years = 780 records); (ii) observed values and fitted/predicted values of all models (univariate ARIMA, grouped/hierarchical ARIMA, five multilayer perceptron networks and N-BEATS); (iii) the PMML specification (architecture, activation functions and weights) of the five finalist neural networks and the selected hyperparameters of the 39 N-BEATS models; (iv) R scripts (forecast, hts, hydroGOF, hclust) and Python notebooks (Darts); and (v) goodness-of-fit metrics for all models over all available years, the common window 2007–2019 and 2020 alone, and the clustering summary.

Indicators: detection coefficient in the general population (DGP), detection coefficient in people under 15 years (DP15) and proportion of new cases with grade-2 disability (DG2D). The regional series used for modelling are sums of municipal coefficients (not regional rates); regional rates are provided separately. See README.md for details, evaluation periods and known discrepancies.

Methods


| Model | Implementation | Fitting | Values compared with observations |
|---|---|---|---|
| ARIMA | R `forecast::auto.arima`, non-seasonal, one model per regional series | 2001–2019, temporal order | 2001–2019 one-step fitted (in-sample); 2020 out-of-sample |
| Hierarchical ARIMA | R `hts::gts` (mesoregion × health region × microregion × municipality × indicator), ARIMA on the 432 bottom series, bottom-up | 2001–2019, temporal order | as ARIMA |
| ANN (MLP) | Statistica 13.5, BFGS; one network for all 780 records; inputs region, indicator, year | random 70/15/15 split of all records 2001–2020 (546/117/117) | all years (no out-of-sample year) |
| N-BEATS | Python Darts, one model per series; 6-year input → 1 year; MinMax scaling; year as covariate; 25 epochs; grid search by RMSE | 2001–2019, sliding windows | 2007–2019 in-sample; 2020 out-of-sample; none for 2001–2006 |

Selected models (lowest weighted value, Table 1): ANN R4 (MLP 17-10-1) for DGP and DP15; N-BEATS for DG2D. Hierarchical ARIMA values were used only to draw the DG2D curves for 2001–2006 in the figures. `goodness_of_fit_metrics.csv` also reports all models on the common window 2007–2019 and on 2020 alone. Metrics measure fit to the recorded series, not generalisation error; the reported r² is the squared Pearson correlation.

 

Files

leprosy-para-forecasting_ver2.zip

Files (8.8 MB)

Name Size
md5:1bb2050f6271f809690457810413b5f7
8.8 MB Preview Download

Additional details

Funding

Fundação Amazônia de Amparo a Estudos e Pesquisas (FAPESPA)
Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq), 308600/2022-3