TRV-2026-2891Version 1 · Published

Saved · see the current record

Why this version exists

Certified into the record

The exact text we saved

This is the version exactly as it was saved, character for character. The SHA-256 hash below is a 64-character code worked out from that text. Run the same text through SHA-256 and you get the same code; change a single letter and the code comes out completely different. Each version also stores the previous version’s hash, which chains them together so no version can be swapped out quietly.

TRUVACE RECORD VERSION
record: TRV-2026-2891
version: 1
kind: certified
reason: Certified into the record
timestamp: 2026-11-13T18:01:37.185743Z
status: published
lens: g_space
sector: health
headline: Temporal stability of an electronic health record-driven machine learning model predicting type 2 diabetes among patients with mental illness
dek: We previously trained and tested a machine learning model to predict incident type 2 diabetes (T2D) in patients with mental illness using electronic health record (EHR) data from routine clinical practice. This hyperparameter-tuned XGBoost model - based on information on sex, age and mean HbA1c within the past two years - predicts whether a patient will meet criteria for T2D in the two years following each contact to psychiatric services. The performance of such a model may drift over time due to changes in stan…
gain_title: In a temporal validation study, an XGBoost model trained on 2013-2017 health records predicted type 2 diabetes two years ahead in psychiatric patients with AUROC of 0.80 to 0.87 across contacts in 2018 to 2023, declining only 0.004 per year.
problem_title: (none)
trace_subject: (none)
gain_reading: In a temporal validation study, an XGBoost model trained on 2013-2017 health records predicted type 2 diabetes two years ahead in psychiatric patients with AUROC of 0.80 to 0.87 across contacts in 2018 to 2023, declining only 0.004 per year.
gain_evidence: The model showed good discriminative performance across all years | a decrease in AUROC for T2D prediction of only 0.004 per year
problem_reading: (none)
problem_evidence: (none)
quick_read: Researchers tested whether a machine learning model that predicts type 2 diabetes in people with mental illness stays accurate over time. The XGBoost model, trained on electronic health record data from 2013 to 2017, was applied to patients with psychiatric service contacts in each year from 2018 to 2023.

The model's AUROC was 0.84 in 2018, 0.83 in 2019, 0.87 in 2020, 0.80 in 2021, 0.84 in 2022 and 0.80 in 2023. A linear model estimated a yearly drop of only 0.004, with a 95% confidence interval of -0.024 to 0.016, so a meaningful decline cannot be ruled out.

The authors say the stability supports clinical implementation for early detection and tailored interventions, while stressing continued evaluation. Secondary analyses suggested that models trained on the past year of data may discriminate as well as or better than those trained on longer histories.
limitation: The estimated yearly change in AUROC has a wide confidence interval (-0.024 to 0.016), and the authors stress that continued evaluation is needed.
tag: Evidence-backed gain
key_points: The model uses only three inputs: sex, age and mean HbA1c over the past two years. | It predicts whether a patient will meet type 2 diabetes criteria in the two years after each psychiatric service contact. | It was fitted on records from January 1, 2013 to December 31, 2017 and tested on contacts in 2018 through 2023. | Yearly AUROC ranged from 0.80 (2021 and 2023) to 0.87 (2020). | The estimated AUROC decline was 0.004 per year (95% CI: -0.024 to 0.016). | Models trained on data from the past year may match or beat models trained on longer historical periods.
rundown: The model is a hyperparameter-tuned XGBoost classifier previously built on routine clinical data. The new study asks whether its performance drifts because of changes in standards of care, baseline risk or registration procedures.

Performance stayed in the good range every year, from 0.80 to 0.87, with no clear downward trend. The wide confidence interval around the yearly change means the data are compatible with both a small improvement and a small decline.

The authors conclude that the findings support potential clinical implementation and recommend continued evaluation, and that retraining on recent data could be an option.
sources:
- peer_reviewed | Acta Neuropsychiatrica | https://doi.org/10.1017/neu.2026.10105 | 2026-11-13
prev: 0000000000000000000000000000000000000000000000000000000000000000
SHA-256 hash
f65415505cd244c2b533f9f95dba45056d708ee3448649b7a65fd51a2585b364
Previous version’s hash
0000000000000000000000000000000000000000000000000000000000000000
Check this record hasn’t been altered
How to check it yourself, without trusting this page

Download any version from /api/record/TRV-2026-2891 and hash its canonical field yourself, for example with shasum -a 256. You should get its content_hash. Each version’s text also ends with prev:and the hash of the version before it (version 1 points to 64 zeros). If anyone had changed a single character of any version after it was saved, those hashes wouldn’t line up.