Abstract
Questionnaire-based grading of insomnia and anxiety severity is practical only if few items are needed. In 10,322 respondents with physician-assigned ordinal grades, we developed a leakage-controlled, model-aware item-reduction protocol together with OrdiFuse, an ordinal stacking grader. Items were ranked by the grader’s permutation importance on folds excluded from the ranking, and the subset size followed a parsimony rule fixed before a locked test set (n = 2096) was read. The rule retained 24 of 51 items. On the test set, OrdiFuse reached a multitask macro-F1 of 0.936 and graded both conditions exactly for 90.7% of respondents. It performed better than equally tuned single learners, an equally tuned stacking ensemble, and neural multitask networks, but not significantly better than a grid-selected stacking ensemble ( = +0.008; p = 0.17). Nested re-selection chose the same architecture in all three outer splits. Ablations identified the ordinal level-0 learners as the main contributor, whereas cross-task fusion had no measurable effect. At the same 24-item budget, model-aware rankings performed better than most univariate filters and embedded rankings. In a double-graded subset (n = 341), two physicians agreed on 97.7% (insomnia) and 95.6% (anxiety) of grades. Insomnia grades were a near-deterministic function of the full response pattern, though not of the ISI items alone, so the insomnia result mainly reflects reconstruction of the physicians’ questionnaire-based judgement rather than independent clinical validity. Performance decreased under transfer between sub-cohorts (by 0.04–0.09) and between data-collection periods, largely because of differences in case mix. The 24 items form a predictive feature set rather than a validated short scale, and independent prospective validation is needed.
1. Introduction
Insomnia and anxiety are common, frequently co-occurring, and bidirectionally linked: anxiety disrupts sleep, disturbed sleep worsens anxiety, and Mendelian-randomization evidence supports a causal relationship in both directions [1,2,3]. Both are usually first seen in primary care, where detection is incomplete and specialist time is scarce [4,5,6]. Questionnaire-based machine learning could help grade both conditions at the first contact, but two properties are rarely achieved together. The first is joint, ordinal output: a clinician needs a graded severity for each condition, not two independent yes/no flags [7,8]. The second is brevity: every additional item costs respondent time, so the number of items a model needs is part of its practical cost.
The two properties pull against each other. Item reduction is usually performed one instrument and one condition at a time, from model-agnostic statistics such as item-total correlations or univariate association, and is validated by aggregate accuracy [9,10]. A subset chosen this way is not necessarily the subset a joint ordinal model needs: an item that adds little to either condition alone can matter when both are modeled together, and an item that ranks highly on its own can be redundant once its neighbors are present. Conversely, multitask and ordinal learners are usually evaluated only on the full item set. In our earlier analysis of this cohort, a 22-item subset chosen by model-agnostic ranking failed a held-out non-inferiority test against the full 51 items, and the cost fell on the severe anxiety grades.
This study asks whether a joint ordinal grader and its item subset can be derived together, under a protocol that prevents the subset search from contaminating its own evaluation, and how far the resulting performance holds up under equal-budget comparison, re-derivation on new splits, and transfer to sub-cohorts with a different case mix. The target is the physician-assigned severity grade; the work is a prediction-model development study with internal and internal–external validation. It does not evaluate diagnosis, clinical decision-making, or clinical outcomes, and the item subset it produces is a predictive feature set, not a validated short-form instrument. The questionnaire and cohort are study materials rather than contributions. The contributions are methodological:
(i) A leakage-controlled protocol for model-aware item reduction across two ordinal outcomes: items are ranked by the multitask permutation importance of the model that will use them; each candidate subset is scored on folds whose ranking excluded them; the subset size follows an explicit parsimony rule fixed before the test set was read; and the complete procedure is re-derived on repeated splits and in sub-cohorts.
(ii) OrdiFuse, an ordinal stacking grader for both conditions (class-balanced Frank–Hall ordinal and nominal level-0 learners; a level-1 learner per task that receives its own and the other task’s out-of-fold probabilities and the item responses; out-of-fold decision offsets), compared with fourteen tuned alternatives, three neural multitask networks, and ten further default learners under the same tuning, class-weighting, and threshold budget, and dissected by one-at-a-time ablation. Cross-task fusion is treated as a hypothesis to be tested, not as a contribution; it was not confirmed.
(iii) An evaluation that separates levels of evidence: statistical performance on a locked test set with profile-grouped paired tests; reliability (agreement, cumulative calibration and recalibration, decision curves, stability); explanation supported by retraining ablations; subgroup performance; and internal–external transport, while stating what has not been established (psychometric validity, external validity and clinical utility).
Section 2 reviews related work, Section 3 describes the methods, Section 4 reports the results, Section 5 discusses them, Section 6 states the limitations, and Section 7 concludes. A checklist for the Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis Or Diagnosis, extended for artificial intelligence (TRIPOD+AI), is provided in Appendix A (Table A5).
2. Related Work
2.1. Questionnaire-Based Screening for Anxiety and Insomnia
Validated instruments such as the Insomnia Severity Index (ISI) and the Hamilton Anxiety Rating Scale (HAM-A) have established severity bands [11,12,13,14], and many studies train classifiers on such questionnaires for anxiety, depression, or insomnia [7,8,15,16,17,18]. Three features recur: the outcome is binarized, each condition is modeled separately, and the label is often a threshold of an instrument total that is also supplied as a predictor, so that high accuracy may reflect re-derivation of the scoring rule [16,19]. The present study predicts physician-assigned grades for both conditions jointly and does not supply instrument totals as predictors; Section 3.2 discusses the remaining risk that the grades incorporate the items.
2.2. Ordinal, Ensemble, and Multitask Learning
Severity is ordered, and ordinal decompositions such as the Frank–Hall cumulative construction exploit that order with any binary learner, whereas proportional-odds models impose a common slope across thresholds [20,21,22,23]. Stacked generalization combines diverse base learners through a meta-learner trained on out-of-fold predictions [24,25,26]; boosted and bagged trees are strong tabular baselines [27,28]; and stacking has been effective for disease prediction [29,30,31]. Multitask learning exploits structure shared between related outcomes [32,33,34]; for tabular questionnaire data, information can be shared at the level of out-of-fold predictions rather than a neural representation. Simple, well-tuned models are often competitive in clinical tabular prediction [35], so added complexity must be justified against tuned alternatives.
2.3. Feature Selection and Item Reduction
Feature-selection methods are commonly grouped into filters, which rank variables by a model-independent statistic, and wrappers, which evaluate subsets with the learner that will use them [36,37]. Wrappers are better aligned with the final model but are prone to selection bias when the same data are used to choose and to assess a subset [38,39]. Permutation importance measures how much a fitted model relies on a variable [40,41] but can be distorted by correlated predictors, which motivates retraining ablations. Machine-learning item reduction has produced short versions of single sleep questionnaires: for example, a three-item ISI selected with factor analysis and gradient boosting and a two-item ISI selected on psychometric criteria [9,42]; however, these address one instrument and one outcome. We are not aware of an item subset derived jointly for two comorbid ordinal outcomes with a model-aware ranking kept out of the evaluation folds. The individual components (ordinal decomposition, stacking, cross-task information exchange, class weighting, and permutation importance) are all established methods; the gap addressed here is their combination in a leakage-controlled framework for joint ordinal prediction of insomnia and anxiety, evaluated against comparably tuned alternatives and under changes in cohort composition.
3. Materials and Methods
3.1. Participants and Data
The study is a secondary analysis of a cross-sectional questionnaire dataset of 10,322 respondents, collected with a five-domain instrument: the seven ISI items, the fourteen HAM-A items, eleven sociodemographic items, six comorbidity items, and thirteen clinician-authored items describing sleep and anxiety features not covered by the two instruments [43]. These 51 items are the candidate predictors. Data were collected in Bangladesh from 30 June 2022 to 7 January 2025 through the Aachol Foundation, a youth-led social organization that promotes mental health awareness, reduces stigma, and supports psychological well-being. Under a Memorandum of Understanding (MoU) with Daffodil International University (DIU), which has over 21,000 students and hosted many of the events, the foundation organized 23 programs (events; Table A4), some of which were continued in online sessions whose respondents are counted under the parent program, including activities at hospitals and other institutions. Recruitment took place across specialized hospitals and university-based mental-health awareness events. Each record carries the identifier of its program and a coded identifier of the grading physician, both entered from the paper forms. Place of education records where a respondent was educated, not where the respondent lived at the time of the survey. Enumerators assisted participants in completing the questionnaire and then briefly presented each completed form to a physician; incomplete or invalid records were excluded. All predictor blocks, including the HAM-A, were reported by the respondents themselves (with enumerator assistance where needed), and five physicians subsequently assigned the insomnia and anxiety grades. Participants under 18 required written parental/legal-guardian consent. The cohort is described in Table 1.
Table 1.
Characteristics of the cohort and of the training and locked test partitions, n (%).
A total of 10,026 distinct 51-item-plus-grade profiles were observed among the 10,322 records; 101 profiles occurred more than once (296 redundant rows), the most frequent 43 times. With 51 categorical items, exact repetition of a whole profile is unlikely to arise by chance in independent respondents, so repeated submissions or data-entry duplication cannot be excluded, and because no respondent identifier was retained, repeat participation could not be verified. All records were retained, every copy of a profile was kept on the same side of every split, and a sensitivity analysis removed duplicates (Section 3.9).
3.2. Reference Standard
The targets are physician-assigned ordinal grades of insomnia (four levels: none, subthreshold, moderate, severe) and anxiety (five levels: none, mild, mild–moderate, moderate–severe, severe–very severe), recorded as part of clinical assessment and not computed from the instrument totals. Five physicians (medical officers holding a Bachelor of Medicine and Bachelor of Surgery degree) assigned the reference grades. Each respondent completed the questionnaire with the help of an enumerator where needed; the enumerator then presented the completed form, with a brief summary, to one physician, who assigned the grades immediately afterwards (about 5–15 min per respondent). The physicians saw the questionnaire item responses, supplementary items, self-reported comorbidities, presenting history, and clinical encounters, but were not provided with the computed ISI or HAM-A totals or bands. Grading followed each physician’s clinical judgement; no structured grading protocol was used. Every record carries a coded physician identifier (P1–P5); to protect the physicians’ privacy, the codes are not linked to names. All five physicians graded at every program. At one program (E12, 14–18 June 2023; n = 341), a second physician independently graded every respondent as a consistency check; this check was not repeated at other programs, so agreement could be estimated for this subset only.
Physician assigned grades incorporate clinical judgment beyond instrument totals, allowing consideration of contextual factors, such as bereavement or relationship-related distress, that may affect severity interpretation. However, as physicians also reviewed questionnaire responses, potential incorporation bias remains. This is distinct from target leakage, which is excluded computationally: instrument totals and derived categories are never model inputs. To characterize the risk, we report (a) how well shallow decision trees on the two instrument totals recover the grades, (b) how well a single shallow tree on the selected items performs, and (c) how often identical item vectors received different grades, which indicates potential limits on deterministic prediction from the recorded items.
3.3. Problem Formulation and Partitioning
For respondent i with item vector xi and grades yiins ∈ {0,…,3} and yianx∈ {0,…,4}, the goal is a joint predictor of both grades from a subset S of the 51 items, with |S| as small as possible without materially reducing performance. The primary metric is macro-averaged F1 (equal weight to every severity grade); the multitask score is the mean of the two tasks’ macro-F1. Quadratic-weighted kappa (QWK), the ordinal mean absolute error (MAE), macro one-vs-rest area under the receiver operating characteristic curve (AUC), calibration, and exact accuracy are secondary [23,44,45]. A single 80/20 split, stratified on the joint grade and grouped by response profile, produced a training partition of 8226 records and a locked test set of 2096 records with no shared profile. All data-dependent decisions, including design, item ranking, subset size, all hyperparameters, and decision thresholds, were made on the training partition with five grouped, stratified folds shared by all stages (Figure 1). The test set was read once, after all models had been frozen. The smallest grade had 706 (insomnia) and 788 (anxiety) training records, and at the observed accuracy, the 95% margin of error of test-set exact accuracy is about ±1.2 percentage points for anxiety and ±0.4 for insomnia.
Figure 1.
Leakage controlled workflow. All design, ranking, selection, tuning, and threshold decisions (Steps 1–5) use the training partition only; the test set is read once (Step 6).
3.4. OrdiFuse
OrdiFuse is a two-level stacking model fitted jointly to both tasks (Figure 2; settings in Table 2). At level 0, for each task, five class-balanced base learners are fitted: histogram gradient boosting (HGB), extremely randomized trees (ET), and L2-regularized logistic regression (LR) in Frank–Hall ordinal form, and HGB and ET in nominal form. In the ordinal form, a K-grade target is decomposed into K − 1 binary problems 1[y > k]; predicted cumulative probabilities are made monotone by a running minimum, differenced into class probabilities, clipped at 10−9, and renormalized [20]. Class weights are inversely proportional to class frequency [46,47]. We used out-of-fold stacking with cross-task fusion. Each base learner produces out-of-fold (OOF) class probabilities over five grouped internal folds [24]. The level-1 input for a task concatenates that task’s OOF probabilities, the other task’s OOF probabilities, and the encoded item responses. At level 1, a class-balanced HGB meta-learner is fitted per task (log-loss objective). For the decision offsets, per-class additive log-offsets are tuned by coordinate ascent to maximize macro-F1 on the meta-learner’s own OOF predictions and added to the log-probabilities before the arg-max; the reported probabilities are the meta-learner outputs before offsets.
Figure 2.
OrdiFuse architecture. Five class-balanced level-0 learners per task produce out-of-fold probabilities; each task’s meta-learner receives its own and the other task’s probabilities, together with the item responses; and per-class offsets tuned out-of-fold convert probabilities to grades. Arrows indicate the direction of data flow.
Table 2.
OrdiFuse settings (scikit-learn 1.6.1). All random seeds were 42 unless stated.
The model architecture was selected from six design variants (V0–V5) specified before evaluation, differing in their level-0 learners, level-1 inputs, and meta-learners, including an isotonic-calibrated configuration. All variants were evaluated using the same five grouped cross-validation folds on the training partition with all 51 items. The variant achieving the highest mean multitask macro-F1 was adopted as the final OrdiFuse architecture. Because model selection and cross-validation performance estimation used the same folds, the resulting cross-validation scores may exhibit selection optimism. The locked held-out test set, the repeated-split analysis (Section 3.9), and a nested re-selection of the architecture (Section 3.10) provide additional performance assessments to address this limitation.
3.5. Model-Aware Item Reduction
In each training fold, OrdiFuse was fitted on four folds and, on the held-out fold, each item was permuted three times and the mean drop in each task’s macro-F1 recorded [40,41]. Within each task, the drops were truncated at zero and normalized to sum to one; an item’s multitask importance is the mean of its two task-normalized values. A candidate subset of size k was evaluated on fold j with the top-k items of a ranking computed from the other four folds only. The ladder covered k = 10, 14, 18, 22, 26, 30, 36, 42, and 46 items and the full 51. The selected subset S* is the smallest size whose mean fold-wise loss relative to 51 items is at most 0.005 multitask macro-F1 and whose 95% paired-bootstrap upper bound (1000 resamples of the pooled OOF predictions) is below 0.010; if a size qualified, the size two items smaller was also tested. The limits were set to roughly the fold-to-fold standard deviation of the 51-item model (0.004) and to half of the 0.02 non-inferiority margin used in our previous work. The rule was fixed before the test set was read; it was not registered in advance. We refer to S* as a predictive item subset. It is selected for prediction by this model and has not been constructed or validated as a psychometric scale.
3.6. Comparators with an Equal Development Budget
All comparators were fitted on S* and the same training partition. Eight learner families—logistic regression, proportional-odds (cumulative-logit) regression, a radial basis function (RBF) support-vector machine (SVM), random forest (RF), ET, HGB, LightGBM, and XGBoost—were each tuned per task by grouped three-fold cross-validation over a predefined grid (that included class weighting), then given out-of-fold decision offsets by the same procedure as OrdiFuse (five folds), and finally refitted on the whole training partition. Two stacking comparators were included: the stack selected from a grid of eight base/meta combinations on an inner training split, as in our previous work (LR + HGB + RF → HGB, isotonic meta), and the same bases with class weighting, a HGB meta-learner, and decision offsets. Two OrdiFuse ablations (without cross-task fusion; previous configuration V0), untuned default learners, and the published cut-off rule (ISI bands 0–7/8–14/15–21/22–28; HAM-A bands ≤13/14–17/18–24/25–30/≥31) complete the comparison, and OrdiFuse and the stacking comparator on all 51 items quantify the cost of the reduction. Neural multitask baselines are described in Section 3.10.
3.7. Statistical Analysis
On the test set, percentile bootstrap intervals were computed by resampling response-profile groups (2000 resamples) so that duplicated profiles are resampled together. A family of seven comparisons was declared before the test set was read: OrdiFuse versus the grid-selected stacking comparator, the class-balanced offset-tuned stacking comparator, the tuned single learner with the highest training cross-validation (CV) score, class-balanced HGB with default settings, OrdiFuse without fusion, OrdiFuse on all 51 items, and the cut-off rule. For each, we report the multitask difference with its group-bootstrap interval and a two-sided bootstrap p value, Holm-adjusted within the family [48], and per-task differences with exact McNemar tests on per-task correctness [49]. Differences are also expressed as additional correctly graded respondents per 1000. Other comparators are reported with intervals only.
3.8. Reliability, Explainability, and Subgroups
Cohen’s , linear and quadratic-weighted with bootstrap intervals, and exact agreement and agreement within one grade [45] were used. For each cumulative split P(y > k), calibration-in-the-large (intercept with slope fixed at 1) and calibration slope by logistic recalibration; top-label expected calibration error (ECE; 15 bins) and the multiclass Brier score [44,50]; and a recalibration step in which a temperature parameter was fitted to the meta-learner’s OOF probabilities on the training partition and applied to the test probabilities, with decision offsets re-tuned on the recalibrated OOF probabilities, were further implemented. The net benefit of recalibrated probabilities for moderate-or-worse insomnia (grade ≥ 2) and anxiety (grade ≥ 3) across thresholds of 0.05–0.80 [51] was reported. Stability refits with two further seeds; concordance of fold-wise rankings (Kendall’s W); and selection frequency of each item across all re-derivations of the subset (main analysis, three repeated splits and four sub-cohort transfers). Per-task permutation importance on the test set (five permutations), domain-level importance (all S* items of a domain permuted jointly), accumulated local effects (ALEs) on the expected grade for the six most important ordinal items [52], and retraining ablations in which OrdiFuse was refitted without the ISI items, without the HAM-A items, without the clinician-authored items, or without the two background items. Macro-F1 by gender, age band, occupation and place of education with bootstrap intervals; groups with fewer than 20 test respondents are reported without estimates. Cronbach’s and McDonald’s (one-factor) for the retained ISI and HAM-A items.
3.9. Robustness and Generalizability
We assessed pipeline stability across three new profile-grouped 80/20 splits of the full cohort (seeds 101–103), while holding the experimental design fixed. On each new training split, we repeated the complete feature-reduction procedure: three-fold inner OrdiFuse ranking, ladder evaluation (20–30 and 51 items) using leave-one-fold-out rankings, and application of the parsimony rule. We then fitted OrdiFuse, the stacking comparator, and class-balanced HGB on the resulting re-derived subsets—as well as OrdiFuse on all 51 items—and evaluated them on each corresponding test partition. Finally, we refitted OrdiFuse on S* after de-duplicating both partitions to retain one record per profile. No independent external cohort was available. We therefore used internal–external validation [53]. The cohort was divided into students and non-students (occupation) and into urban and rural educational background (place of education). In each of the four directions, we re-ran the complete method on the development sub-cohort—performing feature ranking across three grouped folds to select the top-24 items—and trained OrdiFuse, the stacking comparator, and class-balanced HGB on both the top-24 subset and the full 51-item set, before evaluating each model once on the held-out sub-cohort. The divisions shift the case mix (moderate–severe or worse anxiety in 33.0% of students against 20.9% of non-students). This tests transport across sub-populations of the same study; it is not external validation.
The original analysis used Python 3.11 with scikit-learn 1.6.1, NumPy 2.4, pandas 3.0, LightGBM 4.7, XGBoost 3.2, and statsmodels 0.15 (additional analyses: Section 3.10); all random seeds were fixed, and the complete code is provided as a GitHub repository archived on Zenodo [54].
3.10. Additional Robustness, Reference-Standard, and Transport Analyses
The analyses in this subsection change no model, item subset, or threshold described above; each is fitted on a training part and scored once on the corresponding held-out part. They were run in a second computing environment (Python 3.13, NumPy 2.5, scikit-learn 1.6.1). OrdiFuse, class-balanced HGB, and tuned LightGBM reproduced the test-set predictions reported in Section 4.5 exactly. For three comparators containing random-forest or isotonic components (the two stacking comparators and the V0 configuration) and for OrdiFuse without fusion, the regenerated macro-F1 differed from those values by at most 0.0043 for one task. The new tables therefore use the regenerated predictions throughout, so that every comparison within a table is internally consistent.
For each model, we also report the proportion of test respondents whose insomnia and anxiety grades were both exactly right (joint exact match) and both within one grade, with 2000 profile-group bootstrap intervals and exact McNemar tests on joint correctness. The mean per-task exact accuracy reported in Section 4.5 is the mean of the two per-task accuracies and is reported separately from joint exact match.
To characterize how far each grade is a function of the item responses (incorporation bias), we computed (a) grade discordance among respondents who share an identical response vector on the grade’s own instrument (ISI1–ISI7 for insomnia; HAM1–HAM14 for anxiety), with and without other items, and (b) the held-out macro-F1 of class-balanced HGB fitted on restricted item blocks (own instrument only, own total only, all items except the own instrument, sociodemographic and comorbidity items only).
To assess the optimism of architecture selection, the selection was nested: for each of the three new profile-grouped 80/20 splits used for re-derivation (seeds 101–103), the six pre-specified variants V0–V5 were compared by grouped three-fold cross-validation on the outer training part only (on the 24 items of S*, which equal the subset re-derived in splits 1 and 3 and are contained in the 26-item subset of split 2; three internal stacking folds), the winner was refitted on the outer training part, and it was scored once on the outer test part. The outer score therefore includes the architecture choice [39,55].
In component ablations, each component of OrdiFuse was removed or swapped one at a time (cross-task fusion; item passthrough; both; nominal level-0 learners; ordinal level-0 learners; class weighting; decision offsets; HGB meta-learner replaced by logistic regression; isotonic calibration added), with S* held fixed (S* was derived on the main training partition, which overlaps the repeated-split test parts; this affects all variants equally and therefore not their paired differences), and every variant was scored on the locked test set and on the three outer test parts of the repeated splits (four independent held-out sets, 2096 + 3 × about 2060 respondents). Differences were pooled across the four held-out sets by a fixed-effect (inverse-variance) average of the profile-group bootstrap differences. Two “fusion stress tests” refitted OrdiFuse with and without fusion after removing one instrument from S* (ISI or HAM-A), the situation in which the other task’s probabilities could carry information that the remaining items do not.
As neural multitask baselines, three networks were trained on S* with the same development budget as the tuned comparators: a shared-trunk multilayer perceptron with two cumulative-link ordinal heads with threshold-specific weights (the neural analog of the Frank–Hall decomposition), the same trunk with two rank-consistent CORAL heads [22], and the same trunk with two softmax heads. Losses were class-weighted; the trunk was shared by both tasks. Hyperparameters (width, depth, dropout, learning rate, weight decay) were chosen by random search over a predefined grid with grouped three-fold cross-validation and early stopping; out-of-fold decision offsets were tuned on the five shared folds with the selected epoch count; and the networks were then refitted on the whole training partition (JAX 0.9/Optax, AdamW, batch 256). A single-task twin (the same network and settings trained separately per task) controls for the effect of sharing the trunk.
To compare item-selection strategies at an equal budget, eleven alternative strategies were used to select 24 items from the training partition only: univariate filters (mutual information, , ANOVA F, absolute Spearman correlation with the grade), a redundancy-aware filter (multitask minimum-redundancy maximum-relevance, mRMR [56]), embedded rankings (L1-penalized logistic regression; random-forest impurity), a single-learner model-aware ranking (permutation importance of class-balanced HGB on the same grouped folds), two wrappers (recursive feature elimination with a random forest [57]; greedy forward selection with class-balanced HGB under grouped three-fold cross-validation), and an instrument-based choice (all ISI and HAM-A items plus three non-instrument items of S*-symptom duration AD1, daytime impact AD3, and SleepTime; because these three were taken from S*, this subset is not independent of the model-aware ranking). For multitask filters, the task-normalized scores were averaged as for the model-aware ranking. Every subset was scored on the locked test set with OrdiFuse and with class-balanced HGB; 50 random 24-item subsets scored with class-balanced HGB give a reference distribution.
At the physician level, agreement between the two physicians in the double-graded program was summarized by exact agreement and by unweighted, linear, and quadratic-weighted with 2000 bootstrap intervals. Grade distributions were compared between physicians by tests, OrdiFuse’s test-set accuracy was reported by physician, and a physician effect on the grade beyond the items was tested by adding the physician code to HGB (default settings) on all 51 items and comparing grouped five-fold cross-validated log-loss (paired z test).
Using the program identifiers, we developed OrdiFuse, the stacking comparator, and class-balanced HGB on S* in the 15 programs of 2022–2023 and scored them in the 8 programs of 2024–2025, and the reverse. A model developed within the target by grouped five-fold cross-validation served as the in-domain reference, and the data-pooling test described below was applied to each direction. Leave-one-program-out validation used class-balanced HGB on S*. Because S* was derived on the main training partition, which contains respondents from every program, these analyses evaluate the transport of the fitted models, not of the item selection.
To identify the sources of the internal–external drop, for each transfer direction we compared class-balanced HGB on all 51 items (i) trained on the source sub-cohort and applied to the target, with (ii) the in-domain performance in the target (grouped five-fold cross-validation within the target), and asked how much of the gap is recovered by (iii) covariate-shift correction (importance weights from a domain classifier fitted on the items that do not define the sub-cohorts) and (iv) label-shift correction (EM re-estimation of target grade priors [58] and, as an upper bound, the true target priors). The domain classifier’s area under the curve quantifies how different the item distributions are. To test whether the item-to-grade mapping itself differs between sub-cohorts—the signature of different grading practice—we used a data-pooling test: in grouped five-fold cross-validation within the target, a model trained on the target folds only (A) was compared with a model trained on the same folds plus the whole source sub-cohort (B) and with B plus a source/target indicator (C). If the mapping differed, adding source data would conflict with the target labels (B < A) and the indicator would help (C > B).
Finally, training time, single-respondent and batch inference latency, and compressed serialized size were measured on two CPU cores for OrdiFuse, class-balanced HGB, the stacking comparator, and the multitask MLP. Two model-level compression probes were also evaluated: distillation of OrdiFuse into one class-balanced HGB per task trained on OrdiFuse’s out-of-fold grades, and post-training symmetric per-channel 8-bit quantization of the MLP weights [59].
4. Results
4.1. Reference-Standard Characteristics
Shallow decision trees on the ISI and HAM-A totals recovered the physician grades only partly (Table 3): the macro-F1 was 0.776 (insomnia) and 0.778 (anxiety) at depth 3, and 0.770 and 0.791 at depth 6, so the grades are not a re-statement of the instrument totals. A single depth-6 tree on the 24 selected items reached 0.846 for insomnia but only 0.694 for anxiety, whereas OrdiFuse reached 0.990 and 0.882. Among respondents sharing an identical 51-item vector (493 records), no two had different insomnia grades, whereas 155 had different anxiety grades; the corresponding upper bounds on exact accuracy are 100% (insomnia) and 99.3% (anxiety). The insomnia grade therefore behaves as a near-deterministic function of the item responses in this sample, which is compatible with physicians having graded from the questionnaire; the anxiety grade contains information or disagreement that the items do not capture. These results bound, but cannot exclude, incorporation bias, and all agreement statistics below are interpreted as agreement with a reference standard whose independence from the items is not established.
Table 3.
How far the physician grades can be recovered from the instrument totals and from the items (locked test set, macro-F1).
To characterize what the physicians’ grades depend on, we performed restricted-block analyses (Figure 3). The insomnia grade is not a re-statement of the ISI: 10.7% of respondents who shared an identical ISI1–ISI7 response vector had different insomnia grades, class-balanced HGB on the seven ISI items alone reached a held-out macro-F1 of only 0.843 (ISI total alone 0.760), and a single decision tree needed 1552 leaves to reach 0.857 from the ISI items. It is, however, a near-deterministic function of the whole response pattern: adding the HAM-A insomnia item (HAM4) to the ISI items raised macro-F1 to 0.907, all items except the ISI gave 0.963, and all 51 items 0.989, with no discordant grades among identical 51-item vectors. The anxiety grade behaves differently: the HAM-A items alone gave 0.796, all items except the HAM-A 0.768, and all 51 items 0.852, and identical 51-item vectors were discordant for 155 respondents. For insomnia, therefore, the physicians appear to have applied a consistent multi-item judgment to the questionnaire responses rather than a scoring rule, and OrdiFuse’s near-perfect insomnia agreement measures how faithfully it reconstructs that judgment, not independent clinical validity. The anxiety grade carries information, or rater variation, that the items do not capture.
Figure 3.
Incorporation probes: held-out macro-F1 of class-balanced HGB trained on restricted item blocks to predict (a) the insomnia grade and (b) the anxiety grade (locked test set). The dotted line marks OrdiFuse on the 24 selected items.
4.2. Selection of the OrdiFuse Design
Removing the isotonic layer of the previous configuration raised cross-validated multitask macro-F1 from 0.9202 to 0.9233; adding nominal level-0 learners (V2) or passing the item responses to the meta-learner (V3) raised it to 0.9258 and 0.9261; combining both (V4) gave 0.9287 ± 0.0040, the highest of the six variants, and was adopted (Table 4). Replacing the boosted meta-learner by logistic regression (V5) lowered performance, mainly for anxiety. The differences between V2, V3, and V4 are within one fold-to-fold standard deviation, and these scores are subject to selection optimism (Section 3.4).
Table 4.
OrdiFuse design variants defined before analysis: five-fold grouped cross-validated macro-F1 on the training partition (mean ± SD, all 51 items). The adopted design is in bold.
4.3. Item Ranking and the Selected Subset
Multitask permutation importance placed HAM4 (the insomnia item of the anxiety scale), ISI2, the usual bedtime (SleepTime), and symptom duration (AD1) at the top (Figure 4). The remaining HAM-A items each contributed modestly, mainly to anxiety. In the ladder (Table 5; Figure 5), performance rose steeply up to 22 items (0.9119, still 0.0167 below the full set) and then flattened; the smallest size meeting the parsimony rule was 24 of the 51 items (cross-validated 0.9256 against 0.9287; loss 0.0031, 95% confidence interval (CI) −0.0009 to 0.0075). Adding further items changed performance by less than the fold-to-fold variation.
Figure 4.
Multitask permutation importance of OrdiFuse (top 30 of 51 items; mean over five training folds). Solid bars form the selected subset S* (left of the dotted line).
Table 5.
Subset ladder: five-fold cross-validated macro-F1 of OrdiFuse with the top-k items (leave-one-fold-out rankings) and the loss relative to all 51 items. The rule requires a mean loss ≤ 0.005 and an upper 95% bound < 0.010.
Figure 5.
(a) Cross-validated macro-F1 of OrdiFuse against the number of items; (b) loss relative to the 51-item model with its 95% bootstrap interval and the two limits of the parsimony rule. The dotted vertical line marks S* = 24.
S* (Table 6) retains all fourteen HAM-A items, ISI1–ISI4, four clinician-authored items (symptom duration, perceived cause, daytime impact, current stressors), the usual bedtime, and self-reported hypertension. As a measurement scale, the retained ISI items are weak: Cronbach’s was 0.20 ( 0.33) for ISI1–ISI4 against 0.52 ( 0.54) for all seven ISI items in this cohort, and their sum correlated 0.85 with the full ISI total; the HAM-A was retained intact ( 0.73, 0.74). The subset is therefore useful for this model’s predictions but is not a coherent short scale and should not be scored on its own.
Table 6.
Composition of the selected 24-item predictive subset S* by domain.
4.4. Model-Aware Selection Against Simpler Selection Strategies at the Same Budget
At the same budget of 24 items (Table 7; Figure 6), all strategies agreed on most items (16–23 of the 24 items of S*) because the HAM-A and ISI items dominate any ranking; they differed mainly in whether they kept the clinician-authored items AD2, AD3, and AD7 and ISI2, or the ISI items ISI5–ISI7. Scored with OrdiFuse, S* (0.9359) was better than the subsets from all univariate filters except ANOVA F and Spearman correlation (mutual information +0.016, +0.021, mRMR +0.015; ANOVA F and Spearman +0.008, intervals including zero), both embedded rankings (L1-logistic +0.038, random-forest impurity +0.016), and recursive feature elimination (+0.018). It was statistically indistinguishable from the subsets chosen by the other model-aware strategies: the permutation importance of class-balanced HGB (0.9371; 23 of 24 items shared), greedy forward selection with HGB (0.9326), and the instrument-based subset (0.9401), whose three non-instrument items were themselves taken from S*. The same ordering held when every subset was scored with class-balanced HGB, where S* was better than every filter, embedded, RFE, and instrument-based subset and within 0.003 of the two other model-aware subsets. Fifty random 24-item subsets scored with class-balanced HGB reached 0.828 on average (range 0.735–0.886), far below every deliberate strategy. The advantage of the protocol therefore lies in ranking items by their contribution to a fitted multivariable model, evaluated on held-out folds, rather than by univariate association; which strong learner provides the ranking matters little.
Table 7.
Equal-budget (24-item) comparison of item-selection strategies. Every ranking used the training partition only; each subset was scored on the locked test set with OrdiFuse and with class-balanced HGB. = S* − alternative in multitask macro-F1 [95% profile-group bootstrap CI].
Figure 6.
Equal-budget (24-item) comparison of item-selection strategies: held-out multitask macro-F1 of each subset scored with OrdiFuse (circles) and class-balanced HGB (diamonds). Every ranking was computed on the training partition only. For reference, 50 random 24-item subsets scored with class-balanced HGB reached 0.735–0.886.
4.5. Held-Out Performance Against Equal-Budget Comparators
On the locked test set (N = 2096), OrdiFuse on the 24 items reached a multitask macro-F1 of 0.9359 (insomnia 0.9899; anxiety 0.8820), a QWK of 0.9465, and a mean per-task exact accuracy of 95.32% (insomnia 99.28%, anxiety 91.36%); both grades were exactly right for 90.74% of respondents (Section 4.6) (Table 8). The strongest alternatives on the same items were the class-balanced, offset-tuned stacking comparator (0.9243), the grid-selected stacking comparator (0.9283), tuned HGB (0.9209), LightGBM (0.9193), and XGBoost (0.9172); tuned random forest, ET, and SVM reached 0.88–0.91, tuned logistic and proportional-odds regression 0.79 and 0.68, and the published cut-off rule 0.6762 (mean per-task exact accuracy 72.73%). Equal tuning raised several learners above their default versions (Table A3) but did not change the ordering at the top.
Table 8.
Locked test-set performance (N = 2096) on the 24-item subset S*; tuned learners received hyperparameter search, class weighting, and out-of-fold offsets. Two 51-item models quantify the cost of the reduction. The last column is the mean of the two per-task exact accuracies, not the proportion of respondents with both grades correct (see Section 4.6).
Table 9 and Figure 7 give the pre-declared comparisons with profile-group bootstrap intervals. OrdiFuse was better than the class-balanced, offset-tuned stacking comparator (+0.0117, 95% CI 0.0050 to 0.0182; Holm p = 0.004), the best-tuned single learner selected on training CV (LightGBM; +0.0166, 0.0084 to 0.0251; Holm p < 0.001), and default class-balanced HGB (+0.0164; Holm p < 0.001). Against the grid-selected stacking comparator the difference was +0.0076 (−0.0001 to 0.0152; Holm p = 0.171): significant for insomnia alone (McNemar p = 0.019) but not for anxiety (p = 0.25). The differences from OrdiFuse without fusion (+0.0026) and from OrdiFuse on all 51 items (−0.0072) were not significant. In practical terms, OrdiFuse graded about 5 more respondents per 1000 correctly than the grid-selected stack for each task, and 20 more per 1000 for anxiety than LightGBM.
Table 9.
Pre-declared comparisons of OrdiFuse (24 items) on the locked test set. = OrdiFuse–comparator in macro-F1; CIs from 2000 profile-group bootstrap resamples; Holm adjustment over the seven bootstrap p values; per-task exact McNemar tests; per 1000 = additional respondents graded exactly right per 1000.
Figure 7.
Pre-declared paired comparisons on the locked test set (profile-group bootstrap 95% CI; Holm-adjusted p on the right). Red: significant after Holm correction; gray: not significant.
4.6. Joint Agreement for Both Conditions
The mean per-task exact accuracy (95.32%) is the mean of the two per-task accuracies and not the proportion of respondents graded correctly on both conditions; the joint figures are therefore reported in Table 10. OrdiFuse graded both conditions exactly right for 90.74% of respondents (95% CI 89.25–92.11) and both within one grade for 96.47%; only 2 of 2096 respondents had both grades wrong. Joint exact match was almost exactly the product of the two per-task accuracies (90.71%), so errors in the two tasks were nearly independent. On joint exact matches, OrdiFuse was ahead of every comparator; the differences from tuned LightGBM, class-balanced HGB, the neural networks, and the cut-off rule were significant after Holm adjustment, whereas those from the two stacking comparators (+1.10 and +1.15 percentage points; unadjusted p = 0.031 and 0.012) and from OrdiFuse without fusion (+0.24) were not.
Table 10.
Joint (both-task) agreement on the locked test set (regenerated predictions, see Section 3.10). Joint exact = both grades exactly right [95% profile-group bootstrap CI]; within one = both grades within one level; = OrdiFuse–comparator in joint exact match (percentage points) with exact McNemar p on joint correctness (unadjusted).
4.7. Repeated Re-Derivation of the Whole Procedure
Re-running the complete reduction procedure on three new profile-grouped splits (Table 11) selected subsets of 24, 26, and 24 items, each containing all 24 items of S*. On the new test parts, OrdiFuse on the re-derived subset reached a multitask macro-F1 of 0.9339 ± 0.0028 (range 0.9314–0.9369), against 0.9235 ± 0.0028 for the stacking comparator and 0.9104 ± 0.0017 for class-balanced HGB on the same items, and 0.9381 ± 0.0026 for OrdiFuse on all 51 items. OrdiFuse was ahead of the stacking comparator in 3 of 3 splits and ahead of class-balanced HGB in 3 of 3, and the loss relative to all 51 items ranged from 0.0025 to 0.0062. These estimates include every item-selection step (the design was held fixed), and therefore avoid most of the selection optimism of the training-fold scores; with three splits, they describe consistency rather than a full sampling distribution.
Table 11.
Repeated re-derivation on three new profile-grouped splits: subset size chosen by the rule, overlap with S*, and multitask macro-F1 on each new test part.
When the six variants were re-compared inside each outer training part (Table 12), V4—the published OrdiFuse design—had the highest inner cross-validated score in all three splits, ahead of V2 by 0.0003–0.0009 and of V3 by 0.0017–0.0026, with V0, V1, and V5 lowest in every split. Refitted on the outer training part, the selected design scored 0.9308, 0.9312, and 0.9321 on the outer test parts (mean 0.9314), above the stacking comparator in the same splits (0.9209, 0.9265, 0.9230; Table 11). The outer scores were higher than the inner ones because the inner models were trained on two thirds of the outer training data; there was therefore no sign that selecting among the six variants inflated the estimate, and the architecture choice itself was stable.
Table 12.
Nested architecture selection: mean inner grouped three-fold cross-validated multitask macro-F1 of each variant on the outer training part (24 items of S*; three internal stacking folds), the selected variant, and its score on the outer test part.
4.8. Cost of the Reduction and Per-Class Behavior
Reducing OrdiFuse from 51 to 24 items lowered the held-out multitask macro-F1 from 0.9431 to 0.9359 (−0.0072; 95% CI −0.0156 to +0.0009), with almost no change for insomnia (−0.0012) and a loss of 0.0131 for anxiety (McNemar p = 0.016), about 13 fewer anxiety grades correct per 1000. The 24-item OrdiFuse matched the 51-item stacking comparator (0.9359 against 0.9357). By class (Table 13; Figure 8), the anxiety cost fell on the no-anxiety, mild–moderate, and moderate–severe grades; the severe–very severe grade was not harmed (0.8122 → 0.8195), and OrdiFuse’s recall for that grade (85.1%) exceeded the grid-selected stack’s (78.0%), about 71 more severe cases per 1000 correctly graded, whereas the stack had the higher recall for moderate–severe anxiety (87.0% against 83.2%). Residual anxiety errors were concentrated between adjacent grades (Figure 9). Removing duplicate profiles from both partitions gave a multitask macro-F1 of 0.9372 on the de-duplicated test set (n = 2000), so duplicates did not inflate the result.
Table 13.
Held-out per-class F1 for OrdiFuse on 24 and 51 items and the strongest comparators on S*.
Figure 8.
Held-out anxiety per-class F1 of OrdiFuse on 24 and 51 items and the strongest comparators on S*.
Figure 9.
Row-normalized confusion matrices of OrdiFuse on the 24-item subset (locked test set). Color intensity shows the row-normalized proportion (darker = higher).
4.9. Cross-Task and Cross-Instrument Contributions
To identify which components contribute (Table 14; Figure 10), each was removed or swapped one at a time with S* fixed and scored on four held-out sets (the locked test set and the three repeated-split test parts). Two components carried measurable value. Replacing the ordinal (Frank–Hall) level-0 learners by nominal ones cost 0.013 (95% CI 0.006 to 0.020), the largest single effect, and replacing the boosted meta-learner by logistic regression cost 0.008 (0.001 to 0.015). Cross-task fusion and the item passthrough were each dispensable on their own (pooled change +0.0004, −0.0022 to +0.0031; and −0.0006, −0.0032 to +0.0019) but not together: removing both cost 0.0039 (0.0011 to 0.0068), consistently in all four held-out sets (+0.0017 to +0.0057). The two routes therefore carry largely the same information—the meta- learner benefits from seeing information beyond its own task’s level-0 probabilities, and either the other task’s probabilities or the raw items provide it. Fusion added nothing when one instrument was removed from S* either (without the ISI items 0.9111 with and 0.9115 without fusion; without the HAM-A items 0.8488 and 0.8500), so the other task’s probabilities did not substitute for a missing instrument. The nominal level-0 learners, class weighting, the decision offsets, and an isotonic layer had no measurable pooled effect; on the locked test set, arg-max decisions without offsets scored higher than with them (0.9410 against 0.9359), but the pooled difference was not significant. Repeated fits of the same configuration differed by up to 0.003 in anxiety macro-F1 because multithreaded floating-point summation is not bit-reproducible, which sets a practical floor below which differences between variants cannot be interpreted. The retraining ablations of Table 15 answer a different question: whether each instrument carries information about the other condition. Refitting without the HAM-A items reduced the insomnia macro-F1 by 0.033 (0.022 to 0.044), and refitting without the ISI items reduced anxiety macro-F1 by 0.019 (0.006 to 0.034), in addition to the expected losses on each instrument’s own condition. Removing the clinician-authored items reduced insomnia but not anxiety, and removing bedtime and hypertension reduced insomnia (0.015) but did not reduce anxiety (+0.007, n.s.), so hypertension’s permutation importance for anxiety (Section 4.11) is not supported by retraining.
Table 14.
One-at-a-time component ablations, S* fixed. Multitask macro-F1 on the locked test set (Main) and the three repeated-split test parts; pooled loss = published design − variant, inverse-variance pooled over the available held-out sets (profile-group bootstrap standard errors), with 95% CI and two-sided p. Lower block: fusion stress tests with one instrument removed (locked test set; loss relative to the published design).
Figure 10.
Component ablations: loss in multitask macro-F1 when each component is removed or swapped (positive = the component helps), pooled over the held-out sets, with 95% CIs. Orange: interval excludes zero. Gray vertical line: zero (no change).
Table 15.
Retraining ablations on the locked test set: drop in macro-F1 when OrdiFuse is refitted without a block of S* items (positive = the block helps; 95% profile-group bootstrap CI).
4.10. Reliability
OrdiFuse agreed with the physician grade, with a quadratic-weighted 0.989 (95% CI 0.982–0.996) for insomnia and 0.904 (0.883–0.925) for anxiety; 96.76% of anxiety predictions were within one grade (Table 16; Figure 11c). In view of Section 4.1, the insomnia value mainly shows that the model reproduces the item-to-grade mapping used in this cohort. Before recalibration, OrdiFuse’s cumulative calibration slopes were below 1 (insomnia 0.74–0.79; anxiety 0.65–0.77), indicating probabilities that were too extreme, with calibration-in-the-large between −0.61 and +0.24 log-odds; the stacking comparator’s slopes were above 1 (1.21–1.71, probabilities too moderate). Temperature scaling fitted on the training OOF probabilities ( = 1.54 for both tasks) brought the slopes to 1.02–1.24, reduced anxiety ECE from 0.044 to 0.031 and the anxiety Brier score from 0.127 to 0.122, and left macro-F1 unchanged (anxiety 0.882 → 0.881; insomnia 0.990 → 0.991). For moderate-or-worse insomnia and moderate–severe-or-worse anxiety, the recalibrated OrdiFuse had a positive net benefit above both default strategies at every threshold from 0.05 to 0.80; it was within 0.001 of the stacking comparator for insomnia and slightly above it for anxiety at thresholds above 0.5 (Figure 12). Refitting with two further seeds gave 0.9353 and 0.9334 (Figure 11d); Kendall’s W across fold-wise rankings was 0.93 (Figure 11e); and across all eight derivations of the subset (main analysis, three repeated splits and four sub-cohort transfers), 21 of the 24 items were selected every time, the other three (HAM3, ISI3 and HAM1) in six or seven, and no item outside S* more than three times.
Table 16.
Agreement with the physician grade and probability quality on the locked test set (95% bootstrap CIs; ECE and Brier before recalibration).
Figure 11.
Reliability. (a,b) Reliability diagrams before recalibration (dotted line: perfect calibration; marker area proportional to respondents per bin); (c) quadratic-weighted with the physician grade (95% CI); (d) held-out macro-F1 of OrdiFuse refitted with three seeds; and (e) rank of each item in the five fold-wise rankings (red labels: items in S*).
Figure 12.
Decision curves on the locked test set for moderate-or-worse insomnia and moderate–severe-or-worse anxiety (recalibrated OrdiFuse probabilities; stacking comparator for reference).
4.11. Subgroups and Explanation
The multitask macro-F1 was similar across gender (male 0.933, 95% CI 0.919–0.946; female 0.938, 0.925–0.948), age bands of 18 years and over (0.926–0.940), occupation (0.930–0.940), and place of education (0.934–0.938), with overlapping intervals (Table 17); the other-gender group (n = 17) and respondents under 18 (n = 90) were too small for inference. Per-task permutation importance (Figure 13a) placed HAM4 first for insomnia (drop 0.208) and ISI2 (0.091) and HAM4 (0.095) first for anxiety; whole-domain permutation (Figure 13b) showed that anxiety depended most on the HAM-A block (0.466) and insomnia on the ISI (0.295), HAM-A (0.284), and clinician-authored (0.246) blocks. Accumulated local effects (Figure 13c,d) showed the expected anxiety grade rising with symptom duration (AD1; −0.13 to +0.12) and sharply at the highest HAM4 level (+0.53), and the latest bedtime raising both grades; several effects were non-monotone, and the observed mean grades by response level were non-monotone too (for example, mean insomnia grade 1.80 at HAM4 = 0 against 1.07 at HAM4 = 1). These are predictive associations in this cohort and carry no causal or diagnostic meaning.
Table 17.
Multitask macro-F1 of OrdiFuse (24 items) by subgroup on the locked test set (95% bootstrap CI).
Figure 13.
Explanation of OrdiFuse (24 items) on the locked test set. (a) Per-task permutation importance; (b) importance of each domain permuted jointly; (c,d) accumulated local effects of six ordinal items on the expected grade; and (e) each item’s share of insomnia against anxiety importance.
4.12. Generalizability Across Sub-Cohorts
When every step was rebuilt on one sub-cohort and applied to the other (Table 18; Figure 14), the re-derived 24-item subsets overlapped S* in 22–24 items, but performance fell for every model: the multitask macro-F1 was 0.84–0.90 against 0.92–0.94 on the random split, with the largest loss for insomnia (0.89–0.95 against 0.98–0.99). On all 51 items, OrdiFuse was better than class-balanced HGB in all four directions ( +0.002 to +0.012; interval excluding zero in three) but better than the stacking comparator in one direction (rural → urban, +0.011, 95% CI +0.006 to +0.016), worse in one (non-students → students, −0.009, −0.015 to −0.003), and equivalent in two. On 24 items, the three strongest models were within 0.007 of one another; cross-task fusion had no measurable effect (−0.002 to +0.001); and the reduction from 51 to 24 items cost 0.003–0.020, significant in three of four directions.
Table 18.
Internal–external validation: multitask macro-F1 [95% bootstrap CI] in the unseen sub-cohort. The item ranking, 24-item subset, and all models were derived on the development sub-cohort only. Best value per direction in bold.
Figure 14.
Internal–external validation. (a) Multitask macro-F1 in the unseen sub-cohort for OrdiFuse, the stacking comparator, and class-balanced HGB on the re-selected 24 items (filled circles) and on all 51 items (open diamonds); (b) paired differences with 95% bootstrap intervals.
In the urban → rural direction, the stacking comparator (51) reached 0.8957 against 0.8955 for OrdiFuse (51). Paired differences with 95% CIs are shown in Figure 14b.
4.13. Sources of the Internal–External Performance Drop
Population and case mix changed between the sub-cohorts. A domain classifier distinguished them from items that do not define them with an area under the curve of 0.84 (students against non-students) and 0.77–0.78 (urban against rural educational background), and 0.62–0.66 from the clinical items alone. Grade prevalence also differed; for example, moderate–severe or worse anxiety in 33.0% of students against 20.9% of non-students. With class-balanced HGB on all 51 items as a probe (Table 19; Figure 15), a model developed within each target sub-cohort reached a 0.973–0.976 macro-F1 for insomnia and 0.831–0.849 for anxiety, whereas the model transported from the other sub-cohort reached 0.925–0.944 and 0.778–0.824. All eight transport gaps had 95% intervals excluding zero. Neither correction for covariate shift (importance weights; effective sample sizes 1218–3770) nor correction of the grade priors recovered the gap (changes between −0.021 and +0.008). The data-pooling test distinguishes the two explanations raised by the reviewers. If physicians had graded the sub-cohorts by different rules, adding the other sub-cohort’s records to a target model’s training data would have introduced conflicting labels. Instead, it improved target performance in all eight direction–task pairs (by +0.0006 to +0.0185; interval excluding zero in five), and a source/target indicator added nothing in any pair. The item-to-grade mapping therefore appears compatible across the sub-cohorts, and the transport loss seems to arise mainly because the development sub-cohort does not cover the region of item space occupied by the other sub-cohort; that is, from a change in population and case mix rather than in grading practice. Because all five physicians graded in every program, the sub-cohorts were graded by the same physicians, which is consistent with this interpretation; rater effects cannot, however, be excluded completely (Section 4.15).
Table 19.
Decomposition of the internal–external performance drop (class-balanced HGB, all 51 items; macro-F1 in the target sub-cohort). In-domain = grouped five-fold cross-validation within the target; gap = in-domain − transported (95% bootstrap CI). Pooling test: change in target macro-F1 when the whole source sub-cohort is added to the target training folds (B − A) and when a source/target indicator is added as well (C − B).
Figure 15.
Sources of the internal–external drop (class-balanced HGB, 51 items): macro-F1 in the target sub-cohort for a model developed in the target (grouped cross-validation), the transported model, the transported model after covariate-shift reweighting and after EM prior correction, and a model trained on the target folds plus the whole source sub-cohort. (a) Insomnia; (b) anxiety.
4.14. Program-Level (Temporal) Validation
The program identifiers allowed a stricter test of transport over time (Table 20; Figure 16). Developed on the 15 programs of 2022–2023 (n = 5398) and applied to the 8 programs of 2024–2025 (n = 4924), OrdiFuse reached a multitask macro-F1 of 0.633, against 0.596 for the stacking comparator, 0.599 for class-balanced HGB, and 0.575 for the cut-off rule, whereas a model developed within the later programs reached 0.860. In the reverse direction, OrdiFuse reached 0.776 (stacking comparator 0.696; class-balanced HGB 0.741; cut-off rule 0.628; in-domain reference 0.894). OrdiFuse therefore had the highest multitask macro-F1 in both directions, although the cut-off rule graded insomnia better in the forward direction, and every model remained well below in-domain performance. The case mix changed markedly over time: in the 2022–2023 programs, only 3.3% of respondents had no insomnia and 3.1% subthreshold insomnia, against 14.3% and 63.0% in 2024–2025, so a model developed on the earlier programs had seen very few examples of the grades that dominated later. Correcting the transported predictions for the target grade prevalence recovered at most 0.076 macro-F1. The data-pooling test again indicated a shared item-to-grade mapping: adding the source programs to a target model’s training folds improved target macro-F1 for both tasks in both directions (+0.005 to +0.047; interval excluding zero in three of four), and a source indicator gave no consistent further change (−0.012 to +0.007). In leave-one-program-out validation with class-balanced HGB, both grades were exactly right for 71.4% of respondents overall (insomnia 85.7%, anxiety 82.3%), ranging from 28.4% to 99.6% across programs; the lowest values occurred in later programs with predominantly mild presentations (E17, E19, E20, E21, and E23). These results indicate that transport across periods is limited mainly by differences in case mix, and that the fitted model would need local updating before use in a new setting.
Table 20.
Program level temporal validation (24 items of S*): multitask macro-F1 in the target programs. In-domain = class-balanced HGB developed within the target by grouped five-fold cross-validation. Pooling = change in target macro-F1 (insomnia/anxiety) when the source programs are added to the target training folds.
Figure 16.
Program level validation. (a) Multitask macro-F1 in the target period for models developed on the other period, with an in-domain reference; (b) leave-one-program-out validation (class-balanced HGB, 24 items): proportion of respondents with both grades exactly right, by program in date order.
4.15. Physician-Level Agreement and Performance
In the double-graded program, the two physicians agreed on the insomnia grade for 333 of 341 respondents (97.7%; quadratic-weighted 0.86, 95% CI 0.72–0.95) and on the anxiety grade for 326 (95.6%; 0.80, 0.67–0.90); both grades agreed for 321 respondents (94.1%), and all but four insomnia and two anxiety disagreements were by one grade. This program was dominated by moderate insomnia and mild anxiety (94% and 89% of first grades), which limits how far these figures can be generalized across the full range of severity and to other pairs of physicians. Across the cohort, grade distributions differed between physicians (Table 21; p< 0.001 for both tasks; for example, severe insomnia in 12.6–35.7% of each physician’s respondents), partly reflecting differences in case mix (mean ISI total 15.5–17.6). Adding the physician code to the items improved the grouped cross-validated log-loss (insomnia 0.040 to 0.032; anxiety 0.340 to 0.323; both p < 0.001) and macro-F1 slightly (insomnia 0.981 to 0.987; anxiety 0.846 to 0.852), indicating a modest physician effect on the grade beyond the items. OrdiFuse’s test-set accuracy did not differ significantly between physicians (insomnia 98.8–99.8%, p = 0.31; anxiety 90.3–92.7%, p = 0.72).
Table 21.
Physician-level results. Grade distribution over the whole cohort and OrdiFuse (24 items) accuracy on the locked test set, by coded grading physician.
4.16. Computational Cost
Training and inference costs are summarized in Table 22 (two CPU cores; locked test set).
Table 22.
Model-level computational cost and compression probes (24 items, two CPU cores). Size = compressed serialized model (joblib, level 3), except for the neural models, where parameter memory is given. Latency for one respondent includes the Python call overhead; batch latency = time per respondent when the 2096 test respondents are graded together.
5. Discussion
The findings can be summarized at four levels of evidence. In terms of statistical performance, on a locked, profile-grouped test set OrdiFuse, on 24 of 51 items, had the highest point estimate among the tuned comparators and graded both conditions exactly for 90.7% of respondents. It performed significantly better than the best equally tuned single learner, default class-balanced HGB, an equally tuned stacking ensemble, and three neural multitask networks, but not significantly better than the grid-selected stacking ensemble. Regarding robustness, item selection was stable across folds, repeated splits, and sub-cohorts. Re-selecting the architecture inside each of three outer splits chose the published design each time, and, in three end-to-end re-derivations, OrdiFuse was ahead of the grid-selected stack each time; these results support, but do not formally establish, the direction of the non-significant test-set difference. Under transfer between sub-cohorts and between data-collection periods, all models lost accuracy, by 0.04–0.09 macro-F1 between sub-cohorts and by more between periods. Finally, regarding the reference standard, the insomnia grade could be reconstructed almost perfectly from the response pattern, which limits what the agreement statistics can show.
The ablations suggest that OrdiFuse’s advantage comes mainly from two components: the ordinal (Frank–Hall) level-0 learners, which made the largest single contribution, and a boosted meta-learner that receives information beyond its own task’s level-0 probabilities. Cross-task fusion did not contribute measurably. Its removal had no detectable effect in any analysis, including when one instrument was removed, and fusion and the item passthrough appear to be largely redundant routes to the same cross-instrument information: either suffices, whereas removing both cost about 0.004. The cross-instrument information itself is real (removing the HAM-A items reduced insomnia accuracy and removing the ISI items reduced anxiety accuracy), but a meta-learner that receives the items directly does not appear to need the other task’s probabilities. The neural networks point in the same direction: sharing a trunk between the two tasks gave no gain over training them separately (0.881 against 0.880). The networks were 0.05–0.06 below OrdiFuse, consistent with benchmarks in which tree ensembles remain competitive with deep networks on medium-sized tabular data [60,61]. We therefore regard OrdiFuse as an ordinal stacking grader for two related outcomes rather than as evidence for multitask information exchange. Several components were not individually measurable at this sample size (nominal level-0 learners, class weighting, and decision offsets); the published design was retained because it was fixed before the test set was read and was re-selected under nested cross-validation.
For item reduction, the comparison with eleven alternative strategies at the same budget suggests that the benefit of the protocol lies in ranking items by their contribution to a fitted multivariable model, evaluated on held-out folds. Univariate filters, embedded rankings, and recursive elimination were 0.008–0.038 lower; they mostly retained the largely redundant ISI5–ISI7 in place of clinician-authored items (AD2, AD3, AD7) or individual HAM-A items. Which strong learner provided the ranking mattered little, since the HGB-permutation ranking and a forward-selection wrapper performed similarly to S*. The HAM-A was retained in full because anxiety depends on its items collectively, the situation in which univariate selection is known to be weak [36,37]. The retained ISI items, by contrast, have very low internal consistency, so the subset is not a coherent scale and cannot be scored without the model; developing a clinical short form would require content review, psychometric evaluation, and standalone administration [9,42].
The high accuracy requires careful interpretation. The insomnia grade was perfectly consistent among identical 51-item vectors and almost perfectly predictable from the items, yet it was only moderately predictable from the ISI items or total alone and well predicted from items other than the ISI. This pattern is what would be expected if the physicians formed a consistent, multi-item judgement from the questionnaire rather than applying the ISI scoring rule. OrdiFuse’s insomnia agreement therefore mainly measures how faithfully it reconstructs that judgement, and it should not be interpreted as diagnostic accuracy. The anxiety grade contains information, or rater variation, beyond the items, and its lower agreement is the more informative of the two results. The double-graded program showed high agreement between two physicians, but in a narrow range of severity, and a modest physician effect beyond the items was detectable across the cohort; both observations underline that the reference standard, rather than the model, is the main source of uncertainty.
The transport analyses suggest that the item-to-grade mapping is broadly shared across sub-cohorts and periods: pooling never reduced target performance, and an indicator of the source group did not improve it consistently. The losses under transfer appear to arise mainly because a model developed in one part of the cohort has seen few respondents like those in another, most clearly between the earlier programs, which included very few mild presentations, and the later ones. Two practical implications follow. The fitted model should not be transported to a new population or period without local recalibration or re-derivation, and lower performance than on the random split should be expected. The transferable product of this work is therefore the protocol for deriving a grader and its item subset together without leakage, rather than the fitted model.
Item reduction and model compression address different costs. For a questionnaire grader, the main cost is respondent time, which item reduction lowers by about half. At the model level, OrdiFuse is more expensive than its competitors (Table 22): its 25 fitted level-0 estimators, dominated by the unrestricted extremely randomized trees, occupy 166 MB compressed, against 27 MB for the stacking comparator and 1.2 MB for class-balanced HGB, and a single respondent is graded in about 0.5 s (0.5 ms per respondent in batch). These costs are acceptable for clinical or online screening but may matter for embedded deployment. Model-level compression offers a complementary route to efficiency [59]: 8-bit post-training quantization of the multitask MLP reduced its parameter memory 3.6-fold without loss in the macro-F1, whereas distilling OrdiFuse into one class-balanced HGB per task reduced its size 134-fold but lowered the multitask macro-F1 by 0.034. Compression of tree ensembles without loss of accuracy is therefore a topic for future work.
Methodologically, the protocol prevented each step from seeing the data on which it was judged, and the same protocol helped to expose both the null effect of fusion and the limits of transport [38,39,53]; reporting only the random split would have given a more favorable but less complete picture.
6. Limitations
The conclusions are subject to the following limitations. (1) Reference standard. Each respondent was graded by one of five physicians who saw the item responses, without a structured grading protocol; inter-physician agreement could be estimated in one program only, within a narrow range of severity; a modest physician effect beyond the items was detectable; and the insomnia grade is a near-deterministic function of the responses. Agreement statistics should therefore not be read as clinical validity. (2) Sample. One cross-sectional convenience cohort recruited from hospital and university programs, with limited demographic detail and duplicated response profiles of uncertain origin. (3) External validity. Sub-cohort and period transfers are internal–external analyses within one study, not independent external validation, and performance decreased under all of them; validation in an independent cohort from other sites and periods is needed. (4) Model claims. OrdiFuse was not significantly better than the grid-selected stacking ensemble, and cross-task fusion had no measurable effect. (5) Selection. The design and the parsimony limits were fixed before the test set was read but were not registered; nested re-selection was performed on the 24 selected items rather than within a full re-derivation of the subset, and the item subset was not re-derived for the program-level analyses. (6) Item subset. The item subset is a predictive feature set with poor internal consistency for the retained ISI items, with no standalone scoring; responses were collected within the full questionnaire; and permutation importance is sensitive to correlated items. (7) Comparators. Tuning grids were finite, including those of the neural baselines, and run-to-run numerical variation of up to 0.003 limits the interpretation of the smallest differences. (8) Calibration. Raw OrdiFuse probabilities were over-extreme and require the recalibration step. (9) Use. No prospective evaluation, impact analysis, or assessment of the consequences of misclassification was performed.
7. Conclusions
Under a leakage-controlled protocol, an ordinal stacking grader for insomnia and anxiety (OrdiFuse) and a 24-item subset of the 51 questionnaire items were derived together. On a locked test set, they reproduced the physician grades with a multitask macro-F1 of 0.936 and graded both conditions exactly for 90.7% of respondents. The contributions supported by the results are the leakage-controlled, model-aware item-reduction protocol, which performed better than most univariate and embedded selection strategies at the same budget, and an ordinal stacking grader that was re-selected under nested validation and performed better than tuned single learners and neural multitask networks. It was not significantly better than the best stacking ensemble, and cross-task fusion added no measurable benefit. The 24 items are a predictive feature set for this model, not a short scale: the retained ISI items have very low internal consistency, the HAM-A is retained in full, and the subset cannot be scored or administered on its own. Because the insomnia grade is a near-deterministic function of the responses, the high insomnia agreement mainly reflects reconstruction of the physicians’ questionnaire-based judgement rather than clinical validity, and performance decreased when the model was transported across sub-cohorts and periods with different case mixes. Before any practical use, independent double grading of the reference standard, psychometric evaluation of any short form, and validation in independent cohorts and over time would be required.
Author Contributions
Conceptualization, A.B. and Z.I.A.K.; methodology, A.B.; software, A.B.; validation, A.B., M.S.S., and A.H.M.S.S.; formal analysis, A.B. and A.F.M.A.N.; investigation, A.B.; resources, Z.I.A.K., A.F.M.A.N. and M.S.S.; data curation, A.B. and A.H.M.S.S.; writing—original draft preparation, A.B.; writing—review and editing, Z.I.A.K., M.S.S., and A.H.M.S.S.; visualization, A.B.; supervision, Z.I.A.K., M.S.S., and A.H.M.S.S.; project administration, Z.I.A.K. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
The study was conducted in accordance with the Declaration of Helsinki, and the protocol was approved by the Ethics Committee of Daffodil International University (DIU) (reference 2021-12-26-Cat-1-2 and 2024-12-18-Cat-1-33) before data collection began. The present work is a secondary analysis of the de-identified data.
Informed Consent Statement
Informed consent for participation was obtained from all subjects involved in the study; for participants younger than 18 years, written consent was obtained from a parent or legal guardian.
Data Availability Statement
The dataset and Python analysis code presented in this study are openly available in Github at https://github.com/afsanaswe-pixel/Ordifuse_New (accessed on 24 November 2026). The repository covers data preparation, design search, item ranking, the subset ladder, equal-budget comparators, final evaluation, reliability, explanation, repeated re-derivation, and internal–external validation, and it records the fixed random seeds and the list of the 24 selected items, so that the reported analyses can be reproduced. The revised dataset version adds, for every record, the program identifier, the coded identifier of the grading physician and, for the double-graded program, the second physician’s grades; the scripts for the additional analyses of Section 3.10 are included in the same repository.
Acknowledgments
The authors thank the clinicians who provided the severity assessments and the data-collection team at the participating sites, the Aachol Foundation for supporting each data-collection event, and Daffodil International University, Bangladesh, and Universiti Malaysia Perlis (UniMAP) for institutional and administrative support. During the preparation of this manuscript and study, ChatGPT ([GPT-6]; OpenAI; accessed through chatgpt.com, 2026) and Claude ([Opus 5.5]; Anthropic; accessed through claude.ai, 2026) were used under the authors’ direction for English-language editing, grammar correction, coding assistance, including error handling, and minor figure modifications to improve clarity while preserving the original findings. The authors independently verified all code, results, figures, tables, and final text. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A
Table A1.
Predictors and coding. Ordinal items were integer-coded in their natural order; binary items 0/1; nominal items one-hot encoded (encoders fitted on training folds only).
Table A2.
Equal-budget tuning of comparators (per task, grouped three-fold cross-validation on the training partition; selected values per task). All tuned learners then received out-of-fold decision offsets.
Table A3.
Default (untuned) learners on S*, locked test set (for reference).
Table A4.
Data-collection programs.
Table A5.
TRIPOD+AI checklist [62]: where each item of the statement is reported in this article. Items marked “Not reported” are not addressed in this article; “Not applicable” items do not apply to a development study with internal and internal–external validation.
References
- Khurshid, K.A. Comorbid insomnia and psychiatric disorders: An update. Innov. Clin. Neurosci. 2018, 15, 28–32. [Google Scholar] [PubMed]
- Marcks, B.A.; Weisberg, R.B.; Edelen, M.O.; Keller, M.B. The relationship between sleep disturbance and the course of anxiety disorders in primary care patients. Psychiatry Res. 2010, 178, 487–492. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gao, X.; Meng, L.X.; Ma, K.L.; Liang, J.; Wang, H.; Gao, Q.; Wang, T. The bidirectional causal relationships of insomnia with five major psychiatric disorders: A Mendelian randomization study. Eur. Psychiatry 2019, 60, 79–85. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fekadu, A.; Demissie, M.; Birhane, R.; Medhin, G.; Bitew, T.; Hailemariam, M.; Minaye, A.; Habtamu, K.; Milkias, B.; Petersen, I.; et al. Under detection of depression in primary care settings in low and middle-income countries: A systematic review and meta-analysis. Syst. Rev. 2022, 11, 21. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Alonso, J.; Liu, Z.; Evans-Lacko, S.; Sadikova, E.; Sampson, N.; Chatterji, S.; Abdulmalik, J.; Aguilar-Gaxiola, S.; Al-Hamzawi, A.; Andrade, L.H.; et al. Treatment gap for anxiety disorders is global: Results of the World Mental Health Surveys in 21 countries. Depress. Anxiety 2018, 35, 195–208. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- World Health Organization. MhGAP Intervention Guide for Mental, Neurological and Substance Use Disorders in Non-Specialized Health Settings (Version 2.0); World Health Organization: Geneva, Switzerland, 2016. [Google Scholar]
- Bhatnagar, S.; Agarwal, J.; Sharma, O.R. Detection and classification of anxiety in university students through the application of machine learning. Procedia Comput. Sci. 2023, 218, 1542–1550. [Google Scholar] [CrossRef] [Scilit]
- El Morr, C.; Jammal, M.; Bou-Hamad, I.; Hijazi, S.; Ayna, D.; Romani, M.; Hoteit, R. Predictive machine learning models for assessing Lebanese university students’ depression, anxiety, and stress during COVID-19. J. Prim. Care Community Health 2024, 15, 21501319241235588. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jo, H.; Lim, M.; Jeon, H.J.; Ahn, J.; Jeon, S.; Kim, J.K.; Chung, S. Data-driven shortened Insomnia Severity Index (ISI): A machine learning approach. Sleep Breath. 2024, 28, 1819–1830. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ha, S.; Choi, S.J.; Lee, S.; Wijaya, R.H.; Kim, J.H.; Joo, E.Y.; Kim, J.K. Predicting the risk of sleep disorders using a machine learning-based simple questionnaire: Development and validation study. J. Med. Internet Res. 2023, 25, e46520. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bastien, C.H.; Vallières, A.; Morin, C.M. Validation of the Insomnia Severity Index as an outcome measure for insomnia research. Sleep Med. 2001, 2, 297–307. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Morin, C.M.; Belleville, G.; Bélanger, L.; Ivers, H. The Insomnia Severity Index: Psychometric indicators to detect insomnia cases and evaluate treatment response. Sleep 2011, 34, 601–608. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hamilton, M. The assessment of anxiety states by rating. Br. J. Med. Psychol. 1959, 32, 50–55. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Matza, L.S.; Morlock, R.; Sexton, C.; Malley, K.; Feltner, D. Identifying HAM-A cutoffs for mild, moderate, and severe generalized anxiety disorder. Int. J. Methods Psychiatr. Res. 2010, 19, 223–232. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nayan, M.I.H.; Uddin, M.S.G.; Hossain, M.I.; Alam, M.M.; Zinnia, M.A.; Haq, I.; Rahman, M.; Ria, R.; Methun, I.H. Comparison of the performance of machine learning-based algorithms for predicting depression and anxiety among university students in Bangladesh: A result of the first wave of the COVID-19 pandemic. Asian J. Soc. Health Behav. 2022, 5, 75–84. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Albagmi, F.M.; Alansari, A.; Al Shawan, D.S.; AlNujaidi, H.Y.; Olatunji, S.O. Prediction of generalized anxiety levels during the Covid-19 pandemic: A machine learning-based modeling approach. Inform. Med. Unlocked 2022, 28, 100854. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ge, F.; Zhang, D.; Wu, L.; Mu, H. Predicting psychological state among Chinese undergraduate students in the COVID-19 epidemic: A longitudinal study using a machine learning. Neuropsychiatr. Dis. Treat. 2020, 16, 2111–2118. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chowdhury, A.H.; Rad, D.; Rahman, M.S. Predicting anxiety, depression, and insomnia among Bangladeshi university students using tree-based machine learning models. Health Sci. Rep. 2024, 7, e2037. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kapoor, S.; Narayanan, A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns 2023, 4, 100804. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Frank, E.; Hall, M. A simple approach to ordinal classification. In Proceedings of the 12th European Conference on Machine Learning (ECML), Freiburg, Germany, 5–7 September 2001; Lecture Notes in Computer Science. Volume 2167, pp. 145–156. [Google Scholar]
- Gutiérrez, P.A.; Pérez-Ortiz, M.; Sánchez-Monedero, J.; Fernández-Navarro, F.; Hervás-Martínez, C. Ordinal regression methods: Survey and experimental study. IEEE Trans. Knowl. Data Eng. 2016, 28, 127–146. [Google Scholar] [CrossRef] [Scilit]
- Cao, W.; Mirjalili, V.; Raschka, S. Rank consistent ordinal regression for neural networks with application to age estimation. Pattern Recognit. Lett. 2020, 140, 325–331. [Google Scholar] [CrossRef] [Scilit]
- Baccianella, S.; Esuli, A.; Sebastiani, F. Evaluation measures for ordinal regression. In Proceedings of the 2009 Ninth International Conference on Intelligent Systems Design and Applications; IEEE: New York, NY, USA, 2009; pp. 283–287. [Google Scholar] [CrossRef] [Scilit]
- Wolpert, D.H. Stacked generalization. Neural Netw. 1992, 5, 241–259. [Google Scholar] [CrossRef] [Scilit]
- Dietterich, T.G. Ensemble methods in machine learning. In Proceedings of the International Workshop on Multiple Classifier Systems; Springer: Berlin/Heidelberg, Germany, 2000; pp. 1–15. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Caruana, R.; Niculescu-Mizil, A.; Crew, G.; Ksikes, A. Ensemble selection from libraries of models. In Proceedings of the Twenty-First International Conference on Machine Learning, Banff, AB, Canada, 4–8 July 2004; p. 18. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Mahajan, P.; Uddin, S.; Hajati, F.; Moni, M.A. Ensemble learning for disease prediction: A review. Healthcare 2023, 11, 1808. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sultan, S.Q.; Javaid, N.; Alrajeh, N.; Aslam, M. Machine learning-based stacking ensemble model for prediction of heart disease with explainable AI and k-fold cross-validation: A symmetric approach. Symmetry 2025, 17, 185. [Google Scholar] [CrossRef] [Scilit]
- Shukla, A.; Tiwari, R.; Tiwari, S. Alzheimer’s disease detection from fused PET and MRI modalities using an ensemble classifier. Mach. Learn. Knowl. Extr. 2023, 5, 512–538. [Google Scholar] [CrossRef] [Scilit]
- Caruana, R. Multitask learning. Mach. Learn. 1997, 28, 41–75. [Google Scholar] [CrossRef] [Scilit]
- Ruder, S. An overview of multi-task learning in deep neural networks. arXiv 2017, arXiv:1706.05098. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Yang, Q. A survey on multi-task learning. IEEE Trans. Knowl. Data Eng. 2022, 34, 5586–5609. [Google Scholar] [CrossRef] [Scilit]
- Christodoulou, E.; Ma, J.; Collins, G.S.; Steyerberg, E.W.; Verbakel, J.Y.; Van Calster, B. A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models. J. Clin. Epidemiol. 2019, 110, 12–22. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guyon, I.; Elisseeff, A. An introduction to variable and feature selection. J. Mach. Learn. Res. 2003, 3, 1157–1182. [Google Scholar] [CrossRef] [Scilit]
- Kohavi, R.; John, G.H. Wrappers for feature subset selection. Artif. Intell. 1997, 97, 273–324. [Google Scholar] [CrossRef] [Scilit]
- Ambroise, C.; McLachlan, G.J. Selection bias in gene extraction on the basis of microarray gene-expression data. Proc. Natl. Acad. Sci. 2002, 99, 6562–6566. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Varma, S.; Simon, R. Bias in error estimation when using cross-validation for model selection. BMC Bioinform. 2006, 7, 91. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Altmann, A.; Toloşi, L.; Sander, O.; Lengauer, T. Permutation importance: A corrected feature importance measure. Bioinformatics 2010, 26, 1340–1347. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fisher, A.; Rudin, C.; Dominici, F. All models are wrong, but many are useful: Learning a variable’s importance by studying an entire class of prediction models simultaneously. J. Mach. Learn. Res. 2019, 20, 1–81. [Google Scholar]
- Kraepelien, M.; Blom, K.; Forsell, E.; Hentati Isacsson, N.; Bjurner, P.; Morin, C.M.; Jernelöv, S.; Kaldo, V. A very brief self-report scale for measuring insomnia severity using two items from the Insomnia Severity Index—development and validation in a clinical population. Sleep Med. 2021, 81, 365–374. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders, 5th ed.; American Psychiatric Publishing: Washington, DC, USA, 2013. [Google Scholar]
- Naeini, M.P.; Cooper, G.; Hauskrecht, M. Obtaining well calibrated probabilities using Bayesian binning. In Proceedings of the AAAI Conference on Artificial Intelligence, Austin, TX, USA, 25–30 January 2015; Volume 29. [Google Scholar] [CrossRef] [Scilit]
- Cohen, J. Weighted kappa: Nominal scale agreement provision for scaled disagreement or partial credit. Psychol. Bull. 1968, 70, 213–220. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Elkan, C. The foundations of cost-sensitive learning. In Proceedings of the 17th International Joint Conference on Artificial Intelligence (IJCAI), Seattle, WA, USA, 4–10 August 2001; pp. 973–978. [Google Scholar]
- He, H.; Garcia, E.A. Learning from imbalanced data. IEEE Trans. Knowl. Data Eng. 2009, 21, 1263–1284. [Google Scholar] [CrossRef] [Scilit]
- Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- McNemar, Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 1947, 12, 153–157. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Van Calster, B.; Vickers, A.J. Calibration of risk prediction models: Impact on decision-analytic performance. Med. Decis. Mak. 2015, 35, 162–169. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Steyerberg, E.W. Clinical Prediction Models, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar] [CrossRef] [Scilit]
- Apley, D.W.; Zhu, J. Visualizing the effects of predictor variables in black box supervised learning models. J. R. Stat. Soc. Ser. B Stat. Methodol. 2020, 82, 1059–1086. [Google Scholar] [CrossRef] [Scilit]
- Steyerberg, E.W.; Harrell, J. Prediction models need appropriate internal, internal–external, and external validation. J. Clin. Epidemiol. 2016, 69, 245–247. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Begum, A.; Khalib, Z.I.A.; Mahmud, I.; Piyas, B.R.C.; Mohiuddin, K.M.; Khan, M.D.; Khanam, B.; Dina, F.K.; Laboni, F.A.; Iffat, S.; et al. Afsanaswe-pixel/Insomnia-Anxiety: Onidra: A Clinically Annotated Survey Dataset for Insomnia and Anxiety Assessment Based on ISI and HAM-A—V3, Version V3; Zenodo: Geneva, Switzerland, 2026. [Google Scholar] [CrossRef]
- Cawley, G.C.; Talbot, N.L.C. On over-fitting in model selection and subsequent selection bias in performance evaluation. J. Mach. Learn. Res. 2010, 11, 2079–2107. [Google Scholar]
- Peng, H.; Long, F.; Ding, C. Feature selection based on mutual information: Criteria of max-dependency, max-relevance, and min-redundancy. IEEE Trans. Pattern Anal. Mach. Intell. 2005, 27, 1226–1238. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guyon, I.; Weston, J.; Barnhill, S.; Vapnik, V. Gene selection for cancer classification using support vector machines. Mach. Learn. 2002, 46, 389–422. [Google Scholar] [CrossRef] [Scilit]
- Saerens, M.; Latinne, P.; Decaestecker, C. Adjusting the outputs of a classifier to new a priori probabilities: A simple procedure. Neural Comput. 2002, 14, 21–41. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sakovich, N.; Aksenov, D.; Pleshakova, E.; Gataullin, S. AI model compression methods: A distribution-aware residual entropy quantization. Comput. Mater. Contin. 2026, 88, 32. [Google Scholar] [CrossRef] [Scilit]
- Grinsztajn, L.; Oyallon, E.; Varoquaux, G. Why do tree-based models still outperform deep learning on typical tabular data? In Proceedings of the Advances in Neural Information Processing Systems 35 (NeurIPS 2022), New Orleans, LA, USA, 28 November–9 December 2022. Datasets and Benchmarks Track. [Google Scholar]
- Gorishniy, Y.; Rubachev, I.; Khrulkov, V.; Babenko, A. Revisiting deep learning models for tabular data. In Proceedings of the Advances in Neural Information Processing Systems 34 (NeurIPS 2021), Online, 6–14 December 2021; pp. 18932–18943. [Google Scholar]
- Collins, G.S.; Moons, K.G.M.; Dhiman, P.; Riley, R.D.; Beam, A.L.; Van Calster, B.; Ghassemi, M.; Liu, X.; Reitsma, J.B.; van Smeden, M.; et al. TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 2024, 385, e078378. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















