Spatial Classification Modelling of Imbalanced Response Using Firth Penalized Class-Weighted Geographically Weighted Logistic Regression
Abstract
Binary regional classification of food security is often complicated by class imbalance and spatially heterogeneous predictor–outcome relationships. This study applies Firth Penalized Class-Weighted Geographically Weighted Logistic Regression (Firth CW-GWLR), which combines geographically weighted estimation, class weighting, and Firth's penalty on each local likelihood to reduce small-sample bias and protect against separation. The model is applied to the 2025 food security status of the 22 regencies/cities of East Nusa Tenggara (NTT), Indonesia (18 food insecure and 4 food secure), using the open unemployment rate (X1), the share of agricultural workers (X2), and the number of markets (X3). VIF values (1.12–2.03) indicate no multicollinearity. The Breusch–Pagan test (p = 0.0375) and Moran's I of the global-model residuals (I = 0.2025, p = 0.0248) suggest that the global model is misspecified and motivate local modelling, but they do not by themselves show that the regression coefficients vary spatially. An adaptive Gaussian kernel with 21 nearest neighbours was selected (AICc = 21.170). GWLR, CW-GWLR, Firth-GWLR, and Firth CW-GWLR were compared by leave-one-out cross-validation (LOOCV), in which the class weights, bandwidth, and coefficients were re-estimated in each training fold; because the kernel type was selected on the full data, the LOOCV results are conditional on that choice. All local estimates converged. CW-GWLR achieved the highest balanced accuracy (0.764) and F1 (0.545), Firth-GWLR the highest specificity (0.944), and Firth CW-GWLR identified three of the four food-secure regencies (recall 0.750) but classified five food-insecure regencies as food secure. The fully local model had a slightly lower LOOCV Brier score than models with one global coefficient, which is descriptive rather than formal evidence of spatial variation. With only four food-secure regencies, these results are indicative rather than conclusive.
Keywords
Full Text:
PDFReferences
[1] Andi Rachman Salasa. “Paradigma dan dimensi strategi ketahanan pangan Indonesia”. In: Jejaring Administrasi Publik 13.1 (2021), pp. 35–48. doi: 10.20473/jap.v13i1.29357.
[2] Badan Pangan Nasional. Peta Ketahanan dan Kerentanan Pangan (Food Security and Vulnerability Atlas) Tahun 2025. Tech. rep. Jakarta: Deputi Bidang Kerawanan Pangan dan Gizi, Badan Pangan Nasional, 2025. URL: https://badanpangan.go.id/.
[3] Anna Ellenora Nainupu and Kadir. “Determinan Status Kerawanan Pangan Rumah Tangga di Provinsi Nusa Tenggara Timur: Analisis Regresi Logistik”. In: Jurnal Statistika Terapan 3.1 (2023), pp. 37–49. URL: https://jstar.id/ojs/index.php/JSTAR/article/view/38.
[4] Gary King and Langche Zeng. “Logistic regression in rare events data”. In: Political Analysis 9.2 (2001), pp. 137–163. doi: 10.1093/oxfordjournals.pan.a004868.
[5] Wei Chen, Kun Yang, Zhiyong Yu, Yong Shi, and C. L. Philip Chen. “A survey on imbalanced learning: latest research, applications and future directions”. In: Artificial Intelligence Review 57.6 (2024), p. 137. doi: 10.1007/s10462-024-10759-6.
[6] Lili Zhang, Trent Geisler, Herman Ray, and Ying Xie. “Improving logistic regression on the imbalanced data by a novel penalized log-likelihood function”. In: Journal of Applied Statistics 49.13 (2022), pp. 3257–3277. doi: 10.1080/02664763.2021.1939662.
[7] Jyun-You Chiang, Yuhlong Lio, Chih-Ying Hsu, Chia-Ling Ho, and Tzong-Ru Tsai. “Binary classification with imbalanced data”. In: Entropy 26.1 (2024), p. 15. doi: 10.3390/e26010015.
[8] Dian Eka Apriana Sulasih, Santi Wulan Purnami, and Santi Puteri Rahayu. “The theoretical study of rare event weighted logistic regression for classification of imbalanced data”. In: Proceeding of the International Summit on Science, Technology, and Humanity (ISETH). 2015, pp. 159–169. doi: 10.23917/iseth.2376.
[9] Rui Zhu, Yiwen Guo, and Jing-Hao Xue. “Adjusting the imbalance ratio by the dimensionality of imbalanced data”. In: Pattern Recognition Letters 133 (2020), pp. 217–223. doi: 10.1016/j.patrec.2020.03.004.
[10] Ruben Van den Goorbergh, Maarten Van Smeden, Dirk Timmerman, and Ben Van Calster. “The harm of class imbalance corrections for risk prediction models: illustration and simulation using logistic regression”. In: Journal of the American Medical Informatics Association 29.9 (2022), pp. 1525–1534. doi: 10.1093/jamia/ocac093.
[11] A. Stewart Fotheringham, Chris Brunsdon, and Martin Charlton. Geographically Weighted Regression: The Analysis of Spatially Varying Relationships. Wiley, 2002.
[12] P. Novianti and D. Rosadi. “Geographically Weighted Logistic Regression Model on Binomial Data to Explore Weather Spatial Non-Stationarity in Covid-19 Cases”. In: Engineering Letters 31.3 (2023). URL: https://www.engineeringletters.com/issues_v31/issue_3/EL_31_3_07.pdf.
[13] G. A. N. B. Syafii, R. D. Hanifah, R. Arisanti, and N. H. Pusponegoro. “Pemodelan Status Ketertinggalan Perekonomian Regional Menggunakan Geographically Weighted Logistic Regression (GWLR)”. In: Seminar Nasional Official Statistics. Vol. 2024. 1. 2024, pp. 1085–1096. doi: 10.34123/semnasoffstat.v2024i1.2208.
[14] Toha Saifudin, Leni Sartika Panjaitan, Sabrina Falasifah, and Yan Dwi. “Application of Geographically Weighted Logistic Regression in Modeling the Human Development Index in East Java”. In: Jurnal Aplikasi Statistika & Komputasi Statistik 16.1 (2024), pp. 43–57. doi: 10.34123/jurnalasks.v16i1.587.
[15] Ernest Konadu Appiah, Eric Nimako Aidoo, Richard Kodzo Avuglah, and Simon Kojo Appiah. “Geographically weighted logistic regression model for identifying risk factors for malaria infection among under-5 children in Ghana”. In: Scientific African 26 (2024), e02398. doi: 10.1016/j.sciaf.2024.e02398.
[16] Nurul Era Natasyah Beddu Solo, Muhammad Nusrang, and Zakiyah Mar’ah. “Pemodelan Faktor-Faktor Yang Berpengaruh Terhadap Angka Buta Huruf di Provinsi Sulawesi Selatan dengan Geographically Weighted Logistic Regression (GWLR)”. In: VARIANSI: Journal of Statistics and Its Application on Teaching and Research 6.1 (2024), pp. 44–55. URL: https://jurnalvariansi.unm.ac.id/index.php/variansi/article/view/141.
[17] Siti Hariati Hastuti, Alissa Chintyana, and Hanipar Mahyulis Sastriana. “Evaluating Kernel Weighting Functions in Geographically Weighted Logistic Regression for Spatial Modelling of Stunting in East Lombok”. In: Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi 13.3 (2025), pp. 338–345. doi: 10.37905/euler.v13i3.33951.
[18] Vida Faiza Rochmah and Vita Ratnasari. “Pemodelan Ketahanan Pangan di Jawa Timur Menggunakan Metode Geographically Weighted Ordinal Logistic Regression (GWOLR)”. In: Jurnal Sains dan Seni ITS 8.2 (2019), pp. D487–D492. doi: 10.12962/j23373520.v8i2.47021.
[19] Mohammad Ali Mansournia, Angelika Geroldinger, Sander Greenland, and Georg Heinze. “Separation in logistic regression: causes, consequences, and control”. In: American Journal of Epidemiology 187.4 (2018), pp. 864–870. doi: 10.1093/aje/kwx299.
[20] David Firth. “Bias reduction of maximum likelihood estimates”. In: Biometrika 80.1 (1993), pp. 27–38. doi: 10.1093/biomet/80.1.27.
[21] Georg Heinze and Michael Schemper. “A solution to the problem of separation in logistic regression”. In: Statistics in Medicine 21.16 (2002), pp. 2409–2419. doi: 10.1002/sim.1047.
[22] Ioannis Kosmidis and David Firth. “Jeffreys-prior penalty, finiteness and shrinkage in binomial-response generalized linear models”. In: Biometrika 108.1 (2021), pp. 71–82. doi: 10.1093/biomet/asaa052.
[23] Badan Pangan Nasional. Indeks Ketahanan Pangan (IKP) Tingkat Kabupaten Kota Tahun 2025 (12 Indikator). Open Data Badan Pangan Nasional. 2025. URL: https://data.badanpangan.go.id/datasetpublications/uny/ikp-kabupaten-kota-2025.
[24] David W Hosmer Jr, Stanley Lemeshow, and Rodney X Sturdivant. Applied logistic regression. 3rd. John Wiley & Sons, 2013. doi: 10.1002/9781118548387.
[25] Alan Agresti. Categorical data analysis. 3rd. John Wiley & Sons, 2013.
[26] Habshah Midi, Saroje Kumar Sarkar, and Sohel Rana. “Collinearity diagnostics of binary logistic regression model”. In: Journal of Interdisciplinary Mathematics 13.3 (2010), pp. 253–267. doi: 10.1080/09720502.2010.10700699.
[27] D. S. Young. Handbook of Regression Methods. CRC Press, 2018. doi: 10.1201/9781315154701.
[28] S Sathyanarayanan and B Roopashri Tantri. “Confusion matrix-based performance evaluation metrics”. In: African Journal of Biomedical Research 27.4S (2024), pp. 4023–4031. doi: 10.53555/AJBR.v27i4S.4345.
[29] Sylvain Arlot and Alain Celisse. “A survey of cross-validation procedures for model selection”. In: Statistics Surveys 4 (2010), pp. 40–79. doi: 10.1214/09-SS054.
[30] Isabella Gollini, Binbin Lu, Martin Charlton, Christopher Brunsdon, and Paul Harris. “GWmodel: An R Package for Exploring Spatial Heterogeneity Using Geographically Weighted Models”. In: Journal of Statistical Software 63.17 (2015), pp. 1–50. doi: 10.18637/jss.v063.i17.
[31] Yoav Benjamini and Yosef Hochberg. “Controlling the false discovery rate: a practical and powerful approach to multiple testing”. In: Journal of the Royal Statistical Society: Series B (Methodological) 57.1 (1995), pp. 289–300. doi: 10.1111/j.2517-6161.1995.tb02031.x.
[32] Yee Leung, Chang-Lin Mei, and Wen-Xiu Zhang. “Statistical tests for spatial nonstationarity based on the geographically weighted regression model”. In: Environment and Planning A 32.1 (2000), pp. 9–32. doi: 10.1068/a3162.
DOI: https://doi.org/10.18860/cauchy.v11i2.45533
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Zheryl Zabrina Hibatullah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Editorial Office
Mathematics Department,
Maulana Malik Ibrahim State Islamic University of Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
e-mail: cauchy@uin-malang.ac.id

CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







