Bailing Zhang1,*, Ruofan Zhang2
Bailing Zhang
1Institute of Data Science and Intelligent Technology, NingboTech University, Ningbo, Zhejiang, China
2School of Psychology, The University of Queensland, Brisbane, QLD, Australia
*Corresponding Author: Bailing Zhang, Email: [email protected]
Mental health risk expressed on social media is often visible in escalating patterns of language and behaviour before a person seeks formal help, yet most computational detection systems treat each post in isolation and react only after explicit crisis language has already appeared. We study whether framing the problem as sequential decision making—anticipating how a user's risk may evolve and recommending a graduated, human-reviewed response—can support earlier and more interpretable warning. We present the World Model-based Crisis Warning Agent (WM-CWA), a framework that couples a learned model of user mental-state dynamics with offline reinforcement learning. The framework has three parts: a Transformer world model that predicts how an encoded psychological state evolves and forecasts short-horizon risk trajectories; an Implicit Q-Learning agent trained entirely from historical data, avoiding any online experimentation with vulnerable users; and a risk-calibration and model-based planning layer that maps learned values onto five graduated alert-recommendation levels, from passive observation to recommending escalation to a human professional. We stress that the system issues recommendations to a human operator, makes no autonomous clinical decision, and makes no claim of demonstrated intervention efficacy. On a chronologically held- out test set drawn from five Reddit mental-health communities, the world model forecasts mental-state evolution with a mean absolute error of 0.094, and under our evaluation protocol the agent attains a high correct-alert rate with a low false-alarm rate, outperforming random and rule-based baselines. An action-distribution analysis shows that the learned policy concentrates on the moderate-alert level; we analyse why the chosen metrics and the calibration module make this near-optimal on this dataset, and we present it as a limitation rather than as clinical perfection. We report ablations isolating each component, two interpretable case studies, and a discussion of the ethical and validity boundaries of social-media risk modelling. Clinical trial registration: not applicable.
Mental health risk detection, World models, Offline reinforcement learning, Implicit Q-learning, Social media analysis, Early warning systems, Decision support
Bailing Zhang, Ruofan Zhang (2026). A World Model and Offline Reinforcement Learning Framework for Graduated Mental Health Risk Warning on Social Media. Journal of Artificial Intelligence and Systems, 8, 74–94. https://doi.org/10.33969/AIS.2026.080105.
[1] Chancellor, S., and De Choudhury, M. (2020). Methods in predictive techniques for mental health status on social media: a critical review. NPJ Digit. Med. 3, 43. doi: 10.1038/s41746-020-0233-7
[2] Char, D. S., Shah, N. H., and Magnus, D. (2018). Implementing machine learning in health care—addressing ethical challenges. N. Engl. J. Med. 378, 981–983. doi: 10.1056/NEJMp1714229
[3] Coppersmith, G., Dredze, M., and Harman, C. (2014). Quantifying mental health signals in Twitter. In Proceedings of the Workshop on Computational Linguistics and Clinical Psychology, 51–60. doi: 10.3115/v1/W14-3207
[4] Coppersmith, G., Leary, R., Crutchley, P., and Fine, A. (2018). Natural language processing of social media as screening for suicide risk. Biomed. Inform. Insights 10, 1178222618792860. doi: 10.1177/1178222618792860
[5] De Choudhury, M., Gamon, M., Counts, S., and Horvitz, E. (2013). Predicting depression via social media. In Proceedings of the International AAAI Conference on Web and Social Media 7, 128–137.
[6] Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2019). BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, 4171–4186.
[7] Ha, D., and Schmidhuber, J. (2018). World models. In Advances in Neural Information Processing Systems. arXiv: 1803.10122
[8] Hafner, D., Lillicrap, T., Norouzi, M., and Ba, J. (2021). Mastering Atari with discrete world models. In International Conference on Learning Representations.
[9] Hu, A., Russell, L., Yeo, H., Murez, Z., Fedoseev, G., Kendall, A., et al. (2023). GAIA-1: a generative world model for autonomous driving. arXiv: 2309.17080
[10] Husseini Orabi, A., Buddhitha, P., Husseini Orabi, M., and Inkpen, D. (2018). Deep learning for depression detection of Twitter users. In Proceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology, 88–97.
[11] Kostrikov, I., Nair, A., and Levine, S. (2022). Offline reinforcement learning with implicit Q-learning. In International Conference on Learning Representations.
[12] Kumar, A., Zhou, A., Tucker, G., and Levine, S. (2020). Conservative Q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems 33, 1179–1191.
[13] Levine, S., Kumar, A., Tucker, G., and Fu, J. (2020). Offline reinforcement learning: tutorial, review, and perspectives on open problems. arXiv: 2005.01643
[14] Liu, S., Zheng, C., Demasi, O., Sabour, S., Li, Y., Yu, Z., et al. (2021). Towards emotional support dialog systems. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics, 3469–3483.
[15] Matero, M., Idnani, A., Son, Y., Giorgi, S., Vu, H., Zamani, M., et al. (2019). Suicide risk assessment with multi-level dual-context language and BERT. In Proceedings of the Sixth Workshop on Computational Linguistics and Clinical Psychology, 39–44.
[16] Reece, A. G., Reagan, A. J., Lix, K. L. M., Dodds, P. S., Danforth, C. M., and Langer, E. J. (2017). Forecasting the onset and course of mental illness with Twitter data. Sci. Rep. 7, 13006. doi: 10.1038/s41598-017-12961-9
[17] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization algorithms. arXiv: 1707.06347
[18] Sharma, A., Miner, A. S., Atkins, D. C., and Althoff, T. (2020). A computational approach to understanding empathy expressed in text-based mental health support. In Proceedings of EMNLP, 5263–5276.
[19] Tsugawa, S., Kikuchi, Y., Kishino, F., Nakajima, K., Itoh, Y., and Ohsaki, H.(2015). Recognizing depression from Twitter activity. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems, 3187–3196.
[20] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., et al. (2017). Attention is all you need. In Advances in Neural Information Processing Systems 30.
[21] Wiens, J., Saria, S., Sendak, M., Ghassemi, M., Liu, V. X., Doshi-Velez, F., et al.(2019). Do no harm: a roadmap for responsible machine learning for health care. Nat. Med. 25, 1337–1340. doi: 10.1038/s41591-019-0548-6
[22] World Health Organization. (2022). World Mental Health Report: Transforming Mental Health for All. Geneva: World Health Organization.
[23] Wu, P., Escontrela, A., Hafner, D., Abbeel, P., and Goldberg, K. (2023). DayDreamer: world models for physical robot learning. In Conference on Robot Learning, 2226–2240.
[24] Yates, A., Cohan, A., and Goharian, N. (2017). Depression and self-harm risk assessment in online forums. In Proceedings of EMNLP, 2968–2978.
[25] Zirikly, A., Resnik, P., Uzuner, Ö., and Hollingshead, K. (2019). CLPsych 2019 shared task: predicting the degree of suicide risk in Reddit posts. In Proceedings of the Sixth Workshop on Computational Linguistics and Clinical Psychology, 24–33.