Abstract
Background/Objectives: Early identification of post-traumatic stress disorder (PTSD) after childhood sexual abuse may support timely assessment, but triage requires evaluation of calibration, missed cases, and referral workload. This study assessed whether routinely recorded information could support prioritization for PTSD-focused assessment. Methods: This retrospective single-center study evaluated classification of post-event diagnostic outcomes documented by a specialist child and adolescent psychiatrist in 311 forensic referral records. DSM-5 diagnoses were grouped as PTSD versus no recorded post-event psychiatric diagnosis (n = 218; PTSD = 106) and PTSD versus other non-PTSD clinical outcomes (n = 199; PTSD = 106). Five models were compared. Within each evaluation design, preprocessing, model selection, sigmoid calibration, and threshold derivation were confined to the development partition; each pipeline was applied unchanged to held-out or chronologically later records. Results: Histogram-based gradient boosting yielded a held-out ROC-AUC of 0.6190 (95% CI, 0.4472–0.7853) and PR-AUC of 0.6578 in the primary formulation. Its threshold flagged 36 of 44 records and captured 18 of 21 PTSD cases (sensitivity, 0.8571; specificity, 0.2174). LightGBM yielded a ROC-AUC of 0.6441 (95% CI, 0.4475–0.8125) and PR-AUC of 0.6805 in the secondary formulation. Its threshold flagged 30 of 40 records and captured 18 of 21 PTSD cases (sensitivity, 0.8571; specificity, 0.3684). Calibration reduced Brier scores to 0.2537 and 0.2401, but the calibrated primary model remained slightly worse than the prevalence-only reference (Brier skill score, −0.0165; calibration slope, 0.4276). Temporal ROC-AUC values were 0.6358 and 0.6767, with high workloads. Conclusions: Routinely recorded information provided modest discrimination, and high case capture required assessment of most records. External validation, prospective workflow evaluation, and local recalibration are required before clinical use.
1. Introduction
Childhood sexual abuse is a serious public health problem associated with developmental, psychiatric, familial, and social consequences that may persist across the life course [1,2]. Recent global estimates indicate that sexual violence during childhood affects hundreds of millions of individuals, with a particularly high burden among girls and women, although boys and men are also substantially affected [2]. Children referred following sexual abuse often present within a complex clinical context in which trauma exposure, developmental vulnerability, family circumstances, and legal or forensic processes intersect. Post-traumatic stress disorder (PTSD) is an important potential outcome because persistent trauma-related symptoms can impair emotional regulation, school functioning, interpersonal relationships, and longer-term psychosocial adjustment. Its occurrence is nevertheless heterogeneous. Meta-analytic evidence indicates that PTSD rates vary by trauma type and sex, with higher rates particularly among girls and children exposed to interpersonal trauma [3]. Other children may present with different psychiatric outcomes or no diagnosable post-event disorder at the time of assessment.
This heterogeneity creates an operational as well as a diagnostic challenge. Every child referred following sexual abuse should have access to comprehensive, trauma-informed psychiatric evaluation and appropriate follow-up. When immediate specialist capacity is constrained, however, services may also need to determine which children require timely or additional PTSD-focused assessment. Any model developed for this purpose must remain subordinate to specialist judgment. Its role is not to exclude children from care or assign an automated diagnosis, but to provide a transparent prioritization signal that can be interpreted within the broader clinical and forensic context.
Machine learning (ML) has increasingly been explored in psychiatry because it can represent nonlinear and multidimensional relationships among demographic, developmental, psychosocial, and clinical variables [4]. Previous studies have used early post-trauma information and routinely collected data to predict PTSD screening status, clinical course, and symptom trajectories [5,6,7,8]. A recent systematic review and meta-analysis of 23 ML studies found that 48% were at high risk of bias and the remainder had unclear risk; substantial heterogeneity and limited validation further constrained the applicability of reported performance [9]. These findings reinforce a broader concern in clinical prediction research: discrimination alone does not establish clinical usefulness [10,11]. A model with an apparently acceptable receiver operating characteristic area under the curve (ROC-AUC) may still yield poorly calibrated probabilities, miss clinically important cases, or generate an assessment workload that cannot be implemented in practice. Calibration, threshold selection, and validation under plausible changes in case mix or time are therefore central to responsible clinical evaluation.
Evidence specific to children referred following sexual abuse remains limited. Ucuz et al. developed an artificial-intelligence-based decision-support system for depression and PTSD, while Gokten and Uyulan used a random forest classifier to predict these outcomes in sexually abused children and adolescents [12,13]. These studies demonstrated the feasibility of ML-based prediction in this population, but their primary emphasis was classification performance. The implications of calibrated risk estimates, threshold-specific referral workload, false-positive assessments, missed PTSD cases, and performance in chronologically later records remain less clear. This leaves an important gap between statistical prediction and the evaluation of a triage approach that could be considered within clinical workflow.
Accordingly, the present study evaluated whether routinely recorded information could support PTSD-focused prioritization among children referred following sexual abuse. Two clinically distinct formulations were examined: PTSD versus no recorded post-event psychiatric diagnosis and PTSD versus other non-PTSD clinical outcomes. Model evaluation considered ROC-AUC, average precision (hereafter referred to as PR-AUC), probability calibration, development-derived operating thresholds, referral workload, captured and missed PTSD cases, and internal temporal performance. By linking model performance to the operational consequences of threshold use, the analysis was intended to clarify both the potential and the limits of the available information in a realistic triage setting.
2. Materials and Methods
The study workflow is summarized in Figure 1. Cohort construction and diagnostic outcome reconstruction preceded separate leakage-controlled development procedures for the random held-out and internal temporal evaluations. Within each evaluation design, preprocessing, model selection, probability calibration, and threshold determination were restricted to the relevant development data before the resulting pipeline was applied to the corresponding evaluation records.
Figure 1.
Study workflow and analytical design. The single asterisk (*) indicates that data-adaptive preprocessing, model selection, calibration, and threshold derivation were restricted to development data. The double asterisk (**) indicates that the full development procedure was repeated using earlier-period records before application to later records. Temporal evaluation was internal and retrospective.
2.1. Study Design and Diagnostic Formulation
This single-center retrospective study used routinely collected records from the Child and Adolescent Psychiatry Clinic of Sakarya University during the 2018–2023 study period. All 331 archived records from this period were screened. Records documenting forensic referral following sexual abuse and containing sufficient information to establish eligibility and reconstruct the diagnostic outcome were included. Twenty archived records were excluded because the reason for presentation could not be determined from the available documentation. Although the aggregate number and general reason for exclusion were identified, an individual-level exclusion log was not retained. More detailed exclusion criteria, therefore, could not be reported, and selection bias during cohort assembly cannot be completely ruled out.
The final source cohort comprised 311 forensic referrals. No record was excluded on the basis of the recorded post-event psychiatric outcome. Pre-existing mental disorders were not an exclusion criterion. Otherwise, eligible forensic referral records were retained irrespective of documented psychiatric history. No a priori sample-size calculation was performed. All eligible records available during the study period were included; the sample size was therefore determined by record availability rather than a prespecified power or precision target. Given the limited numbers of records and PTSD events, the discrimination, calibration, and operating-threshold analyses were interpreted as exploratory. Because a stable person-level identifier was not consistently available in the analytical files, multiple records from the same child could not be reliably identified. Both random and chronological partitioning were performed at the record level; child-level separation between development and evaluation samples could therefore not be verified.
All clinical variables and post-event psychiatric diagnoses were recorded and evaluated by a specialist child and adolescent psychiatrist during routine forensic psychiatric assessment. PTSD and comparator diagnoses were assigned according to the Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition (DSM-5), based on clinical interview and review of the clinical record [14]. The documented specialist assessment served as the retrospective clinical reference standard. No additional structured research interview was administered for research purposes.
The diagnostic outcome represented clinician-recorded DSM-5 PTSD. Diagnoses were not retrospectively reassigned to ICD-11 PTSD or complex PTSD because the available records did not contain the systematically documented symptom information required for reliable criterion-based reassessment. PTSD symptom duration and longitudinal course could not be systematically characterized from the analytical data. The interval between the event and examination was used solely as an event-timing variable and was not interpreted as the duration of PTSD symptoms.
Outcome categories were reconstructed from the two post-event diagnosis fields documented in the clinical records. This rule-based procedure did not generate new clinical diagnoses and was used solely to harmonize psychiatrist-recorded diagnostic labels. The standard English abbreviation PTSD, the Turkish abbreviation TSSB, and the documented variants TSBB and PTSB were harmonized as PTSD labels. Records documenting the absence of a post-event psychiatric diagnosis and containing no diagnostic secondary entry were assigned to the no-diagnosis group. The remaining non-PTSD records were assigned to the other-clinical-outcome group.
Two binary formulations were defined. The primary formulation compared 106 PTSD records with 112 records showing no post-event psychiatric diagnosis, resulting in a total sample of 218. The secondary formulation compared the same 106 PTSD records with 93 records showing other non-PTSD clinical outcomes, resulting in a total sample of 199. The comparator groups were mutually exclusive and, together with the shared PTSD group, covered all 311 source records. The secondary formulation was interpreted as a heterogeneous clinical-comparator analysis rather than as a disorder-specific differential diagnosis model.
For descriptive clinical characterization, both post-event diagnostic fields were reviewed to identify additional recorded diagnoses within the PTSD group and characterize the other-clinical-outcome group. Repeated mentions of the same diagnosis within a record were counted once, whereas different diagnoses recorded in the same record were summarized separately. These summaries described the available clinical documentation without generating new diagnoses or changing the binary outcome assignments.
For each formulation, the binary outcome yi was coded as 1 for PTSD and 0 for the comparator group. The modelling task was retrospective classification of clinician-recorded post-event diagnostic status rather than prospective prediction of PTSD onset. The model output represented the estimated probability of membership in the recorded PTSD group, as defined in Equation (1), where Xi denoted the predictor vector for record i. Calibration and threshold analyses explored the potential implications for PTSD-focused assessment workload; they did not constitute prospective validation of a clinical triage workflow.
The study was approved by the Sakarya University Faculty of Medicine Non-Interventional Clinical Research Ethics Committee (approval no. E-71522473-050.01.04-300081-303, 2023). Owing to the retrospective study design, the requirement for individual informed consent was waived by the ethics committee.
2.2. Predictor Construction and Preprocessing
Predictors were drawn from routine clinical records and were intended to represent information available at or near the initial forensic psychiatric assessment. Because variable-level documentation times could not be verified retrospectively, availability before diagnostic assignment could not be confirmed for every predictor. The 22 candidate predictors covered seven clinically interpretable domains: child characteristics, maternal characteristics, paternal characteristics, family context, event timing, abuse characteristics, and perpetrator relationship. The complete predictor content is summarized in Table 1. Post-event diagnosis fields, the reconstructed outcome label, variables directly derived from diagnostic information, and personal or administrative identifiers were excluded from the model input matrix. Raw examination date was not used as a predictor and was retained solely for temporal partitioning.
Table 1.
Candidate predictor domains and formulation-specific missingness.
The source clinical data contained mixed date, year, age, categorical, and free-text formats. Examination dates and birth information were standardized before clinically interpretable age variables were derived. Parental age fields recorded as birth dates, birth years, or direct ages were converted consistently relative to the examination date. Expressions describing the interval between the event and examination in days, weeks, months, or years were converted to a common yearly scale and were used when deriving age at the event. Ambiguous values were retained as missing rather than being replaced by assumed corrections.
Categorical fields were consolidated using prespecified, clinically meaningful categories before model encoding. Missing continuous and discrete numerical values were imputed using the median estimated exclusively within the corresponding training partition. Explicitly documented unknown categorical values were retained as a separate category, whereas remaining blank categorical values were imputed using the most frequent category estimated within the corresponding training partition. Categorical predictors were subsequently transformed using one-hot encoding, with previously unseen categories ignored when the fitted encoder was applied to validation, held-out, or temporally later records. After harmonization, categorical unknown values were represented explicitly, and no blank categorical entries remained in the predictor matrices used for these analyses.
Continuous predictors were standardized for L2-regularized logistic regression. Tree-based models were fitted using the imputed and encoded feature matrix without additional numerical standardization. Prespecified rule-based data cleaning, clinical range checks, duration conversion, and category harmonization were applied deterministically before data partitioning and did not use outcome information. In contrast, data-adaptive imputation, numerical standardization, and one-hot encoding were fitted exclusively within the corresponding development or cross-validation training partition and were subsequently applied unchanged to validation, held-out, or temporally later records.
Predictor content, data types, and formulation-specific missing or unknown ranges are summarized in Table 1. Percentages were calculated separately within each diagnostic formulation, and each range represents the minimum and maximum missing or unknown proportion among predictors in the corresponding domain.
Missingness was generally limited but reached 31.7% (69/218) and 25.6% (51/199) for paternal age in the primary and secondary formulations, respectively. Deception was missing or recorded as unknown in 22.0% and 23.1% of records, while the corresponding proportions for threat were 18.8% and 19.1%. Sex and biological/adopted status were complete in both formulations. All data-adaptive imputation parameters were estimated exclusively within the corresponding training partitions.
2.3. Machine-Learning Models
Five supervised learning models were evaluated to represent linear, bagging-based, and boosting-based approaches suitable for tabular clinical data. L2-regularized logistic regression was included as a transparent reference model. Random forest was evaluated as a bagging-based ensemble capable of representing nonlinear relationships and interactions. Histogram-based gradient boosting, XGBoost, and LightGBM were included as gradient-boosting approaches with different tree-construction and optimization strategies [15,16,17,18].
The purpose of comparing these models was not to treat algorithmic complexity as an objective in itself, but to determine whether nonlinear ensemble methods provided a practically meaningful improvement over a regularized linear baseline. Model selection was therefore based on the prespecified clinical operating objective rather than exclusively on the highest ROC-AUC or PR-AUC.
Each diagnostic formulation was divided into development and held-out test sets using a stratified 80:20 split with a fixed random seed of 42. The primary formulation yielded 174 development records and 44 held-out test records, while the secondary formulation yielded 159 development records and 40 held-out test records. The held-out sets were not used during preprocessing, model selection, calibration fitting, or operating-threshold derivation.
Model stability within the development data was assessed using repeated stratified five-fold cross-validation with 10 repeats, yielding 50 validation estimates for ROC-AUC and PR-AUC. Separately, calibrated out-of-fold probabilities for model and threshold selection were generated exclusively within the development set using five-fold stratified outer cross-validation. Within each outer training fold, sigmoid calibration was fitted using CalibratedClassifierCV with up to five internal cross-validation folds, and calibrated probabilities were generated only for the corresponding outer validation fold. The final calibrator was subsequently fitted using the full development set and applied unchanged to the held-out test set. Held-out outcomes were not used for calibration fitting, model selection, or threshold derivation.
A prespecified screening-oriented selection rule was applied. Candidate models satisfying a development-stage sensitivity requirement of at least 0.85 were compared according to specificity. When more than one model provided the same specificity, ties were resolved sequentially according to higher sensitivity, lower Brier score, and higher PR-AUC. Once a model and operating threshold had been selected, both were locked and applied unchanged to the held-out test set. Held-out outcomes were used only for final performance estimation and did not influence model or threshold selection.
Automatic hyperparameter optimization was not performed. Each algorithm was evaluated using one analyst-specified fixed configuration, summarized in Table 2. These settings were pragmatic implementation choices for a reproducible comparison of specified pipelines; no systematic optimization criterion was used to establish the individual parameter values as optimal. The configurations were fixed before final evaluation and applied consistently across both diagnostic formulations and the random and chronological evaluation designs. Parameters not explicitly overridden retained the defaults of the reported library versions.
Table 2.
Principal model configurations and class-weighting procedures.
All candidates used the same predictor set, development and evaluation partitions, cross-validation splits, sigmoid calibration strategy, threshold grid, and development-stage selection criteria. Numerical standardization was applied to logistic regression, and model-specific class-weighting procedures are described below. This common evaluation protocol supported procedural consistency, but it did not equalize model capacity or establish the best achievable performance of each algorithm after tuning. The results therefore compare the reported configurations rather than optimized algorithm families.
Class weighting was applied according to model type. Class 0 denoted the relevant comparator group and class 1 denoted PTSD. Logistic regression used class weights calculated as wc = n/(2nc), whereas XGBoost and LightGBM used scale_pos_weight = n_negative/n_positive. Histogram-based gradient boosting was fitted without explicit class weighting. Under balanced_subsample, random-forest class weights were recalculated from the bootstrap sample used to construct each tree and therefore had no single fixed value. All other data-dependent class weights were recalculated within the corresponding cross-validation training partition. Although subsample was set to 0.90 for LightGBM, row subsampling remained inactive because subsample_freq was retained at 0.
At every resampling stage, all data-adaptive preprocessing operations were fitted exclusively within the corresponding training partition. The fitted preprocessing pipeline, model, calibration procedure, and operating threshold were subsequently applied without modification to the relevant validation or held-out partition.
2.4. Evaluation Framework
Model evaluation was aligned with the intended clinical triage use and therefore addressed discrimination, calibration, threshold-specific clinical performance, and referral workload. Discrimination was quantified using ROC-AUC and average precision, reported here as PR-AUC. ROC-AUC summarized rank separation across possible thresholds. PR-AUC was calculated using sklearn.metrics.average_precision_score rather than by trapezoidal integration of the precision–recall curve. Because PTSD prevalence was close to one half in both diagnostic formulations, PR-AUC was interpreted as a complementary retrieval measure rather than solely as a metric for marked class imbalance [19].
For the held-out and temporal evaluations, ROC-AUC and PR-AUC point estimates were calculated directly from the observed outcomes and uncalibrated predicted probabilities. Calibrated probabilities were used for threshold derivation and threshold-specific clinical evaluation. Ninety-five percent confidence intervals were estimated using 1000 nonparametric bootstrap resamples. Only resamples containing both outcome classes were retained for interval estimation. The bootstrap distribution was used solely to estimate the confidence intervals; its mean was not substituted for the observed point estimate. Clopper–Pearson exact binomial confidence intervals for sensitivity, specificity, positive predictive value, and negative predictive value were calculated using statsmodels. All confidence intervals were interpreted descriptively because formal pairwise superiority testing was not prespecified.
An exploratory full-pipeline bootstrap assessed development stability. Within each formulation, 100 development samples were drawn with replacement using a fixed pseudorandom seed (random_state = 20261017). Each replicate repeated data-adaptive preprocessing, nested out-of-fold sigmoid calibration for all five candidates, Rule A model and threshold selection, and refitting using the original hyperparameters and selection rules. Bootstrap copies of each source record remained together within validation and calibration folds. Selected workflows were evaluated on the original held-out records and, separately, on independently resampled held-out records. Model-selection frequencies and candidate-specific threshold and performance distributions were summarized using medians and interquartile ranges. These analyses were conditional on the original random partition and did not replace the original point estimates or establish sample adequacy or external validity.
Exploratory, non-prespecified tests of ROC-AUC = 0.50 used two-sided Wald statistics with DeLong’s nonparametric variance estimator and the same uncalibrated evaluation probabilities as the reported ROC-AUC estimates [20]. Holm adjustment was applied across all 20 tests (five models, two formulations, and two evaluation designs) [21]. Statistical significance was assessed at an adjusted p < 0.05. These tests did not influence model selection, calibration, or operating thresholds, and no pairwise model-superiority tests were performed.
Post hoc permutation importance was evaluated for the 22 original predictors in the development-selected primary HGB and secondary LightGBM models [15]. Each predictor was independently permuted 100 times within the corresponding held-out dataset using a fixed pseudorandom seed (random_state = 42), before the fitted preprocessing steps. Preprocessing, model parameters, and calibration were held unchanged. Importance was defined as the reduction in raw-score ROC-AUC and the increase in calibrated Brier score relative to the unpermuted data. Means and standard deviations summarized permutation variability rather than sampling uncertainty. The analysis was not used for feature selection, model tuning, or threshold revision.
A post hoc sensitivity analysis compared four missing-data strategies in the original random partitions: numerical median imputation with categorical unknowns retained (A); numerical mean imputation (B); numerical median imputation with categorical unknowns replaced by the training-partition mode (C); and strategy A with numerical missingness indicators (D). The selected model families and fixed hyperparameters were retained, and each model and its sigmoid calibration were refitted using development data only. The same held-out records were used across strategies. Discrimination and calibration metrics were compared descriptively; model selection and threshold derivation were not repeated. The analysis neither established the missingness mechanism nor propagated missing-value uncertainty through multiple imputations.
A post hoc subgroup analysis examined sensitivity and false-negative rates by age at the event (<12, ≥12, or unavailable), recorded sex, and recorded abuse type. The original calibrated predictions and development-derived Rule A thresholds were retained separately for both formulations and evaluation designs; no model was refitted, and no subgroup-specific threshold was derived. For each subgroup, record and PTSD counts, true positives, false negatives, sensitivity, false-negative rate, and pointwise exact 95% confidence intervals were reported. Measures were not estimated when a subgroup contained no PTSD records. Results were descriptive, and no formal subgroup comparisons or claims of equivalent performance or algorithmic fairness were made.
At operating threshold t, record i was flagged for additional PTSD-focused assessment when ≥ t. True positives (TP), false positives (FP), true negatives (TN), and false negatives (FN) were used to calculate sensitivity, specificity, positive predictive value, and negative predictive value. Clinical workload was defined as the number of records requiring downstream PTSD-focused assessment:
Workload(t) = TP(t) + FP(t)
Workload rate and referral reduction relative to an assess-all strategy were calculated as follows, with N denoting the number of records in the relevant evaluation set:
Workload rate(t) = Workload(t)/N
Referral reduction(t) = 1 − Workload(t)/N
A fixed threshold of t = 0.05 was retained only as a deliberately permissive reference condition. It was neither treated as the principal clinical operating threshold nor used to select the final model. Its purpose was to demonstrate the workload generated by applying a uniformly low screening threshold to calibrated probabilities.
Candidate thresholds ranging from 0.01 to 0.99 in increments of 0.01 were evaluated using calibrated out-of-fold predictions generated exclusively within the development data. Three operating rules were prespecified. Rule A represented a screening-oriented regime and selected, among thresholds satisfying sensitivity ≥0.85, the threshold with the highest specificity. Rule B1 represented a precision-oriented regime and selected the threshold that maximized positive predictive value. Rule B2 represented a specificity-constrained regime and selected, among thresholds satisfying specificity ≥0.85, the threshold with the highest positive predictive value. For Rule A, ties were resolved by higher sensitivity, higher positive predictive value, and then the higher threshold. For Rules B1 and B2, ties were resolved by higher specificity, higher sensitivity, and then the higher threshold. After derivation, the selected thresholds were locked and applied unchanged to the held-out test set; held-out outcomes were not used to optimize, revise, or replace them.
The sensitivity requirement of 0.85 was an analyst-defined exploratory constraint intended to prioritize identification of recorded PTSD cases while allowing some reduction in assessment workload. It was not established as a clinically acceptable minimum sensitivity, and it should not be interpreted as evidence that missing up to 15% of PTSD cases would be acceptable. This requirement concerned development-stage sensitivity and was distinct from the probability threshold applied to individual records.
In an additional post hoc analysis, the sensitivity requirement was increased to 0.90 and 0.95. For each requirement, candidate-specific thresholds and model selection were recalculated using the original calibrated development out-of-fold predictions and the original selection rules. The resulting model–threshold combinations were evaluated using their previously saved held-out predictions. No additional models were fitted, and held-out results were not used to replace the original sensitivity requirement. These comparisons were descriptive and did not establish clinical acceptability.
Probability calibration was evaluated because predicted probabilities may be interpreted as risk estimates when used for clinical prioritization. Sigmoid calibration was fitted exclusively within the development stage using the nested cross-validation procedure described above [22]. Raw and calibrated probabilities were compared using the Brier score, calibration-in-the-large, reported as the calibration intercept, and calibration slope. Calibration-in-the-large was estimated using a binomial generalized linear model in which the logit-transformed predicted probability was included as an offset and a single intercept was estimated. The calibration slope was estimated using a separate binomial generalized linear model containing an intercept and the logit-transformed predicted probability as a covariate. Predicted probabilities were clipped to the interval [10−6, 1–10−6] before logit transformation. Threshold selection and threshold-specific clinical evaluation were based on calibrated probabilities.
Probability error was quantified using the Brier score defined in Equation (5).
The change in Brier score following calibration was calculated using Equation (6).
ΔBrier = Brier(raw) − Brier(calibrated)
A positive ΔBrier indicated a reduction in average probability error. To contextualize calibrated Brier scores, the development-set PTSD prevalence was applied as a constant probability to held-out records. The Brier skill score (BSS) was calculated relative to this prevalence-only reference using Equation (7).
BSS = 1 − Brier(calibrated)/Brier(reference)
Positive BSS values indicated improvement over the prevalence-only prediction, whereas negative values indicated no improvement over the constant-probability reference. Calibration findings were interpreted as exploratory because of the evaluation sample sizes. These comparisons did not influence model or threshold selection.
Internal temporal evaluation was performed using examination date to assess model behavior under chronological separation. The cutoff date was selected algorithmically rather than according to an externally defined clinical or organizational milestone. Among candidate examination dates that retained at least five observations and both outcome classes in the earlier and later periods, the date producing a later-period proportion closest to the prespecified 20% holdout fraction was selected.
This procedure yielded 19 July 2018 for the primary formulation, with 174 earlier development records and 44 later test records, and 13 July 2018 for the secondary formulation, with 159 earlier development records and 40 later test records. The equality of these sample sizes with the corresponding random 80:20 partitions reflected the common target holdout fraction; record assignment remained chronological and differed from that in the random partitions. All records included in the final formulations had valid examination dates.
Temporal model selection, probability calibration, and operating-threshold derivation were performed using only the earlier-period development data. The resulting preprocessing pipeline, selected model, calibration procedure, and operating threshold were applied unchanged to the later-period records. No performance metric from the later-period data was used during model or threshold selection. This analysis assessed retrospective classification in chronologically later records from the same center and did not constitute external validation or prospective prediction of PTSD onset.
Model development and the original performance analyses were conducted in Python 3.10.18 on Windows 10 using pandas 2.3.3, NumPy 2.2.6, scikit-learn 1.7.2, XGBoost 3.1.2, LightGBM 4.6.0, statsmodels 0.14.6, and Matplotlib 3.10.9. The additional exploratory AUC tests used saved evaluation probabilities in Python 3.12.14. The bootstrap, permutation-importance, missing-data, and subgroup analyses were conducted in Python 3.12.14 using the same library versions, with SciPy 1.17.0 added.
3. Results
The results are presented in three stages corresponding to the evaluation framework. First, the two diagnostic formulations and their class distributions are described. Development-stage model stability and held-out discrimination are then reported, with held-out data kept separate from model selection. Finally, probability calibration, workload-aware operating characteristics, and internal temporal performance are examined to determine how the selected models affected case capture, missed cases, and referral workload.
3.1. Diagnostic Formulations and Class Balance
The source cohort comprised 311 records. Of these, 106 (34.1%) were classified as PTSD, 112 (36.0%) had no recorded post-event psychiatric diagnosis, and 93 (29.9%) had other non-PTSD clinical outcomes. These three outcome categories were mutually exclusive and collectively accounted for the entire source cohort (Table 3, Panel A).
Table 3.
Source-cohort composition and diagnostic formulations.
The primary formulation compared 106 PTSD records with 112 records showing no recorded post-event psychiatric diagnosis, resulting in 218 records and a PTSD prevalence of 48.6%. The secondary formulation compared the same 106 PTSD records with 93 records showing other non-PTSD clinical outcomes, resulting in 199 records and a PTSD prevalence of 53.3% (Table 3, Panel B). The formulations represented distinct clinical contrasts but were not statistically independent because they shared the same PTSD records, whereas the comparator groups were mutually exclusive. Accordingly, performance differences between the formulations were interpreted descriptively and were not treated as formal evidence that one formulation was easier or more difficult to classify.
Class distributions were approximately balanced in both formulations. Supplementary experimental results are presented in Appendix A. Baseline child, family, and event characteristics across the three mutually exclusive source-cohort outcome groups are presented in Table A1.
Among the 106 PTSD records, 22 (20.8%) contained at least one additional recorded post-event diagnosis, most commonly a depressive diagnosis (18/106, 17.0%). Three records contained multiple additional diagnoses. No additional post-event diagnosis was recorded in 83 records (78.3%), while one record (0.9%) contained an unreadable-file note in the second diagnostic field and was reported separately. Within the 93 records with other non-PTSD clinical outcomes, the most frequent entries were depressive diagnoses (30/93, 32.3%), acute stress reaction (19/93, 20.4%), behavioral or conduct disorder entries (14/93, 15.1%), and anxiety-related entries (13/93, 14.0%). The detailed distribution of recorded co-diagnoses and other clinical entries is presented in Table A2.
3.2. Development Stability and Held-Out Discrimination
Repeated stratified cross-validation was used to characterize model stability within the development data and was not used as the final model-selection procedure. Stability estimates were calculated from the uncalibrated base-model probabilities and are reported as mean ± SD across 50 validation estimates. Model selection was performed separately using calibrated out-of-fold development predictions and the prespecified screening-oriented rule described in Section 2.4; the corresponding selection results are presented in Table A3. Held-out ROC-AUC and PR-AUC estimates were subsequently calculated from the continuous uncalibrated probabilities generated by the final base models fitted to the development data. In Table 4, boldface and an asterisk identify the model selected for each formulation before the held-out outcomes were examined.
Table 4.
Development-stage cross-validation stability and held-out discrimination across candidate models.
In the primary formulation, random forest produced the highest mean cross-validation ROC-AUC and PR-AUC, with values of 0.6718 ± 0.0715 and 0.6965 ± 0.0772, respectively. However, histogram-based gradient boosting (HGB) was selected because it provided the highest calibrated out-of-fold specificity among the candidate models satisfying the prespecified sensitivity requirement of at least 0.85. When applied to the primary held-out set, the selected HGB pipeline yielded a ROC-AUC of 0.6190 (95% CI, 0.4472–0.7853) and a PR-AUC of 0.6578 (95% CI, 0.4786–0.8317).
In the secondary formulation, random forest again produced the highest mean cross-validation ROC-AUC and PR-AUC, with values of 0.6378 ± 0.1056 and 0.7035 ± 0.0815, respectively. LightGBM was nevertheless selected by the prespecified screening-oriented rule applied to the calibrated out-of-fold development predictions. On the secondary held-out set, the selected LightGBM pipeline yielded a ROC-AUC of 0.6441 (95% CI, 0.4475–0.8125) and a PR-AUC of 0.6805 (95% CI, 0.4837–0.8606).
The ROC-AUC confidence intervals of both selected models included 0.50. Exploratory tests against ROC-AUC = 0.50 yielded unadjusted p-values of 0.1734 for primary HGB and 0.1085 for secondary LightGBM; both Holm-adjusted p-values were 1.0000 (Table A4). These findings did not establish above-chance discrimination in the held-out samples. No formal pairwise superiority tests were prespecified, and the model-specific confidence intervals overlapped substantially. HGB and LightGBM were therefore retained as development-selected models for the subsequent calibration and workload analyses, rather than interpreted as universally superior classifiers. Results for all candidate models are presented in Table 4.
3.3. Calibration, Workload-Aware Thresholding, and Temporal Evaluation
Threshold-free discrimination alone did not establish whether predicted probabilities were reliable, how many referrals would be generated at clinically relevant operating points, or whether similar performance would be maintained under chronological separation. The development-selected models were therefore evaluated jointly in terms of probability calibration, workload-sensitive operating characteristics, and internal temporal robustness. These analyses were considered complementary dimensions of triage performance rather than independent evidence of clinical readiness.
3.3.1. Probability Calibration
Sigmoid calibration reduced the Brier score of both development-selected models. In the primary formulation, the Brier score of histogram-based gradient boosting decreased from 0.3438 to 0.2537, corresponding to a ΔBrier of 0.0901. The calibration intercept moved from −1.1488 to −0.2074, while the calibration slope increased from 0.1431 to 0.4276. Although both estimates moved toward their ideal values of 0 and 1, respectively, the calibrated slope remained substantially below 1, suggesting that the predicted risks remained overly dispersed. Given the small held-out sample, this finding was interpreted cautiously.
The calibrated HGB Brier score of 0.2537 remained slightly higher than the prevalence-only reference value of 0.2496, resulting in a Brier skill score of −0.0165. Thus, sigmoid calibration improved the raw HGB probabilities but did not improve on the probability accuracy obtained by assigning the development-set PTSD prevalence to every held-out record.
In the secondary formulation, the LightGBM Brier score decreased from 0.3276 to 0.2401, corresponding to a ΔBrier of 0.0875. The calibration intercept moved from −0.1166 to −0.0383, and the calibration slope increased from 0.1729 to 1.1255. The calibrated Brier score was lower than the prevalence-only reference value of 0.2495, yielding a positive Brier skill score of 0.0376 and indicating a modest improvement over constant prevalence-based prediction. However, the secondary held-out set contained only 40 records, including 21 PTSD cases. The apparently favorable intercept and slope estimates were therefore considered exploratory rather than evidence of stable population-level calibration.
Numerical calibration results are summarized in Table 5. Brier skill scores were calculated from unrounded quantities; recalculation using the displayed values may therefore produce small differences. Figure 2 visualizes the corresponding changes in probability error, calibration intercept, and calibration slope. Diamonds in Figure 2A indicate the prevalence-only Brier references, while the dashed lines in Figure 2B,C indicate the ideal intercept and slope values, respectively.
Table 5.
Held-out calibration performance of the development-selected models.
Figure 2.
Held-out calibration before and after sigmoid calibration in the development-selected models: (A) Brier score; (B) calibration intercept; and (C) calibration slope. Diamonds indicate prevalence-only Brier references; dashed lines indicate ideal values.
Taken together, sigmoid calibration reduced average probability error relative to the raw outputs in both formulations, but its value against the prevalence-only reference differed between the selected models. The primary model did not improve on this reference and retained a calibration slope substantially below 1, whereas the secondary model achieved only a modest positive Brier skill score. Given the small held-out samples, these intercept and slope estimates should be interpreted as exploratory and not as evidence of stable population-level calibration.
3.3.2. Held-Out Operating Characteristics and Workload
At the deliberately permissive, fixed reference threshold of t = 0.05, both development-selected models flagged every held-out record. Sensitivity was therefore 1.0000 and specificity was 0.0000 in both formulations, with no reduction in referral workload. The fixed threshold achieved complete case capture only under an assess-all workload and did not provide a selective triage strategy.
The development-derived Rule A thresholds were applied unchanged to the held-out sets. In the primary formulation, the HGB threshold of 0.41 flagged 36 of 44 records (81.8%), captured 18 of 21 PTSD cases, and missed three. Sensitivity was 0.8571 (95% CI, 0.6366–0.9695), while specificity was 0.2174 (95% CI, 0.0746–0.4370), corresponding to an 18.2% reduction in referral workload relative to an assess-all strategy. In the secondary formulation, the LightGBM threshold of 0.44 flagged 30 of 40 records (75.0%), captured 18 of 21 PTSD cases, and missed three. Sensitivity was 0.8571 (95% CI, 0.6366–0.9695), specificity was 0.3684 (95% CI, 0.1629–0.6164), and referral workload was reduced by 25.0%.
The Rule B1 and Rule B2 criteria converged at the same threshold within each formulation. In the primary formulation, the threshold of 0.73 flagged only one record and missed 20 of 21 PTSD cases. The resulting positive predictive value of 1.0000 (95% CI, 0.0250–1.0000) was based on a single positive prediction. In the secondary formulation, the threshold of 0.70 flagged no records and missed all 21 PTSD cases; positive predictive value was therefore undefined. The specificity of 1.0000 at these restrictive operating points reflected near-empty or empty positive-prediction groups rather than reliable confirmation performance.
Threshold-specific counts and referral workload are presented in Table 6, Panel A, while the corresponding performance estimates and exact confidence intervals are reported in Panel B. NA denotes a metric that could not be calculated because the relevant prediction group was empty. Figure 3 compares workload rate and sensitivity across the fixed reference and development-derived operating points.
Table 6.
Held-out operating characteristics of the development-selected models.
Figure 3.
Held-out workload rate and sensitivity at the fixed reference and development-derived operating points for (A) the primary HGB model and (B) the secondary LightGBM model.
The exploratory comparison of development sensitivity requirements is presented in Table A5. In the primary formulation, increasing the requirement to 0.90 increased workload without capturing additional held-out PTSD cases; a requirement of 0.95 captured one additional case while flagging 42 of 44 records. In the secondary formulation, requirements of 0.90 and 0.95 captured 20 and 19 of 21 PTSD cases, respectively, with 33 of 40 records flagged in both cases. Higher development requirements therefore did not guarantee corresponding held-out sensitivity or a consistent improvement in case capture.
Taken together, none of the evaluated operating points simultaneously provided high PTSD case capture, high specificity, and low referral workload. Rule A retained the prespecified sensitivity target but required assessment of 81.8% and 75.0% of the primary and secondary held-out records, respectively. By contrast, the restrictive Rule B1/B2 thresholds reduced workload by 97.7% and 100.0% but missed 20 of 21 and 21 of 21 PTSD cases. Selection of an operating threshold should therefore be treated as a service-level governance decision informed by assessment capacity and tolerance for missed cases rather than as a purely statistical optimization problem.
3.3.3. Internal Temporal Evaluation
Within the internal temporal evaluation, preprocessing, model selection, probability calibration, and threshold derivation were performed using only the earlier-period development records. The resulting pipelines were then applied unchanged to the later-period test records. This procedure selected HGB for the primary formulation and LightGBM for the secondary formulation without using later-period outcomes.
In the primary later-period set, HGB yielded a ROC-AUC of 0.6358 (95% CI, 0.4604–0.7917) and a PR-AUC of 0.5118 (95% CI, 0.3407–0.7467). Its development-derived Rule A threshold of 0.41 flagged 36 of 44 records (81.8%), captured 18 of 19 PTSD cases, and missed one. Sensitivity was 0.9474, specificity was 0.2800, positive predictive value was 0.5000, and negative predictive value was 0.8750.
In the secondary later-period set, LightGBM yielded a ROC-AUC of 0.6767 (95% CI, 0.4962–0.8672) and a PR-AUC of 0.6300 (95% CI, 0.4226–0.8492). Its development-derived Rule A threshold of 0.49 flagged 31 of 40 records (77.5%), captured 17 of 19 PTSD cases, and missed two. Sensitivity was 0.8947, specificity was 0.3333, positive predictive value was 0.5484, and negative predictive value was 0.7778. Sigmoid calibration reduced the Brier score from 0.3304 to 0.2438 for the primary HGB model and from 0.2755 to 0.2351 for the secondary LightGBM model.
Exploratory AUC tests yielded unadjusted p-values of 0.1091 for the selected primary HGB model and 0.0506 for the selected secondary LightGBM model. The corresponding Holm-adjusted p-values were 1.0000 and 0.9107. Among the other candidates, secondary HGB and XGBoost had unadjusted p-values of 0.0316 and 0.0186, respectively; their Holm-adjusted values were 0.6003 and 0.3713. None of the 20 AUC tests remained significant after Holm correction (Table A4).
Temporal discrimination and calibration results for all candidate models are presented in Table 7, Panel A, while performance at the development-derived Rule A thresholds is reported in Panel B. The analysis used strict chronological separation, and the models selected exclusively from the earlier-period development data are shown in bold.
Table 7.
Internal temporal discrimination, calibration, and operating performance under strict chronological separation.
3.3.4. Bootstrap Stability Analysis
In the bootstrap analysis of the random-split development datasets, model and Rule A threshold selection varied across resamples. For the primary formulation, the originally selected HGB candidate was reselected in 31 of 100 replicates (31.0%). Its Rule A threshold, calculated in all replicates irrespective of which candidate was selected, had a median of 0.40 (IQR, 0.37–0.44; range, 0.21–0.49). For the secondary formulation, the originally selected LightGBM candidate was reselected in 18 of 100 replicates (18.0%). Its Rule A threshold, calculated in all replicates irrespective of which candidate was selected, had a median of 0.45 (IQR, 0.41–0.48; range, 0.29–0.56).
With the original held-out records retained, the repeatedly selected primary workflow had a median raw ROC-AUC of 0.5569 (IQR, 0.5155–0.6004), sensitivity of 0.8095 (IQR, 0.7619–0.9048), and workload proportion of 0.7955 (IQR, 0.7273–0.8864). Held-out sensitivity was at least 0.85 in 41 of 100 replicates. With the original held-out records retained, the repeatedly selected secondary workflow had a median raw ROC-AUC of 0.5927 (IQR, 0.5642–0.6247), sensitivity of 0.8571 (IQR, 0.8095–0.9524), and workload proportion of 0.8000 (IQR, 0.7250–0.9062). Held-out sensitivity was at least 0.85 in 60 of 100 replicates.
Model-specific threshold summaries and selection frequencies are presented in Table A6. Performance variability of the repeatedly selected workflow, with and without additional resampling of the held-out records, is presented in Table A7. These analyses describe sensitivity to the available development and evaluation samples and do not establish stable clinical operating characteristics.
3.3.5. Exploratory Permutation Importance
In the primary HGB model, threat, paternal age, and family status produced the largest mean reductions in raw-score ROC-AUC after permutation: 0.0470, 0.0416, and 0.0390, respectively. These variables also produced the largest mean increases in calibrated Brier score, although their ordering differed.
In the secondary LightGBM model, maternal age, paternal age, and household composition produced the largest mean ROC-AUC reductions: 0.0432, 0.0298, and 0.0160, respectively. Family status, household composition, and threat produced the largest mean increases in calibrated Brier score. Rankings therefore depended on the model and scoring metric. Several estimates were near zero or negative, and permutation variability was substantial for several leading predictors. Complete results are presented in Table A8. These findings describe model-specific reliance on the recorded variables and do not establish clinically decisive or causal predictors of PTSD.
3.3.6. Missing-Data Sensitivity Analysis
Missing-data handling affected discrimination and probability-error estimates in different ways (Table A9). Across the four strategies, primary raw ROC-AUC ranged from 0.5921 to 0.6273 and calibrated Brier score from 0.2480 to 0.2537. Primary Brier skill scores ranged from −0.0165 to 0.0066, indicating that the direction of the small difference from the prevalence-only reference depended on the handling strategy. Primary calibration slopes remained below 1, ranging from 0.4276 to 0.7486. Secondary raw ROC-AUC ranged from 0.6140 to 0.6667 and calibrated Brier score from 0.2394 to 0.2410, with Brier skill scores from 0.0339 to 0.0404. These descriptive differences do not establish the superiority of a particular strategy or eliminate uncertainty arising from missing data.
3.3.7. Exploratory Subgroup Evaluation
Subgroup counts, sensitivity, and false-negative rates are presented in Table A10. In the primary random held-out evaluation, 3 of 15 PTSD records in the ≥12-year group were false negatives, compared with 0 of 4 in the <12-year group. The corresponding secondary counts were 2 of 15 and 1 of 4, respectively.
Male subgroups contained only two or three PTSD records across the evaluation sets. For example, the primary random held-out male false-negative rate was 1/3 (0.3333; 95% CI, 0.0084–0.9057), whereas the secondary random held-out male rate was 0/2 (0.0000; 95% CI, 0.0000–0.8419). Several abuse-type subgroups contained zero or one PTSD record, producing non-estimable measures or highly uncertain extreme estimates. These results do not establish reliable between-group differences, equivalent performance, or clinical safety across subgroups.
4. Discussion
This study assessed whether routinely recorded information could support PTSD-focused triage among children referred following sexual abuse. Four principal findings emerged. First, the available predictors provided only modest discrimination, with wide confidence intervals that included chance-level performance. Second, the sensitivity-oriented operating thresholds captured most PTSD cases but required assessment of most held-out records. Third, sigmoid calibration reduced probability error, although the primary model did not outperform the prevalence-only reference. Finally, internal temporal evaluation reproduced the same workload limitation. Taken together, these findings do not support autonomous diagnosis or clinical implementation of the models in their current form.
The results are broadly consistent with evidence that early post-trauma information may contribute to prediction of subsequent PTSD status or symptom trajectories [5,6,7,8]. The wider PTSD machine-learning literature has nevertheless shown considerable heterogeneity in study populations, predictor availability, outcome definitions, and validation procedures [9]. Studies specifically involving children exposed to sexual abuse have reported promising classification performance using artificial-intelligence-based decision-support and random forest approaches [12,13]. Direct numerical comparison with those studies would be inappropriate because of differences in cohort composition, outcome construction, prediction time, and evaluation design. The more modest held-out performance observed here suggests that the routinely documented variables available in these records may be insufficient for confident case-level separation in a forensic-referral setting.
ROC-AUC values of approximately 0.62–0.68 in the development-selected models reflected modest separation of the recorded outcome groups. None of the exploratory AUC tests remained significant after Holm correction (Table A4), and the findings did not establish reliable individual-level classification or clinical usefulness. Interpretation therefore considered discrimination jointly with calibration, missed PTSD cases, and referral workload.
The workload findings illustrate why discrimination metrics alone are inadequate for evaluating a triage model. At the development-derived Rule A thresholds, both selected models captured 18 of 21 PTSD cases but missed three cases. Achieving this sensitivity required 36 of 44 primary records and 30 of 40 secondary records to be flagged, corresponding to referral reductions in only 18.2% and 25.0%, respectively. Conversely, the restrictive Rule B1 and Rule B2 thresholds substantially reduced workload but missed nearly all PTSD cases. No evaluated operating point therefore achieved high case capture, high specificity, and a substantial reduction in assessment burden simultaneously. Threshold selection in this context is consequently a service-level governance decision that must reflect assessment capacity and the clinical consequences of missed cases rather than a purely statistical optimization problem.
Calibration provided a second distinction between statistical performance and potential clinical usefulness. Sigmoid calibration reduced the Brier score of both development-selected models, but improvement relative to the raw model does not necessarily indicate that the resulting probabilities are clinically informative. The primary model remained slightly worse than the prevalence-only reference, with a Brier skill score of −0.0165, whereas the secondary model achieved only a modest positive skill score of 0.0376. Calibration intercepts and slopes were also estimated from small held-out samples and should not be regarded as stable population parameters. These findings reinforce the importance of evaluating probability accuracy against an appropriate reference rather than interpreting calibrated model outputs as reliable risk estimates solely because calibration reduced the raw Brier score [10,11].
The two diagnostic formulations addressed different clinical contrasts. The primary formulation distinguished PTSD from the absence of a recorded post-event psychiatric diagnosis, whereas the secondary formulation distinguished PTSD from a heterogeneous group of other non-PTSD clinical outcomes. The slightly higher discrimination and Brier skill score in the secondary formulation should not be interpreted as evidence that this was an inherently easier or more clinically useful prediction task. The formulations shared the same PTSD records, used different comparator groups, and were not statistically independent. Moreover, the absence of a recorded diagnosis reflects the available documentation and does not establish the absence of psychiatric symptoms or subsequent disorder. The secondary formulation should likewise not be interpreted as a disorder-specific differential-diagnosis model.
Internal temporal evaluation provided a more demanding assessment than a random partition but did not materially change the clinical interpretation. Discrimination remained modest; the ROC-AUC confidence intervals included 0.50, and sensitivities of 0.9474 and 0.8947 required 81.8% and 77.5% of the later-period records to be flagged. Chronological separation therefore reproduced the trade-off between case capture and workload rather than resolving it. Because the earlier and later records originated from the same center, documentation system, and clinical setting, this analysis represents an internal temporal robustness assessment and does not establish transportability.
A methodological strength of the study was the separation of adaptive preprocessing, model selection, probability calibration, and threshold derivation from the held-out and later-period outcomes. Clinical performance was also considered jointly in terms of discrimination, calibration, missed cases, and referral workload. This evaluation framework reduces the risk of optimistic interpretation based on a single performance measure and is consistent with contemporary guidance for clinical prediction-model studies [10]. Nevertheless, strict internal evaluation cannot compensate for limitations in sample size, predictor availability, outcome documentation, or setting diversity.
Clinically, any future model derived from this data could be considered only as a prioritization layer supporting specialist assessment. Children referred following sexual abuse should not be excluded from assessment or care on the basis of an algorithmic score. Before clinical use could be considered, the approach would require external validation, prospective evaluation within the intended workflow, local recalibration, and explicit monitoring of referral burden, missed cases, and subgroup performance. The present findings establish the operational constraints that such evaluations would need to address rather than demonstrating readiness for implementation.
Limitations
Several limitations should be considered when interpreting the findings. First, this retrospective single-center study relied on records generated during routine forensic psychiatric practice. Predictor documentation and diagnostic outcomes originated from the same specialist assessment and were not independently ascertained. Although post-event diagnosis fields and variables directly derived from diagnostic information were excluded from the model inputs, potential incorporation bias could arise if information included among the model predictors also contributed to the clinician’s diagnostic assessment. Such overlap could yield optimistic estimates of classification performance, and its extent could not be quantified from the available records. The psychiatrist-recorded DSM-5 diagnosis served as the retrospective reference standard; no additional structured research interview or independent diagnostic reassessment was performed. Outcome classification therefore remained dependent on the completeness of routine documentation and the clinical assessment process.
Twenty archived records were excluded because the reason for presentation could not be determined from the available documentation. Although the aggregate number and general reason for exclusion were identified, an individual-level exclusion log was not retained. More detailed exclusion criteria could therefore not be reported, and selection bias during cohort assembly cannot be completely ruled out. In addition, a stable person-level identifier was not consistently available in the analytical files, preventing reliable linkage of repeat records from the same child. If records from the same child were included in both development and evaluation samples, within-child dependence could have led to optimistic performance estimates. Chronological separation does not exclude this possibility because separate referrals for the same child could occur in different periods. The presence and extent of any resulting bias could not be determined from the available data. Future studies should retain a pseudonymized person-level identifier to support identification of repeat records and child-level separation during validation.
Second, the predictors were intended to represent routinely recorded information available during assessment, but exact variable-level documentation times could not be verified retrospectively for every record. Some variables may therefore have reflected information clarified later in the same assessment process. Prospective studies should define the intended assessment time point in advance and document predictor availability relative to that point.
Third, the predictor set was restricted to demographic, abuse-related, family, and contextual variables routinely documented during assessment. Standardized symptom scales, developmental assessments, previous trauma exposure, caregiver functioning, treatment history, and longitudinal clinical information were unavailable. This restriction may have limited discrimination and the ability to reduce false-positive referrals.
The permutation analysis provided global descriptions of the selected models rather than explanations of individual predictions. Modest discrimination, small evaluation samples, and dependence among predictors limit interpretation of the importance rankings. Permuting individual variables also does not preserve all relationships among predictors. Consequently, low or zero importance does not establish clinical irrelevance, and positive importance does not establish a causal effect or a validated clinical risk factor.
The missing-data sensitivity analysis was conditional on the original random partitions and selected model families. It did not address all possible imputation methods, propagate missing-value uncertainty through multiple imputations, or establish whether missingness depended on unobserved clinical information. Explicit unknown categories and missingness indicators may also reflect documentation practices. The comparisons therefore do not demonstrate that missing-data bias was eliminated.
Fourth, the two diagnostic formulations represented different clinical contrasts and excluded different comparator groups. Neither analytical cohort therefore represented the full clinical spectrum, and the observed class proportions should not be interpreted as population prevalences. The no-recorded-diagnosis group reflected the post-event diagnostic documentation and did not establish the absence of pre-existing mental disorders, psychiatric symptoms, or unmet clinical needs. The heterogeneous secondary comparator did not support disorder-specific differential-diagnosis claims.
Pre-existing disorders could affect discrimination and calibration through differences in case mix, without necessarily implying incorrect PTSD labels. If some true PTSD cases were undocumented, false-negative labels could reduce separation between groups, particularly if under-recording was unrelated to predictor values. However, the direction of AUC bias cannot be assumed when documentation errors depend on clinical presentation or predictor information. If misclassification primarily involved missed PTSD cases, a model could underestimate underlying PTSD probability despite apparently acceptable calibration against recorded labels. The net direction and magnitude of these effects could not be determined in this study without independent diagnostic reassessment.
Fifth, the numbers of records and PTSD events available for model development, calibration, threshold derivation, and evaluation were limited. The resulting confidence intervals were wide, and the additional bootstrap analysis quantified variability in model selection, Rule A thresholds, and evaluation performance rather than establishing sample adequacy. The analysis used 100 replicates per formulation and was conditional on the original random partition, limiting its ability to characterize rare instability patterns and its relevance to other populations. Record-level grouping prevented bootstrap copies of a source row from crossing validation folds but could not address unrecognized multiple records from the same child. Calibration intercepts, calibration slopes, and Brier skill scores estimated from the small held-out and temporal samples should likewise be interpreted as exploratory. The two formulations also shared the same PTSD records and were not statistically independent; differences between their performance estimates should therefore not be treated as formal comparative evidence. Model comparisons were also conditional on one fixed configuration per algorithm; alternative hyperparameter settings could change both performance estimates and the model selected by Rule A.
Synthetic data augmentation was not evaluated. Although such methods may affect model training, they would not increase the number of independent observed records available for evaluation or resolve the uncertainty associated with the small held-out samples.
Finally, the chronological evaluation was conducted within the same center, documentation system, and clinical setting as model development and cannot substitute for external validation. The additional subgroup analysis was descriptive and based on very few PTSD records in several groups, particularly males and less common abuse categories. Its pointwise confidence intervals do not establish equal performance, algorithmic fairness, or clinical safety across subgroups. The random and temporal evaluations also reused records and should not be pooled as independent evidence. The retrospective design did not assess how algorithmic prioritization would affect clinician decisions, referral delays, service workload, acceptability, patient outcomes, or safety in practice. Independent external validation, prospective workflow evaluation, local recalibration, and adequately supported subgroup assessment are required before clinical use can be considered.
5. Conclusions
In this retrospective classification study, routinely recorded information provided modest discrimination between clinician-recorded post-event diagnostic groups among children referred following sexual abuse. High PTSD case capture required flagging most records for assessment. The calibrated primary model had slightly higher probability error than a constant prediction based on development-set PTSD prevalence (Brier skill score, −0.0165) and a calibration slope of 0.4276. Similar findings under internal temporal separation indicated that the trade-off between sensitivity and referral workload was not specific to a random data partition. Additional bootstrap refitting showed variability in model selection, derived thresholds, and threshold-dependent performance. These results do not support autonomous diagnosis or clinical implementation in the current form. Any future application should be limited to prioritization in support of, rather than replacement for, specialist assessment. External validation, prospective workflow evaluation, local recalibration, and subgroup-level audit are required before clinical use can be considered.
Author Contributions
Conceptualization, S.G., G.Ç., E.E.Ö., H.O. and E.S.; methodology, S.G., G.Ç. and E.S.; software, S.G.; validation, S.G., G.Ç., E.E.Ö., H.O. and E.S.; formal analysis, G.Ç.; investigation, S.G., E.E.Ö., H.O. and E.S.; resources, E.E.Ö., H.O. and E.S.; data curation, S.G., E.E.Ö., H.O. and E.S.; writing—original draft preparation, S.G. and G.Ç.; writing—review and editing, S.G., G.Ç., E.E.Ö., H.O. and E.S.; visualization, G.Ç.; supervision, G.Ç. and E.S.; project administration, S.G. 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 approved by the Sakarya University Faculty of Medicine Non-Interventional Clinical Research Ethics Committee (protocol code E-71522473-050.01.04-300081-303; approval date: 31 October 2023).
Informed Consent Statement
The requirement for individual informed consent was waived by the Ethics Committee because of the retrospective design of the study and the use of archived records.
Data Availability Statement
The data are not publicly available because they contain sensitive clinical and forensic information concerning minors and are subject to ethical, privacy, and institutional restrictions. Requests for access may be directed to the corresponding author and will be considered only where permitted by the relevant ethics committee and institution.
Acknowledgments
During the preparation of this manuscript, the authors used OpenAI ChatGPT/Codex (GPT-5; accessed 18 October 2026) to assist with English-language editing, manuscript organization, and checks of clarity and consistency. The authors reviewed and edited all outputs, independently verified the analyses, numerical results, and references, and take full responsibility for the content of the publication.
Conflicts of Interest
Gökçen Çetinel is affiliated with Sakarya University Technology Development Zones Management Inc. (Sakarya Teknokent) through an institutional assignment. This affiliation did not influence the design, conduct, analysis, interpretation, or reporting of the study. The authors declare no conflicts of interest and confirm that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AUC | Area under the curve |
| BSS | Brier skill score |
| CI | Confidence interval |
| CV | Cross-validation |
| DSM-5 | Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition |
| FN | False negative |
| FP | False positive |
| HGB | Histogram-based gradient boosting |
| IQR | Interquartile range |
| LightGBM | Light Gradient Boosting Machine |
| ML | Machine learning |
| NA | Not available |
| NE | Not estimable |
| NPV | Negative predictive value |
| OOF | Out-of-fold |
| PPV | Positive predictive value |
| PR-AUC | Precision–recall area under the curve (reported as average precision) |
| PTSD | Post-traumatic stress disorder |
| ROC-AUC | Receiver operating characteristic area under the curve |
| SD | Standard deviation |
| TN | True negative |
| TP | True positive |
| XGBoost | Extreme Gradient Boosting |
Appendix A
Table A1 summarizes baseline characteristics across the three mutually exclusive source-cohort outcome groups defined in Section 2.1. Continuous variables are reported as median [interquartile range] with the number of non-missing records, whereas categorical variables are reported as n (%) of the corresponding group total. For both age at event and time from event to examination, group-specific missingness ranged from 6.6% to 14.3%. No values were imputed for this descriptive summary; imputation was performed only within model development, as described in the Methods. The “Other/not disclosed” abuse-type category combines the low-frequency not disclosed, exhibitionism, and abuse disclosed via social media categories.
Table A1.
Baseline characteristics of the source cohort and diagnostic groups.
Table A2.
Recorded post-event co-diagnoses in PTSD records and clinical entries in the non-PTSD comparator group.
Table A3.
Development-stage out-of-fold model comparison underlying model selection.
Percentages in Table A2 were calculated separately within each outcome group, using 106 PTSD records and 93 records with other non-PTSD clinical outcomes as the denominators. Additional diagnostic categories were not mutually exclusive because three PTSD records contained multiple additional diagnoses. Repeated mentions of the same diagnosis within a record were counted once. Rows in Panel B were also not mutually exclusive because more than one diagnostic or clinical entry could be recorded for an individual record.
The absence of an additional recorded diagnosis reflected the available documentation and did not establish the absence of psychiatric comorbidity. One PTSD record containing an unreadable-file note in the second diagnostic field was reported separately. Medication-only and nonspecific clinical entries in the comparator group were retained as documented without assigning psychiatric diagnoses. The abbreviation ASB and the ambiguous activity-disorder wording were likewise preserved without further diagnostic interpretation.
Table A4.
Exploratory tests of ROC-AUC against 0.50 in the random held-out and internal temporal evaluations.
Table A5.
Exploratory comparison of development-stage sensitivity requirements and corresponding random held-out case capture and workload.
Table A6.
Stability of Rule A thresholds and model selection across full development-pipeline bootstrap replicates.
Table A7.
Variability in the performance of the repeatedly selected workflow across full development-pipeline bootstrap replicates.
Table A8.
Post hoc permutation importance of the 22 original predictors in the random held-out datasets.
Table A9.
Sensitivity of discrimination and calibration to missing-data handling in the original random partitions.
The primary model was HGB and the secondary model was LightGBM. Strategies were A, the original numerical median imputation with categorical unknowns retained; B, numerical mean imputation with categorical handling unchanged; C, numerical median imputation with categorical unknowns replaced by the training-partition mode; and D, the original approach with numerical missingness indicators. All strategies used the same 174/44 primary and 159/40 secondary development/test partitions, with 21 PTSD records in each test set. Prevalence-only references used the corresponding development-set prevalence. Brier skill scores were calculated from unrounded quantities. Results are descriptive estimates rather than evidence of an optimal imputation strategy.
Table A10.
Exploratory subgroup sensitivity and false-negative rates at the original development-derived Rule A thresholds.
References
- Dai, T.T.; Kissoon, N.N. Child sexual abuse. Pediatr. Clin. N. Am. 2025, 72, 351–363. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- UNICEF. Over 370 Million Girls and Women Globally Subjected to Rape or Sexual Assault as Children. Available online: https://www.unicef.org/press-releases/over-370-million-girls-and-women-globally-subjected-rape-or-sexual-assault-children (accessed on 9 October 2024).
- Visser, I.; van der Mheen, M.; Dorsman, H.; Knipschild, R.; Staaks, J.; Hein, I.; van Dongen, N.; Staal, W.; Assink, M.; Lindauer, R.J.L. Post-traumatic stress disorder rates in trauma-exposed children and adolescents: Updated three-level meta-analysis. Br. J. Psychiatry 2026, 228, 465–473. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dwyer, D.B.; Falkai, P.; Koutsouleris, N. Machine learning approaches for clinical psychology and psychiatry. Annu. Rev. Clin. Psychol. 2018, 14, 91–118. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Galatzer-Levy, I.R.; Karstoft, K.-I.; Statnikov, A.; Shalev, A.Y. Quantitative forecasting of PTSD from early trauma responses: A machine learning application. J. Psychiatr. Res. 2014, 59, 68–76. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ma, S.; Galatzer-Levy, I.R.; Wang, X.; Fenyö, D.; Shalev, A.Y. A first step towards a clinical decision support system for post-traumatic stress disorders. AMIA Annu. Symp. Proc. 2017, 2016, 837–843. [Google Scholar] [PubMed]
- Papini, S.; Pisner, D.; Shumake, J.; Powers, M.B.; Beevers, C.G.; Rainey, E.E.; Smits, J.A.J.; Warren, A.M. Ensemble machine learning prediction of posttraumatic stress disorder screening status after emergency room hospitalization. J. Anxiety Disord. 2018, 60, 35–42. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tomas, C.W.; Fitzgerald, J.M.; Bergner, C.; Hillard, C.J.; Larson, C.L.; deRoon-Cassini, T.A. Machine learning prediction of posttraumatic stress disorder trajectories following traumatic injury: Identification and validation in two independent samples. J. Trauma Stress 2022, 35, 1656–1671. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vali, M.; Motahari Nezhad, H.; Kovacs, L.; Gandomi, A.H. Machine learning algorithms for predicting PTSD: A systematic review and meta-analysis. BMC Med. Inform. Decis. Mak. 2025, 25, 34. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- 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]
- Van Calster, B.; McLernon, D.J.; van Smeden, M.; Wynants, L.; Steyerberg, E.W. Calibration: The Achilles heel of predictive analytics. BMC Med. 2019, 17, 230. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ucuz, I.; Ari, A.; Ozcan, O.O.; Topaktas, O.; Sarraf, M.; Dogan, O. Estimation of the development of depression and PTSD in children exposed to sexual abuse and development of decision support systems by using artificial intelligence. J. Child Sex. Abus. 2022, 31, 73–85. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gokten, E.S.; Uyulan, C. Prediction of the development of depression and post-traumatic stress disorder in sexually abused children using a random forest classifier. J. Affect. Disord. 2021, 279, 256–265. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders, 5th ed.; American Psychiatric Association: Arlington, VA, USA, 2013. [Google Scholar]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [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]
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.-Y. LightGBM: A highly efficient gradient boosting decision tree. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Curran Associates Inc.: Red Hook, NY, USA, 2017; Volume 30, pp. 3146–3154. [Google Scholar]
- Saito, T.; Rehmsmeier, M. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS ONE 2015, 10, e0118432. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- DeLong, E.R.; DeLong, D.M.; Clarke-Pearson, D.L. Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics 1988, 44, 837–845. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- Platt, J.C. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. In Advances in Large Margin Classifiers; Smola, A.J., Bartlett, P., Schölkopf, B., Schuurmans, D., Eds.; MIT Press: Cambridge, MA, USA, 1999; pp. 61–74. [Google Scholar]
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.


