Reinforcement Learning–Based Temporal Knowledge Graph Reasoning for Predicting Chronic Gastritis Diagnosis and Treatment: Development and Validation Study
Open Access
- 11 September 2026
- journal article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 14, e83544
Abstract
Background: The clinical progression of chronic gastritis involves intricate temporal dependencies, which makes it difficult to capture both the dynamic trajectory of the disease and the underlying relationships among medical events using conventional methods. Objective: This study aims to dynamically predict chronic gastritis diagnosis. We propose RL4TKGR, a reinforcement learning–based temporal knowledge graph (TKG) reasoning model, to predict a chronic gastritis diagnosis. Methods: RL4TKGR incorporates a reinforcement learning policy network that uses a dual-path encoding module to model historical and nonhistorical diagnostic information separately. RL4TKGR further integrates a dual-channel reward function with a dynamic weight allocation mechanism, which adaptively balances the two information sources. This design addresses the strategic bias problem and enables interpretable reasoning. The chronic gastritis temporal knowledge graph (CG-TKG) was constructed from chronic gastritis diagnosis and treatment records of 17,906 patients comprising 38,360 visits from March 2009 to October 2022. Results: Experiments on the self-constructed CG-TKG resulted in RL4TKGR achieving the highest mean reciprocal rank (MRR) on CG-TKG-4 (51.66, SD 0.76), CG-TKG-8 (53.18, SD 0.79), and CG-TKG-12 (56.95, SD 0.84). After adding recent TKG reasoning baselines, adaptive path-memory network (DaeMon) achieved the strongest baseline MRR for all 3 subsets, with MRR values of 43.26 (SD 0.95), 51.76 (SD 1.12), and 54.87 (SD 1.17), respectively. Compared with DaeMon, the overall paired t tests across MRR and Hits@1/3/10 yielded 𝑃<.001 for all 3 subsets. Ablation experiments and case analyses further supported the contribution of the historical modeling components and the practical utility of the model for predicting disease subtypes and therapeutic medications. Conclusions: This study improves chronic gastritis diagnosis and treatment prediction by integrating a history-aware dual-path policy network with a dynamic event balance factor in reinforcement learning–based TKG reasoning.Keywords
This publication has 32 references indexed in Scilit:
- Alzheimer’s disease prediction using CAdam optimized reinforcement learning-based deep convolutional neural network modelBiomedical Signal Processing and Control, 2025
- Predicting Future Disorders via Temporal Knowledge Graphs and Medical OntologiesIEEE Journal of Biomedical and Health Informatics, 2024
- Genetic and phenotypic similarity across major psychiatric disorders: a systematic review and quantitative assessmentTranslational Psychiatry, 2024
- An artificial intelligence system for chronic atrophic gastritis diagnosis and risk stratification under white light endoscopyDigestive and Liver Disease, 2024
- Reinforcement learning with time intervals for temporal knowledge graph reasoningInformation Systems, 2023
- A Survey on Temporal Knowledge Graphs-Extrapolation and Interpolation Tasks2023
- A deep learning method to assist with chronic atrophic gastritis diagnosis using white light imagesDigestive and Liver Disease, 2022
- Diagnosing chronic atrophic gastritis by gastroscopy using artificial intelligenceDigestive and Liver Disease, 2020
- Research of Medical Aided Diagnosis System Based on Temporal Knowledge Graph2020
- British Society of Gastroenterology guidelines on the diagnosis and management of patients at risk of gastric adenocarcinomaGut, 2019