1. Introduction
Type 1 diabetes (T1D) is a chronic autoimmune disorder characterized by the immune-mediated destruction of pancreatic β-cells, resulting in lifelong dependence on exogenous insulin therapy. Although traditionally considered a pediatric condition, recent evidence shows that T1D occurs across the lifespan, with frequent diagnostic ambiguity in adults due to clinical overlap with type 2 diabetes (T2D) [
1]. T1D pathogenesis starts in early life, with β-cell autoantibodies (insulin (IAA), glutamic acid decarboxylase antibody (GADA), islet antigen-2 (IA-2) and zinc transporter 8 (ZnT8).
The presence of multiple islet autoantibodies is a near-certain predictor of progression to clinical disease, with up to 70% of children progressing to overt diabetes within a decade of seroconversion [
2]. Genetically, the strongest risk for T1D is conferred by specific HLA class II haplotypes, particularly HLA-DR3-DQ2 and HLA-DR4-DQ8, which account for over 90% of cases in some populations [
3]. Non-HLA loci, including variants in INS, PTPN22, and IL2RA, also contribute to genetic disease susceptibility [
4], and genome-wide association studies (GWAS) have now identified over 60 loci involved in T1D genomic risk [
5]. Importantly, genetic risk is not confined to familial cases; indeed, most children diagnosed with T1D do not have a first-degree relative with the disease [
6].
Recent advances in immunomodulatory therapy have opened new pathways for personalized intervention. The FDA’s approval of teplizumab, an anti-CD3 monoclonal antibody, for delaying the clinical onset of T1D in high-risk individuals marks the first immunotherapy approved for pre-symptomatic disease [
7]. This development highlights a shift toward an etiological treatment paradigm that aims to preserve β-cell function during the early stages of autoimmunity [
8].
Primary prevention strategies, though historically limited by unclear environmental triggers, are being revitalized through population screening initiatives and genetic risk stratification models.
Given the preclinical nature of T1D, early identification of individuals at high risk has become a major goal for primary prevention strategies. Longitudinal studies such as TEDDY [
9] and GPPAD [
6] have demonstrated the feasibility of genetic risk screening in infancy by using polygenic risk scores (PRS), which integrate both HLA haplotyping and non-HLA SNPs analysis to predict the likelihood of seroconversion to autoantibody positivity and subsequent diabetes [
4,
5]. Despite advances in genetic prediction, the clinical classification of diabetes remains challenging, particularly in adults, where T1D is frequently misdiagnosed as T2D. Studies have shown that up to 40% of cases may be miscoded, misclassified, or misdiagnosed in primary care records, potentially compromising treatment, research efforts, and patient management [
9]. Moreover, racial and ethnic disparities in T1D incidence, outcomes, and glycemic control have been well-documented. African American youth, for instance, experience the substantial burden of T1D alongside T2D, often presenting with poorer metabolic profiles and higher A1C levels, which are associated with increased risk of medical complications [
10].
These findings underscore the serious need for robust, ancestry-aware diagnostic tools that leverage both clinical and genomic data to improve the early detection and subtype classification of diabetes, even before the first symptoms appear.
Recent advances in the development and refinement of genetic risk scores (GRSs) for T1D have highlighted the importance of ancestry-aware modeling and cross-population validation, as summarized in the following related studies.
Onengut-Gumuscu et al. [
11] addressed the underrepresentation of individuals of African ancestry in genetic studies of T1D by analyzing ImmunoChip SNP data from over 1000 African-ancestry T1D cases and nearly 3000 controls. They have developed an ancestry-specific genetic risk score that incorporated both novel and well-known loci, including African-specific HLA haplotypes and non-HLA SNPs, such as those in the Insulin (
INS) and Gasdermin-B (
GSDMB) genes. Their African-specific GRS significantly outperformed a European-derived GRS in African-ancestry samples, achieving an area under the curve (AUC) of 0.871 compared to 0.798 when applying the European-derived GRS to African-ancestry individuals. These findings emphasize the decisive importance of population-specific polygenic risk modeling to enhance the prediction accuracy and guide immune monitoring interventions and screening in diverse populations.
Building upon this, Sharp et al. [
12] introduced an improved GRS termed T1D GRS2, specifically designed to enhance the prediction of T1D, with a focus on newborn screening and on the discrimination of T1D at incident diagnosis (particularly from T2D). T1D GRS2 incorporates 67 SNPs, including refined tagging of 14 HLA DR-DQ haplotypes, their interactions, and 32 non-HLA loci. This enhanced model demonstrated a significantly superior discriminative performance, with an AUC of 0.927 in the T1DGC cohort and 0.921 in the UK Biobank validation set. Notably, T1D GRS2 showed an improved ability to differentiate T1D from type 2 diabetes and to identify newborns with increased risk, offering a practical and cost-effective solution for early diagnosis and intervention.
Qu et al. [
13] demonstrated that T1D-GRS2 effectively predicts T1D in African American (AUC 0.807) and European American (AUC 0.823) children, with improved performance after adding four African-specific SNPs (AUC 0.826 and 0.839), supporting trans-ethnic calibration. Oram et al. [
14] further validated GRS2 in diverse youth, outperforming earlier 30-SNP models, especially in Hispanic and Black individuals, and enabling accurate classification of ambiguous or autoantibody-negative diabetes when combined with a T2D-GRS. More recently, Luckett et al. [
15] introduced GRS2x, a standardized and ancestry-aware version incorporating the imputation of missing variants, achieving high predictive accuracy driven mainly by HLA class II effects (AUC up to 0.90) and robust generalization to multiethnic cohorts (AUC ~0.86–0.93), thus enabling scalable early-life genetic risk stratification.
In this study, we explore the use of SNP-based models through a neural network-driven polygenic risk modeling to identify individuals who are at risk for T1D, with the broader goal of enhancing diagnostic accuracy and informing targeted preventive strategies.
2. Results
2.1. Feed-Forward Neural Network Cross-Validation
We have evaluated the neural network model across different class ratios: 1:1, 1:2 and 1:3 (case:control), as well as using the full unbalanced dataset. The results of the cross-validated experiments and their generalization to the test set are shown in
Table 1. As shown in
Table 1, the best-performing model achieved a mean AUC of 0.903, using a 1:3 case-to-control ratio and effect-allele-count encoding.
Notably, β-weighted encoding under the 1:3 class ratio showed reduced cross-validation performance compared to raw allele-count encoding. One possible explanation is that externally derived β coefficients, while informative in linear models such as GRS2, may introduce fixed weighting assumptions that interact suboptimally with a moderate class imbalance in nonlinear architectures. In contrast, raw allele encoding allows for the neural network to learn feature importance dynamically during training, potentially providing greater flexibility under varying sampling conditions.
2.2. Entropy-Based Neural Network
The experiments described in
Section 4.2.5 were systematically repeated, using the same neural network architecture and validation protocol. Incorporating entropy-related features produced performance that was comparable to SNP-only models, with only marginal differences observed in cross-validation and no consistent improvement in held-out test performance. The best-performing configuration corresponded to the global subject entropy setup, reaching a cross-validation mAUC of 0.9033. However, when evaluated on the held-out test set, generalization performance decreased to an AUC of 0.8741, suggesting that the entropy-enriched models may have increased model variance. Given the absence of consistent improvement in held-out test performance, entropy was not included in the final externally validated model.
2.3. Threshold-Based Risk Assessment
In order to facilitate the clinical interpretability of model outputs, the predicted probabilities for the test set were analyzed in a risk-stratified framework. Kernel Density Estimation (KDE) plots, shown in
Figure 1, were generated to visualize the distribution of predicted probabilities for T1D cases and controls. These plots highlight the degree of overlap between both groups and the model’s ability to separate high-risk from low-risk individuals.
Based on the observed probability distribution of the cross-validated experiments and predefined interpretability objectives, five risk categories were defined: very low, low, average, high, and very high. The corresponding probability thresholds (0.1, 0.35, 0.65, and 0.9) were selected to represent progressively increasing levels of genetic risk while maintaining clinically meaningful trade-offs between sensitivity and specificity, and were not optimized on the test set. Lower thresholds prioritize high negative predictive values, which are suitable for screening contexts, whereas higher thresholds emphasize specificity and positive predictive values to identify individuals who are at substantially elevated genetic risk.
This threshold-based classification allows for a more intuitive interpretation of the predicted risk and facilitates potential clinical or epidemiological applications.
Table 2 summarizes the distribution of subjects across the proposed risk categories in the test set, showing the percentage of cases and controls within each group. This threshold-based approach provides an interpretable framework to contextualize individual risk scores, illustrating the model’s discriminative capacity in a way that may be more actionable for risk communication or population-level stratification.
When applied to the subset of individuals with T2D, the model assigned probability values that were predominantly within the very low and low risk ranges, which was consistent with the distribution observed in the healthy controls, as can be seen in
Table 2 and
Figure 1. This result supports the notion that the genetic risk factors captured by the model are specific to autoimmune diabetes, and that T2D individuals, from a genomic standpoint, behave similarly to controls in the context of T1D risk prediction.
To further quantify the classifier performance under varying risk thresholds, sensitivity, specificity, and predictive values were calculated at the conventional 0.5 cut-off and the thresholds used in the risk assessment framework (0.1, 0.35, 0.65, 0.9). The results are summarized in
Table 3.
As shown in
Table 3, lowering the probability threshold increased the sensitivity at the expense of the specificity, whereas higher thresholds improved the positive predictive value (PPV) but reduced the sensitivity. At the upper end, the “very high” risk category achieved excellent specificity (97.3%) and the highest positive predictive value (61.9%), suggesting its potential for identifying individuals with a strong genetic predisposition to T1D. Conversely, those classified within the “very low” risk group exhibited a negative predictive value (NPV) of 98.9%, indicating that the model reliably excludes genetically low-risk profiles. It is important to note that these positive and negative predictive values were derived from the held-out test set, which preserved the true population prevalence of approximately 10% T1D cases. Under these conditions, PPV and NPV provide realistic estimates of how the model might perform in a representative European screening context. However, when applied to external datasets with different case–control ratios, these metrics become prevalence-dependent and should therefore be interpreted with caution. In such scenarios, AUC and sensitivity/specificity remain the most robust indicators of classifier performance.
Overall, these findings demonstrate that the neural network-derived probabilities can be translated into clinically interpretable risk categories, enabling both individualized assessment and population-level stratification. To further examine the generalizability of the model and evaluate the stability of these thresholds under different prevalence conditions, the same probability-based framework was subsequently applied to an external European cohort, as detailed in the following section.
2.4. Model Validation on an External European Cohort
To further evaluate the robustness and generalizability of the proposed neural network, an external validation was performed using an independent cohort provided by a collaborating German research group. This cohort presented an unbalanced case–control distribution, with a markedly higher T1D prevalence than the 10% ratio maintained in the UK Biobank test set. Consequently, while sensitivity and specificity remain valid indicators of classifier discrimination, PPV and NPV must be interpreted with caution, as they are directly influenced by prevalence. In this context, PPV and NPV are not fully comparable to those obtained in the UK Biobank sample, but can still offer qualitative insight into the model’s calibration under different epidemiological conditions. This independent validation cohort comprised 367 T1D cases and 123 controls. Within the T1D group, participants were further categorized according to their GADA status, a common immunological marker distinguishing autoimmune (GADA+) from non-autoimmune (GADA-) diabetes forms. GADA positivity reflects the presence of autoimmune β-cell destruction, whereas GADA-negative cases may correspond to atypical or mixed phenotypes. Among the T1D group, 295 individuals were GADA+ and 72 were GADA-. This stratification enabled us to assess whether the model differentially recognized autoimmune-driven genetic risks.
KDE plots (
Figure 2) were generated to visualize the distribution of predicted probabilities in the GDS separately for cases and controls, and were further stratified by GADA, potentially reflecting distinct genetic architectures. To quantitatively evaluate the model performance in the external European cohort, sensitivity and specificity were computed at the same probability thresholds applied to the UK Biobank dataset (0.10, 0.35, 0.50, 0.65, and 0.90). For this analysis, only glutamic acid decarboxylase antibody-positive (GADA+) cases were compared against the controls, representing the autoimmune form of type 1 diabetes. These results are summarized in
Table 4. Following the same methodology applied to the UK Biobank test set, five risk categories were defined, based on probability thresholds of 0.1, 0.35, 0.65, and 0.9, corresponding to very low, low, average, high, and very high risk levels.
Table 5 summarizes the distribution of subjects across these categories for the external European validation cohort, showing the percentage of controls, GADA- cases, and GADA+ cases within each group.
Comparison with T1D GRS2
To contextualize the neural network’s performance, we computed the original T1D GRS2 on the German cohort. GRS2 achieved an AUC of 0.8334 (95% CI: 0.7938–0.8730) for case–control discrimination, which was slightly higher than the neural network (AUC 0.8086; 95% CI: 0.7657–0.8514). Stratification by GADA status revealed AUCs of 0.8715 (95% CI: 0.8348–0.9083) for GADA+ and 0.6771 (95% CI: 0.5961–0.7580) for GADA- individuals, compared with 0.8389 (95% CI: 0.7976–0.8801) for GADA+ and 0.6845 (95% CI: 0.6041–0.7649) for GADA-, respectively, for the neural network. Thus, both models performed comparably across all groups, with GRS2 showing marginally higher AUC values. A formal statistical comparison between AUCs was not performed, as the external validation analysis was intended to be descriptive, rather than a powered superiority assessment; interpretation is therefore guided by the reported confidence intervals. As summarized in
Table 6, when using clinically relevant thresholds, the neural network preserved higher positive predictive values and stricter high-risk categorization, assigning fewer controls to the upper risk stratification range while maintaining comparable sensitivity. These findings indicate that although GRS2 offers slightly higher global and GADA+ AUC values, the neural network provides more selective high-risk identification and more selective high-risk categorization within the upper probability range.
Overall, the external validation supports the generalizability of the neural network classifier across independent European cohorts. Despite the higher T1D prevalence and the absence of 14 SNPs, the model preserved strong discriminative performance, with probability distributions clearly separating the cases from the controls. The slightly higher PPVs observed in the German cohort reflect the expected influence of prevalence on predictive metrics, rather than overfitting or loss of calibration. Importantly, similar trends across the GADA+ and GADA− subgroups indicate that the classifier captures a shared genetic signal underlying autoimmune susceptibility, while still recognizing variability among non-autoimmune cases. These results support the robustness of the probability-based risk framework within comparable European populations and provide a foundation for further validation in broader and multi-ancestry settings.
3. Discussion
This study demonstrates the feasibility and effectiveness of a neural network-driven approach to stratify genetic risk for T1D using a compact SNP panel and entropy-based features. The utility of using a neural network is their ability to model complex, nonlinear interactions between SNPs (epistasis), which are only partially captured by additive polygenic risk scores. In contrast to linear models that assume independent and additive SNP effects, multilayer neural architectures can learn higher-order dependencies and conditional relationships between loci, potentially reflecting the underlying immunogenetic architecture of type 1 diabetes better. We emphasize that this is particularly relevant in and around the HLA region, where epistatic combinations of alleles contribute disproportionately to disease risk, and where nonlinear modeling may recover a signal that is not exploited by standard PRS frameworks. This framework outputs the individualized probability estimates of T1D, rather than arbitrary risk scores, which facilitates direct calibration to clinically meaningful thresholds (e.g., for newborn screening or reclassification of atypical diabetes). Probabilistic outputs allow for explicit control of sensitivity/specificity trade-offs, support decision-curve-type analyses, and are naturally integrable into Bayesian or risk-communication frameworks in clinical practice
Validation in the external German cohort supports transferability across independent European cohorts and suggests that model performance is not specific to a single dataset within populations of similar genetic ancestry. However, because both validation cohorts consisted of individuals of European ancestry, these findings should not be interpreted as evidence of generalizability across diverse ancestral populations. Genetic risk architecture varies across populations, and performance may differ in non-European cohorts. The high AUC values achieved with a compact 67-SNP panel are consistent with the known genetic architecture of T1D, in which high-effect loci, particularly within the HLA region, contribute substantially to risk discrimination. The SNP set used here derives from the validated GRS2 framework. To reduce the overfitting risk, model development incorporated dropout regularization, stratified cross-validation within the training data, and evaluation on both a held-out test set and an independent external cohort. The consistency of discrimination across these stages supports the robustness of the reported performance. When compared directly with the recently described T1D GRS2, the neural network demonstrated broadly comparable discriminative performance in the German cohort. In GADA- individuals, where genetic signal is expected to be weaker and phenotypic heterogeneity greater, both methods showed reduced discrimination. Despite slightly lower AUC values, the neural network provided clearer stratification at high-risk thresholds, with fewer controls entering upper probability categories and higher PPVs at clinically actionable cut-offs. This suggests that nonlinear architectures may capture multi-locus interactions that improve the calibration of the highest-risk profiles, complementing the strong linear performance of the GRS2 model. Overall, the results support the neural network as a competitive and flexible alternative to GRS2. The proposed approach demonstrated more selective upper-tail risk assignment and higher positive predictive values at clinically relevant thresholds, suggesting potential advantages in risk stratification, rather than overall discrimination.
Importantly, the added value of our approach does not primarily reside in uniformly higher performance, but in its probabilistic behavior and structural flexibility. The model enables direct optimization of nonlinear interactions among loci without predefined weighting schemes and produces continuous probability estimates that can be adapted to different clinical contexts. Furthermore, the architecture facilitates future extensions beyond SNP-only models. In this sense, the neural network framework should be interpreted as a flexible modeling platform, rather than a replacement that is strictly judged by performance superiority.
Together, these findings strengthen confidence in the use of neural networks for polygenic risk modeling and provide further evidence that such architectures can generalize across independent European cohorts with comparable genetic architectures and disease prevalences. Consistently with the prior research [
12], our results reaffirm the utility of both raw and β-weighted allele encoding for polygenic modeling. Although β-weighted encodings offer a theoretically improved signal-to-noise ratio by emphasizing SNPs with stronger associations, the performance difference between encoding strategies was minimal. This may suggest that simple allele-count encoding captures most of the predictive information. The 67-SNP panel evaluated here includes several highly informative variants, particularly within the HLA region, which contribute substantially to discrimination. In relatively compact panels dominated by high-effect loci, externally derived β-weighting may offer limited incremental benefit, especially when nonlinear models can implicitly learn differential feature weighting during training. Additionally, the relative genetic homogeneity of the European ancestry cohorts may reduce the variability in effect-size transferability. Importantly, this finding should not be interpreted as evidence that β-weighting lacks value in broader polygenic architectures or multi-ancestry contexts, where large numbers of low-effect variants and effect-size heterogeneity may alter the relative contribution of weighted scoring approaches.
The use of controlled class-imbalanced training proved beneficial in maximizing discriminative ability. As described in
Section 4.2.2, imbalance was handled through random undersampling of controls to construct nested case–control ratios, while class-weighted loss functions were evaluated but did not produce meaningful performance gains. Moderate imbalance (particularly the 1:3 ratio) consistently yielded the highest cross-validation AUCs across encoding schemes.
From a methodological perspective, undersampling may increase variance due to the reduced training data size, whereas extreme imbalance may bias the model toward the majority class and impair minority-class discrimination. In our experiments, moderate imbalance appeared to provide a favorable trade-off between learning stability and case discrimination. Nevertheless, undersampling-based strategies may influence the probability calibration, and future work incorporating formal calibration analyses or alternative reweighting strategies could further clarify these effects. While HWE-based imputation is reasonable for rare missing data and non-selected SNPs, it may introduce bias at immune-related loci like HLA, where deviations from HWE are frequent due to evolutionary selection and disease association; future work will employ LD-based imputation (e.g., IMPUTE2 or Michigan Imputation Server) to mitigate this.
Entropy, used here as an information-theoretic descriptor of genotype complexity, was explored as a secondary feature to assess whether aggregate deviation from population allele frequencies could provide complementary signal beyond individual SNP effects. In cross-validation experiments, entropy showed modest and somewhat variable contributions to performance, and it ranked among influential features in certain configurations (
Supplementary Information). However, its impact on held-out test discrimination was limited and did not consistently enhance the generalization. These findings suggest that entropy may capture aspects of genotype distribution that are not fully reflected by individual SNP inputs, potentially representing aggregate deviation from population norms. Nevertheless, its contribution appears to be context-dependent, and it should be interpreted as exploratory, rather than as a validated improvement to the predictive framework. Its usefulness may vary, depending on model architecture, regularization strategy, and the size and composition of the genetic panel, particularly in compact SNP frameworks dominated by high-effect loci.
Several limitations must be acknowledged. First, the external validation cohort was relatively small and imbalanced, particularly within subgroup analyses. Consequently, confidence intervals and discrimination estimates should be interpreted with appropriate caution. The model was trained and validated exclusively in cohorts of European ancestry, minimizing confounding due to population stratification but limiting immediate generalizability to other ethnic groups. Accordingly, the discrimination metrics reported here should be interpreted as ancestry-specific performance estimates, rather than universally transferable measures of predictive accuracy. Thus, validation across other ancestry-derived cohort sets is mandatory to evaluate the performance of this model in other ethnicities. The reduced performance of European-derived GRSs in African and admixed populations has been well-documented [
11,
13], underscoring the need for ancestry-aware calibration and model adaptation. Future work should extend this framework to multi-ancestry datasets, potentially leveraging transfer learning or ancestry-informative markers to improve cross-population performance. Second, while our model did not explicitly model HLA haplotype interactions, it included SNPs that were strongly associated with key HLA class II risk alleles. These SNPs were in linkage disequilibrium with HLA-DR and HLA-DQ haplotypes that were known to confer T1D risk. Therefore, our approach may have effectively captured much of the relevant HLA signal through these proxy markers. Nevertheless, future work incorporating explicit HLA haplotyping interaction terms could further enhance the model accuracy and interpretability, especially in diverse populations or cases with ambiguous or atypical serological profiles. Proxy HLA SNPs facilitate practical T1D risk prediction but may underperform in non-DR3/DR4 cases or diverse ancestries, due to LD variability and incomplete haplotype coverage; explicit HLA typing is preferable for precise stratification in such contexts. Additionally, formal calibration analyses were not performed in the present study. While the model provides probabilistic outputs and threshold-based risk categories, future work should formally evaluate calibration properties to further support clinical translation. Finally, while the model achieved strong discrimination, translating polygenic predictions into clinical decision-making will require further validation in prospective and pediatric cohorts, where pre-symptomatic identification is the most impactful. Integration of genomic risk with clinical and immunological markers may enhance the prediction of disease progression and support personalized prevention strategies.